Karim Belabas on Sat, 29 Sep 2007 18:15:36 +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


* Bill Allombert [2007-09-28 22:25]:
> On Fri, Sep 28, 2007 at 12:56:18AM +0200, Michael.Abshoff wrote:
> > Fedora Core 7, all current patches applied. Binutils ought to be
> > 
> > ld -v
> > GNU ld version 2.17.50.0.12-4 20070128
> > 
> > but I cannot check on the specific box I build due to lack of access (I 
> > am on the road). I would speculate that Debian's gcc or binutils package 
> > might be patched to force -fPIC on PPC because as far as I know it is 
> > mandatory on PPC. 
> 
> I checked that Debian gcc does not force -fPIC on PPC and -fPIC is
> certainly not mandatory on PPC. So either Fedora apply some security
> patches that make -fPIC mandatory (this is probable) or newer binutils
> require it.
> 
> In any case I proposed to Karim to use -fPIC on all non-x86 platform
> but he had reservations so instead I checked every available platforms
> to see whether -fPIC was mandatory (on Debian GNU/linux only)
> 
> The results were:
> -fPIC mandatory: hppa ia64 arm amd64 sparc64
> -fPIC not mandatory: x86 sparc32 ppc s390 mips alpha m68k
> 
> Since that date, -fPIC has moved from "not mandatory" to "mandatory"
> on alpha and m68k. Maybe ppc is the next one.
> I did not try linux-ppc64.

If -fPIC is slowly becoming mandatory as binutils evolve, I have no
choice but to change my mind... I have no objections to using -fPIC
on all non-x86 platforms. It's no longer a big performance hit anyway,
is it ?

Cheers,

    K.B.
-- 
Karim Belabas                  Tel: (+33) (0)5 40 00 26 17
Universite Bordeaux 1          Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux.fr/~belabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux.fr/  [PARI/GP]