OpenJDK zero on sparc linux
Andrew Haley
aph at redhat.com
Fri Apr 4 03:35:30 PDT 2008
Gary Benson wrote:
> Andrew Haley wrote:
>> Gary Benson wrote:
>>> 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.
>
> Really? I only touched the platforms I saw failures on, didn't want
> to mess with anything else.
I's probably best to make big PIC the default, and allow small PIC only
where you know it'll work. Big PIC is never going to break anything, so
it's the conservative choice.
Andrew.
More information about the distro-pkg-dev
mailing list