OpenJDK zero on sparc linux

Andrew Haley aph at redhat.com
Fri Apr 4 07:44:11 PDT 2008


Dennis Gilmore wrote:
> On Friday 04 April 2008, Dennis Gilmore wrote:
>> On Friday 04 April 2008, Gary Benson wrote:
>>> Hi Dennis,
>>>
>>> The real error is above this one -- it failed to build libjvm.so with
>>> a load of "relocation truncated to fit" errors.   If you look in
>>> openjdk-ecj/hotspot/build/linux/makefiles/gcc.make you'll see a bit
>>> like this:
>>>
>>>   # position-independent code
>>>   ifneq ($(filter ppc ppc64,$(ZERO_LIBARCH)),)
>>>   PICFLAG = -fPIC
>>>   else
>>>   PICFLAG = -fpic
>>>   endif
>>>
>>> Add "sparc" to that list, then
>>> rm -Rf openjdk-ecj/control/build/linux-*/hotspot to clear out the
>>> broken files, then try again.  If that works I'll commit a fix.
>>>
>>> Cheers,
>>> Gary
>> ok got through that.  getting a new failure
>> Linking launcher...
>> /builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/control/build/linux-sparc/ho
>> tspot/outputdir/linux_zero_core/product/libjvm.so: undefined reference to
>> `__sync_val_compare_and_swap_4'
>> /builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/control/build/linux-sparc/ho
>> tspot/outputdir/linux_zero_core/product/libjvm.so: undefined reference to
>> `__sync_lock_test_and_set_4'
>> /builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/control/build/linux-sparc/ho
>> tspot/outputdir/linux_zero_core/product/libjvm.so: undefined reference to
>> `__sync_add_and_fetch_4'
>> collect2: ld returned 1 exit status
> full build log is  at http://files.ausil.us/aurora/openjdk-build-2.log

This isn't really a bug; we just need someone with access to Sun hardware to
write __sync_val_compare_and_swap_4, __sync_lock_test_and_set_4, and
__sync_add_and_fetch_4.

Andrew.



More information about the distro-pkg-dev mailing list