OpenJDK zero on sparc linux

Andrew John Hughes gnu_andrew at member.fsf.org
Fri Apr 4 08:24:34 PDT 2008


On 04/04/2008, Dennis Gilmore <dennis at ausil.us> wrote:
> 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
>

Yes, I noticed that, but assumed it would be easier to join the
existing Linux support to the existing SPARC support and get full JIT
support.  I don't know much about HotSpot internals yet though, so no
doubt someone more knowledgeable on this list can comment on what's
required.

FWIW, I think Gary's work on zero is fantastic and it's great to have
OpenJDK on PPC64 here now.  It just seems odd to be missing out on the
existing full and presumably very optimised SPARC 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