Re: /usr/bin/ld: cannot find -lc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The system is RHEL5.3 x86_64

folloing commands were used

tar xzf gcc-4.7.2.tar.gz

cd gcc-4.7.2

./contrib/download_prerequisites

cd ..

mkdir objdir

cd objdir

$PWD/../gcc-4.7.2/configure

What is the package name for 32 bit c library.
I cannot disable multilib becase shared libraries support is required

On Fri, Feb 1, 2013 at 12:03 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
> On Thu, Jan 31, 2013 at 10:50 PM, Syed Ahsan Ali Bokhari
> <ahsan.pmd@xxxxxxxxx> wrote:
>> Please help building gcc-4.7.2
>>
>> 2/libgcc_s.so.1 && ln -s libgcc_s.so.1 32/libgcc_s.so
>> /usr/bin/ld: skipping incompatible /usr/lib64/libc.so when searching for -lc
>> /usr/bin/ld: skipping incompatible /usr/lib64/libc.a when searching for -lc
>> /usr/bin/ld: cannot find -lc
>> collect2: error: ld returned 1 exit status
>> make[5]: *** [libgcc_s.so] Error 1
>
> You need to install the 32-bit version of the C library.
>
> Or you need to use --disable-multilib when you run configure, to tell
> GCC to not build a 32-bit version.
>
> Hard to say anything else without more details of what system you are
> running on and what commands you ran.
>
> Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux