Issue while building GCC-4.6.1 on rhel 6.4

Sandeep Nadkarni
Fri Apr 18 18:55:00 GMT 2014


I am building gcc-4.6.1 on rhel 6.4. and following is the error.

Details :

RHEL 6.4 : 2.6.32-358.el6.x86_64
gcc : gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)

/usr/bin/ld: /opt/gccbuild/./gcc/crtbeginS.o: relocation R_X86_64_PC32
against symbol `__dso_handle' can not be used when making a shared
object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[4]: *** [] Error 1
make[4]: Leaving directory
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
make[2]: *** [all] Error 2
make[2]: Leaving directory
make[1]: *** [all-target-libmudflap] Error 2
make[1]: Leaving directory `/opt/gccbuild'
make: *** [all] Error 2

Please help.


More information about the Gcc-help mailing list