On 18 April 2014 19:52, Sandeep wrote: > Hi, > > 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]: *** [libmudflap.la] Error 1 > make[4]: Leaving directory `/opt/gccbuild/x86_64-unknown-linux-gnu/libmudflap' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/opt/gccbuild/x86_64-unknown-linux-gnu/libmudflap' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/opt/gccbuild/x86_64-unknown-linux-gnu/libmudflap' > make[1]: *** [all-target-libmudflap] Error 2 > make[1]: Leaving directory `/opt/gccbuild' > make: *** [all] Error 2 The simplest solution might be to configure with --disable-libmudflap