[zero] zero VM fails to build on arm64 and ppc64el

Aleksey Shipilev ashipile at redhat.com
Tue Dec 4 13:33:23 UTC 2018


On 12/4/18 2:21 PM, Matthias Klose wrote:
> jdk-12+22 zero fails to build at least on arm64 and ppc64el (it succeeds on
> i386, and64, armhf, s390x).  Both builds fail with
> 
> /usr/bin/ld:
> /<<PKGBUILDDIR>>/build-zero/hotspot/variant-zero/libjvm/objs/stack_zero.o: in
> function `ZeroStack::handle_overflow(Thread*)':
> ./make/hotspot/./src/hotspot/cpu/zero/stack_zero.cpp:75: undefined reference to
> `JavaThread::thread_state() const'
> collect2: error: ld returned 1 exit status
> make[4]: *** [lib/CompileJvm.gmk:179:
> /<<PKGBUILDDIR>>/build-zero/support/modules_libs/java.base/server/libjvm.so] Error 1
> make[4]: *** Waiting for unfinished jobs....
> /usr/bin/ld:
> /<<PKGBUILDDIR>>/build-zero/hotspot/variant-zero/libjvm/objs/stack_zero.o: in
> function `ZeroStack::handle_overflow(Thread*)':
> ./make/hotspot/./src/hotspot/cpu/zero/stack_zero.cpp:75: undefined reference to
> `JavaThread::thread_state() const'
> collect2: error: ld returned 1 exit status
> make[4]: *** [lib/CompileGtest.gmk:60:
> /<<PKGBUILDDIR>>/build-zero/hotspot/variant-zero/libjvm/gtest/libjvm.so] Error 1
> make[4]: Leaving directory '/<<PKGBUILDDIR>>/make/hotspot'
> make[3]: *** [make/Main.gmk:257: hotspot-zero-libs] Error 2

Okay, this deserves a fix.

But why build aarch64-zero and ppc64el-zero to begin with? Those platforms are fully supported by
Red Hat's AArch64 port and SAP's PPC64 port, and are cleanly buildable:
  https://builds.shipilev.net/openjdk-jdk/

This must be why it went unnoticed: Zero is usually built for platforms without full-fledged ports.

-Aleksey


More information about the jdk-dev mailing list