http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50952
Bug #: 50952 Summary: libquad relocation R_X86_64_32S failure Classification: Unclassified Product: gcc Version: 4.6.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: ka...@gcc.gnu.org Created attachment 25682 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25682 build log With both 4.6.3 and trunk, I'm seeing problems with libquad, which is completely baffling me. The 'gmake bootstrap' completes as expected, but 'gmake install' dies with gfortran.so.3.0 -o .libs/libgfortran.so.3.0 /usr/bin/ld: /home/sgk/work/46/lib/libquadmath.a(fmodq.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/sgk/work/46/lib/libquadmath.a: could not read symbols: Bad value collect2: ld returned 1 exit status libtool: install: error: relink `libgfortran.la' with the above command before installing it gmake[4]: *** [install-toolexeclibLTLIBRARIES] Error 1 gmake[4]: Leaving directory `/usr/home/sgk/gcc/obj46/x86_64-unknown-freebsd10.0/libgfortran' gmake[3]: *** [install-am] Error 2 gmake[3]: Leaving directory `/usr/home/sgk/gcc/obj46/x86_64-unknown-freebsd10.0/libgfortran' gmake[2]: *** [install] Error 2 gmake[2]: Leaving directory `/usr/home/sgk/gcc/obj46/x86_64-unknown-freebsd10.0/libgfortran' gmake[1]: *** [install-target-libgfortran] Error 2 gmake[1]: Leaving directory `/usr/home/sgk/gcc/obj46' gmake: *** [install] Error 2 I've redirected the the output to files and the -fPIC is already on the command line. What seems odd to me is that the 'gmake install' is relinking the libquadmath.so shared library. I've attached 'gmake |& build.log' and 'gmake install |& install.log'