Cross compile jdk8u on PPC32

Radu Andritoiu raduandritoiu at
Wed Oct 18 12:20:54 UTC 2017

I am trying to compile jdk8u using jvm-variant "zero" and it asks for
I read that it uses 'libffi' for JNA to bridge between the interpreter and
native code. It does not use JNI.

My question is if the final VM will have support for JNI, because I will
need to run a java project that is already coded and uses JNI generated by

Also thank you for the help and info about Azul.

Thank you,

On Wed, Oct 18, 2017 at 2:40 PM, Volker Simonis <volker.simonis at>

> Hi Radu,
> ppc32 is currently not supported in the main OpenJDK repositories. You can
> of course use the zero variant, but that's interpreter only, so the
> performance won't be great.
> As far as I know, Azul supports ppc32 but I'm not sure where they are
> hosting their sources. CC'ed Ivan from Azul who may know.
> Regards,
> Volker
> Radu Andritoiu <raduandritoiu at> schrieb am Mi. 18. Okt. 2017 um
> 09:18:
>> Hello,
>> I am new to the community and want to thank you in advance.
>> I am trying to cross compile from the latest revision on branch jdk8u162 a
>> 'client' jvm-variant for PPC32 bit.
>> Here are some of the errors I am getting:
>> /home/build/build_java/jdk8u_5/hotspot/src/share/vm/
>> runtime/globals.hpp:114:31:
>> error: c1_globals_ppc.hpp: No such file or directory
>> ...
>> /home/build/build_java/jdk8u_5/hotspot/src/os_cpu/linux_
>> ppc/vm/atomic_linux_ppc.inline.hpp:34:2:
>> error: #error "Atomic currently only implemented for PPC64"
>> ...
>> /home/build/build_java/jdk8u_5/hotspot/src/os_cpu/linux_
>> ppc/vm/orderAccess_linux_ppc.inline.hpp:33:2:
>> error: #error "OrderAccess currently only implemented for PPC64"
>> ...
>> /home/build/build_java/jdk8u_5/hotspot/src/cpu/ppc/vm/copy_ppc.hpp:30:2:
>> error: #error "copy currently only implemented for PPC64"
>> ...
>> /home/build/build_java/jdk8u_5/hotspot/src/cpu/ppc/vm/
>> jniTypes_ppc.hpp:49:2:
>> error: #error "ppc32 support currently not implemented!!!"
>> ...
>> My conclusion was that 'client' jvm-variant is not ported for PPC32. But
>> the 'servert' jvm-variant did not work either.
>> My questions are:
>>  1. Is there a way to compile a 'client' jvm-variant for PPC32? am I doing
>> something wrong or is this not supported at this time? Should I use a
>> different revision that jdk8u162?
>>  2. Is there a way to compile a 'server' jvm-variant for PPC32? Is this
>> also not supported at this time?
>>  3. Is there another  project/branch besides 'jdk8u' that should work in
>> cross compiling a jvm for PPC32 bit?
>> Thank you,
>> Radu Andritoiu

More information about the jdk8u-dev mailing list