OpenJDK zero on sparc linux
Andrew Haley
aph at redhat.com
Fri Apr 4 02:02:49 PDT 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.
I think for a program of this size you'll probably want "big PIC"
(-fPIC) everywhere.
Andrew.
More information about the distro-pkg-dev
mailing list