[PATCH] Fail to build zero on x86

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Tue Jan 9 23:27:00 UTC 2018


Hi Ao!

On 01/09/2018 11:23 PM, Martin Buchholz wrote:
>> /home/loongson/aoqi/jdk10/jdk/src/hotspot/share/runtime/
>> safepoint.cpp:730:25:
>> error: '<anonymous>' may be used uninitialized in this function
>> [-Werror=maybe-uninitialized]
>>      if (stub_cb != NULL &&
>>                          ^

Ah, this might be because you're not building with --disable-warnings-as-errors
which I always use. I always build with:

sh ./configure --with-jvm-variants=zero --with-boot-jdk=/usr/lib/jvm/java-9-openjdk-amd64/ --disable-precompiled-headers --disable-warnings-as-errors && make
JOBS=32 MAKE_VERBOSE=y QUIETLY= LOG=debug CONF=linux-x86_64-normal-zero-release

which is the same configure line that the openjdk-7/8/9/10 packages in Debian
use. Sounds like a good idea to fix this warning though.

I assume that you eventually want to build OpenJDK for MIPS, correct (from your
email address)? If yes, there are actually two additional patches necessary to
get Zero to build on MIPS. In particular, jvmsigs cannot encode all signals
found on MIPS. I should finally get around to work on this.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


More information about the build-dev mailing list