|Bill Allombert on Thu, 27 Sep 2007 14:15:47 +0200|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Re: ticket #627: pari 2.3.2 build fix for Linux PPC 32 bit|
On Sun, Sep 23, 2007 at 10:01:35PM +0200, Karim Belabas wrote: > * Michael.Abshoff [2007-09-09 18:18]: > > I am a Sage developer who has ported Sage to 32 bit PPC Linux. While > > doing so I come across the following issue: Linux PPC need -fPIC > > otherwise pari compiles and links fine, but upon execution we get the > > following error: > > > > [mabshoff@localhost sage-2.8.4]$ gp > > gp: error while loading shared libraries: > > /tmp/Work/sage-2.8.4/spkg/build/pari-2.3.2.p1/src/Olinux-ppc/libpari-gmp.so.2: > > R_PPC_REL24 relocation at 0x0fc77278 for symbol `sqrt' out of range > > > > The fix is obvious: add -fPIC to DLCFLAGS for linux-ppc. A path can be > > found at > > > > http://fsmath.mathematik.uni-dortmund.de/~mabshoff/patches/pari-add_-fPIC_to_DLCFLAGS_for_PPC_Linux.patch Well I cannot reproduce this issue with either binutils 2.15 or binutils 2.17 on debian-ppc, but this might have changed with newer versions, like on alpha. Which distribution and release of binutils are you using ? We should adress the issue for non-Linux system using binutils as well. Cheers, Bill.