This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: /usr/bin/ld: cannot find -lc
- From: Ian Lance Taylor <iant at google dot com>
- To: Syed Ahsan Ali Bokhari <ahsan dot pmd at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 31 Jan 2013 23:03:58 -0800
- Subject: Re: /usr/bin/ld: cannot find -lc
- References: <CAOjP03WRnueP4WKPyhZCV8NUF=piGPgoPeYmQpucR2SScZS0DA@mail.gmail.com> <CAOjP03XZn1Dy8s=nTH+4D+z=+U9N8QP9J_9V5JypEnP27rKdxg@mail.gmail.com>
On Thu, Jan 31, 2013 at 10:50 PM, Syed Ahsan Ali Bokhari
<ahsan.pmd@gmail.com> 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