[Debichem-devel] Bug#517707: Bug#517707: FTBFS on mipsel due to missing -fPIC

Michael Banck mbanck at debian.org
Sat Jun 6 15:04:08 UTC 2009


On Fri, Jun 05, 2009 at 10:37:07PM +0200, Luk Claes wrote:
> Luk Claes wrote:
> 
> > mips and mipsel do now also need the -fPIC compilation flag to make sure shared objects only contain position independent code.
> 
> It's not sure this will fix the FTBFS as a similar issue still exists in
> openssh after adding -fPIC. Maybe it's a mips* specific binutils issue...

I tried this on mahler, and -fPIC does not fix this:

(sid)mbanck at mahler:~/mopac7-1.14/fortran$ gfortran  -Wall -g -O2 -fPIC
	-std=legacy -fno-automatic -c -o mopac7app.o mopac7app.f
mopac7app.f:63.5:

   20 CALL READMO                                                       
     1
Warning: Label 20 at (1) defined but not used
mopac7app.f:43.37:

      CHARACTER*241 KEYWRD, GETNAM*80                                   
                                     1
Warning: Unused variable 'getnam' declared at (1)
(sid)mbanck at mahler:~/mopac7-1.14/fortran$ gfortran -Wall -g -O2
	-std=legacy -fno-automatic -Wl,-z -Wl,defs -o .libs/mopac7 mopac7app.o
	/home/mbanck/mopac7-1.14/fortran/.libs/libmopac7.so -lm -fPIC
/usr/bin/ld: non-dynamic relocations refer to dynamic symbol atomic_
/usr/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status


Michael





More information about the Debichem-devel mailing list