Cross compile jdk8u on PPC32

Doerr, Martin martin.doerr at sap.com
Tue Oct 24 09:08:42 UTC 2017


Hi Radu,

'hotspot/src/cpu/ppc' only supports PPC64. I’m not so familiar with the zero build, but I’ve heard about people using zero on PPC32 (e.g. for Debian). Maybe one of them can provide hints.

Best regards,
Martin


From: ppc-aix-port-dev [mailto:ppc-aix-port-dev-bounces at openjdk.java.net] On Behalf Of Radu Andritoiu
Sent: Dienstag, 24. Oktober 2017 11:01
To: Andrew Haley <aph at redhat.com>
Cc: jdk8u-dev at openjdk.java.net; ppc-aix-port-dev at openjdk.java.net; Ivan Krylov <ivan.p.krylov at gmail.com>
Subject: Re: Cross compile jdk8u on PPC32

Hello,

I am still having trouble compiling the 'zero' jvm-variant. I get C/C++ compiling errors I am trying to fix.

I looked in 'hotspot/src/cpu' and saw there are source-code folders for different cpu architectures: 'ppc', 'sparc', 'x86', 'zero'.
If I use jvm-variant 'zero' when compiling it will try to use the code from 'hotspot/src/cpu/zero'.
I looked in the mercurial commit logs and saw (I guess) commits for PPC being done in the folder 'hotspot/src/cpu/ppc'.

My question are to build for PPC 32 what source-code folder should I use 'hotspot/src/cpu/zero' or 'hotspot/src/cpu/ppc'?
Do I try to build/compile using jvm-variant 'zero' and force it to use the code from 'hotspot/src/cpu/ppc'?
Is the source-code from 'hotspot/src/cpu/ppc' onlu for PPC 64?


Thank you very much for the help,
Radu



On Tue, Oct 24, 2017 at 11:46 AM, Andrew Haley <aph at redhat.com<mailto:aph at redhat.com>> wrote:
On 18/10/17 13:20, Radu Andritoiu wrote:
> I am trying to compile jdk8u using jvm-variant "zero" and it asks for
> 'libffi'.
> I read that it uses 'libffi' for JNA to bridge between the interpreter and
> native code. It does not use JNI.

That's wrong.  Zero supports JNI just fine.

--
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



More information about the jdk8u-dev mailing list