OpenJDK zero on sparc linux
Dennis Gilmore
dennis at ausil.us
Fri Apr 4 08:16:35 PDT 2008
On Friday 04 April 2008, Andrew John Hughes wrote:
> 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-sp
> > >>arc/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-sp
> > >>arc/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-sp
> > >>arc/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.
No, Its to build on SPARC Linux, HotSpot has solaris SPARC support not linux
SPARC support. until someone writes the ASM for linux we have zero, which
is more than exists now
Dennis
More information about the distro-pkg-dev
mailing list