Configure fails when attempting to cross-compile jdk 8

Kurt Stine kstine at stanford.edu
Tue Jul 9 18:46:16 UTC 2024


Hi Everyone,

I’m running into an issue when trying to cross-compile the latest jdk8u for powerpc (32 bit).

I am cross-compiling from x86_64 with Azul Zulu JDK 7 as my boot JDK.

Whenever I try and run "bash configure --openjdk-target=powerpc-linux --with-jvm-variants=zero", configure results in the following error:

checking size of int *... 8
configure: The tested number of bits in the target (64) differs from the number of bits expected to be found in the target (32).
configure: I'll retry after setting the platforms compiler target bits flag to -m32
checking size of int *... 0
configure: error: The tested number of bits in the target (0) differs from the number of bits expected to be found in the target (32)

I am using the brotlin glibc 13.2.0 toolchain specifically: https://toolchains.bootlin.com/releases_powerpc-440fp.html but I've confirmed that the error also occurs with standard GCC as well as when using a ppc sysroot.

My full configure.log is here: https://paste.debian.net/1322788/

Any help with this error is appreciated.

Thanks,
Kurt Stine



More information about the build-dev mailing list