[PATCH] Fail to build zero on x86 (original) (raw)

Ao Qi aoqi at loongson.cn
Tue Jan 9 10:16:24 UTC 2018


Hi,

I found it failed to build zero. The repository I used is http://hg.openjdk.java.net/jdk/jdk I get this error (on Ubuntu 16.04 x86):

$ sh configure --with-boot-jdk=/my-path-to-jdk9 --with-jvm-variants=zero $ make hotspot Building target 'hotspot' in configuration 'linux-x86_64-normal-zero-release' Compiling 2 files for BUILD_JVMTI_TOOLS Creating support/modules_libs/java.base/libjsig.so from 1 file(s) Creating support/modules_libs/java.base/server/libjvm.so from 578 file(s) Creating hotspot/variant-zero/libjvm/gtest/libjvm.so from 76 file(s) Creating hotspot/variant-zero/libjvm/gtest/gtestLauncher from 1 file(s) /home/loongson/aoqi/jdk10/jdk/src/hotspot/share/runtime/safepoint.cpp: In function 'static void SafepointSynchronize::check_for_lazy_critical_native(JavaThread*, JavaThreadState)': /home/loongson/aoqi/jdk10/jdk/src/hotspot/share/runtime/safepoint.cpp:730:25: error: '' may be used uninitialized in this function [-Werror=maybe-uninitialized] if (stub_cb != NULL && ^ /home/loongson/aoqi/jdk10/jdk/src/hotspot/share/runtime/safepoint.cpp: In static member function 'static void SafepointSynchronize::check_for_lazy_critical_native(JavaThread*, JavaThreadState)': /home/loongson/aoqi/jdk10/jdk/src/hotspot/share/runtime/safepoint.cpp:730:25: error: '' may be used uninitialized in this function [-Werror=maybe-uninitialized] cc1plus: all warnings being treated as errors lib/CompileJvm.gmk:212: recipe for target '/home/loongson/aoqi/jdk10/jdk/build/linux-x86_64-normal-zero-release/hotspot/variant-zero/libjvm/objs/safepoint.o' failed make[3]: *** [/home/loongson/aoqi/jdk10/jdk/build/linux-x86_64-normal-zero-release/hotspot/variant-zero/libjvm/objs/safepoint.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make/Main.gmk:268: recipe for target 'hotspot-zero-libs' failed make[2]: *** [hotspot-zero-libs] Error 1

ERROR: Build failed for target 'hotspot' in configuration 'linux-x86_64-normal-zero-release' (exit code 2)

=== Output from failing command(s) repeated here ===

/home/loongson/aoqi/jdk10/jdk/src/hotspot/share/runtime/safepoint.cpp: In static member function 'static void SafepointSynchronize::check_for_lazy_critical_native(JavaThread*, JavaThreadState)': /home/loongson/aoqi/jdk10/jdk/src/hotspot/share/runtime/safepoint.cpp:730:25: error: '' may be used uninitialized in this function [-Werror=maybe-uninitialized] cc1plus: all warnings being treated as errors

=== Make failed targets repeated here === lib/CompileJvm.gmk:212: recipe for target '/home/loongson/aoqi/jdk10/jdk/build/linux-x86_64-normal-zero-release/hotspot/variant-zero/libjvm/objs/safepoint.o' failed make/Main.gmk:268: recipe for target 'hotspot-zero-libs' failed === End of repeated output ===

Hint: Try searching the build log for the name of the first failed target. Hint: See doc/building.html#troubleshooting for assistance.

/home/loongson/aoqi/jdk10/jdk/make/Init.gmk:291: recipe for target 'main' failed make[1]: *** [main] Error 1 /home/loongson/aoqi/jdk10/jdk/make/Init.gmk:186: recipe for target 'hotspot' failed make: *** [hotspot] Error 2

I made a small patch to pass the build. Could someone help to review and submit this patch? I had signed OCA.

patch:

diff -r 9a29aa153c20 src/hotspot/cpu/zero/frame_zero.inline.hpp --- a/src/hotspot/cpu/zero/frame_zero.inline.hpp Mon Jan 08 07:13:27 2018 -0800 +++ b/src/hotspot/cpu/zero/frame_zero.inline.hpp Tue Jan 09 15:38:05 2018 +0800 @@ -1,5 +1,5 @@ /*

default:

Thanks, Ao Qi



More information about the jdk-dev mailing list