OpenJDK 7 Zero built for AArch64
Andrew Hughes
gnu.andrew at redhat.com
Wed Aug 28 10:26:01 PDT 2013
----- Original Message -----
> After three weeks build time, I have now OpenJDK 7 Zero packages available
> for
> AArch64. The AArch64 support announced in IcedTea 2.3.10 turned out to be
> non-working, so I'm wondering who was able to get a working build for AArch64
> using this release.
I don't know of anyone having built it. It was just a reference to the first of
Michal's patches (from your link below) being included. We couldn't include the
second for the reason you already outlined.
>
> Binary packages are available from
>
> deb http://people.canonical.com/~doko/tmp/openjdk-aarch64 ./
>
> I did need the following three patches to get it building.
>
> - hotspot-fork.diff, found at
> http://mail.openjdk.java.net/pipermail/porters-dev/2013-March/000469.html
>
> While the patch might not be generic enough it is needed for AArch64
> because __NR_fork and __NR_execve are not defined, at least when using
> glibc 2.17 and kernel headers 3.10.
>
> - jdk-zero-arch.diff, not found anywhere, sets ARCH_DATA_MODEL and
> ZERO_ENDIANNESS correctly for AArch64.
Fedora also seems to have a (better) version of this. I don't know where this is from.
http://pkgs.fedoraproject.org/cgit/java-1.7.0-openjdk.git/tree/aarch64.patch
Did you actually need the jdk/make/jdk_generic_profile.sh changes as IcedTea's build
doesn't invoke this?
They are set in acinclude.m4:
AC_C_BIGENDIAN([ZERO_ENDIANNESS="big"], [ZERO_ENDIANNESS="little"])
We do probably need a section for aarch64.
>
> - aarch64-detection.diff, only needed for Debian/Ubuntu based builds.
> Correctly using the host and not the build macros, and translating
> arm64 to aarch64. Unfortunately Debian calls this port arm64 and
> not aarch64.
>
I can apply this easily enough.
> All three patches attached.
>
> The build is a native build using gcj 4.8 from the 4.8 fsf branch for the
> stage1
> build. No tests were run except using the stage1 build to build stage2.
That's a pretty good test in itself :)
>
> Matthias
>
--
Andrew :)
Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F 8F91 3B96 A578 248B DC07
More information about the distro-pkg-dev
mailing list