Cross compile jdk8u on PPC32
raduandritoiu at gmail.com
Wed Nov 15 10:25:41 UTC 2017
The debian patch for
*openjdk/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.hpp* is almost the
same with the other (previous) one. The only difference is it does not
change the ASM code.
In my case the if-condition fixes the error and makes it compile, which
means the atomic_copy_64() is done like this:
*(jlong *) dst = *(jlong *) src;
What you are saying is that cross-compiling jdk8u for PPC32 with this patch
makes the resulting JVM not java compatible, right?
Is there another way to get it to compile for PPC32?
Also what I saw is that "hotspot" rule only compiles the JVM .
And in order to get a working JRE, that I can copy/install on a clean
machine, I also have to compile the "jdk" rules.
On Fri, Nov 10, 2017 at 11:08 PM, Tiago Daitx <tiago.daitx at canonical.com>
> Thanks for the input Andrew, good to know it makes the powerpc build
> non Java compatible (I assume this means JCK, right? I never ran it
> for non-intel systems)
> That particular patch has been added to Debian's OpenJDK 7 back in
> 2013, which was then carried over to OpenJDK 8 as well. It was based
> on this bug report:
> If anyone has a better fix, I would be glad to replace the patch - or
> remove it altogether if it makes upstream to OpenJDK 7 and 8. ;-)
> On Fri, Nov 10, 2017 at 12:22 PM, Andrew Haley <aph at redhat.com> wrote:
> > On 02/11/17 00:11, Tiago Daitx wrote:
> >> Please check if this patch from Debian/Ubuntu fix your issue:
> >> http://bazaar.launchpad.net/~openjdk/openjdk/openjdk8/view/
> > That looks wrong to me. You need a real way to copy 64-bit items
> > or you won't be Java compatible.
> > --
> > Andrew Haley
> > Java Platform Lead Engineer
> > Red Hat UK Ltd. <https://www.redhat.com>
> > EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
> Tiago Stürmer Daitx
> Software Engineer
> tiago.daitx at canonical.com
> PGP Key: 4096R/F5B213BE (hkp://keyserver.ubuntu.com)
> Fingerprint = 45D0 FE5A 8109 1E91 866E 8CA4 1931 8D5E F5B2 13BE
More information about the jdk8u-dev