issues with gcc 4.4.6

Kai Ruottu kai.ruottu@wippies.com
Sun Mar 17 08:28:00 GMT 2013


On 17.3.2013 5:23, GUPTA, GAURAV G (GAURAV) wrote:
>
> Kai
>
> I started fresh but now I am hitting the below error . My assessment of the problem is why
 > this problem is coming because I compiled/configured my binutils also with same sysroot .
>
> /local/gagupta/gccfolder/crosstoolsv1/x86_64-redhat-linux-gnu/bin/ld: skipping incompatible
 > /local/gagupta/gccfolder/crosstoolsv1/sysroot/usr/lib/libc.so when searching for -lc
> /local/gagupta/gccfolder/crosstoolsv1/x86_64-redhat-linux-gnu/bin/ld: cannot find -lc

You need both the default 64-bit and the optional 32-bit C library in sysroot, the 64-bit
libraries in 'lib64' & 'usr/lib64' and the 32-bit libraries in 'lib' & 'usr/lib'. You maybe
installed only the 32-bit ones?

But the 'libc.so' normally isn't a binary file but a text file, a linker script, which puts
the linker to link against the 'libc.so.6' and 'libc_nonshared.a' and maybe 'ld-linux.so.2'
(in the 32-bit case). So complaining about the script is a little odd. Please check the
situation in the '*lib64' and '*lib' directories.

If you don't need the 32-bit anywhere, the use '--disable-multilib' in the GCC configure,
then the build doesn't try to create the 32-bit 'libgcc', 'libstdc++' etc.



More information about the Gcc-help mailing list