Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8346132

fallbacklinker.c failed compilation due to unused variable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 24
    • core-libs
    • None

      While trying to build zero jvm variant on macosx-x64, I ran into the following build error during building of jdk (make jdk):
      === Output from failing command(s) repeated here ===
      * For target support_native_java.base_libfallbackLinker_fallbackLinker.o:
      .../open/src/java.base/share/native/libfallbackLinker/fallbackLinker.c:156:8: error: unused variable 'result' [-Werror,-Wunused-variable]
        jint result = (*VM)->AttachCurrentThreadAsDaemon(VM, (void**) &env, NULL);
             ^
      1 error generated.

      To reproduce the above:
      - configure to build zero jvm variant with the --with-jvm-variants=zero option on macosx-x64
        (note: I haven't tried macosx-aarch64)
      - build jdk
        make jdk

            ccheung Calvin Cheung
            ccheung Calvin Cheung
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: