OpenJDK zero on sparc linux
Andrew John Hughes
gnu_andrew at member.fsf.org
Fri Apr 4 08:07:30 PDT 2008
On 04/04/2008, Andrew Haley <aph at redhat.com> wrote:
> 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.
>
I'm correct in assuming this is just an experiment to test zero, right?
Because HotSpot has SPARC JIT support.
--
Andrew :-)
Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8
More information about the distro-pkg-dev
mailing list