On Tue, Nov 15, 2011 at 5:10 PM, Alexander Graf agraf@suse.de wrote:
Hi guys,
We are currently slightly stuck in getting GNU Java to work properly on our ARM (hf) builds. Something breaks in the unrolling of exceptions. IIUC Fedora already managed to get Java running and I don't want to waste too much time in duplicated efforts.
We found some patches that looked like they might be related here:
http://djdelorie.fedorapeople.org/armv7-srpms.html (gcc pkg)
but couldn't find the source rpms to the respective info. Are these related / required? Does anyone have some insight in what exactly you have been fixing?
Source packages for the java bits that will end up in mainline can be found here http://aph.fedorapeople.org/
Not sure of the exact details of the fixes, there's a matching email in the fedora arm mailing list (search openjdk in the archives).
Peter
On 11/15/2011 05:25 PM, Peter Robinson wrote:
We are currently slightly stuck in getting GNU Java to work properly on our
ARM (hf) builds. Something breaks in the unrolling of exceptions. IIUC Fedora already managed to get Java running and I don't want to waste too much time in duplicated efforts.
It's the glibc bug:
http://sourceware.org/ml/libc-ports/2011-08/msg00000.html
Andrew.
2011/11/15 Andrew Haley aph@redhat.com:
On 11/15/2011 05:25 PM, Peter Robinson wrote:
We are currently slightly stuck in getting GNU Java to work properly on our
ARM (hf) builds. Something breaks in the unrolling of exceptions. IIUC Fedora already managed to get Java running and I don't want to waste too much time in duplicated efforts.
It's the glibc bug:
Many thanks for the link. It actually took me some time to work again on my "arm port chroot", but with glibc rebuilt with that patch the fedora openjdk works in my mandriva armv7hl builld.
The patch did not work to bootstrap openjdk with gcj, and should be unrelated... so, I did "cheat" and do the dirty way of "rpm -Uvh --nodeps --noscritps" the fedora java-1.6.0-openjdk and java-1.6.0-openjdk-devel packages, then adapt to use the %post from the mandriva package; directory layout is basically the same.
After building the openjdk packages with the fedora ones, then removing (again --nodeps --noscripts) and installing the generated Mandriva ones, it is right now finishing rebuilding again...
So, the only thing I did not manage to do was to bootstrap with gcj; it appears only gij is problematic, usually it fails early with an "Index out of bounds" exception. I should be missing some gcc patch...
Andrew.
Thanks, Paulo
On 11/21/2011 09:35 AM, Paulo César Pereira de Andrade wrote:
So, the only thing I did not manage to do was to bootstrap with gcj; it appears only gij is problematic, usually it fails early with an "Index out of bounds" exception. I should be missing some gcc patch...
Probably, yes. If you don't have patches from the gcc trunk you're doomed.
Andrew.