OpenJDK zero on sparc linux

Dennis Gilmore dennis at ausil.us
Fri Apr 4 07:23:14 PDT 2008


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/hotspot/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/hotspot/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/hotspot/outputdir/linux_zero_core/product/libjvm.so: 
undefined reference to `__sync_add_and_fetch_4'
collect2: ld returned 1 exit status

Dennis



More information about the distro-pkg-dev mailing list