[LLVMdev] cannot find -lgcc_s

Duncan Sands baldrick at free.fr
Wed Jan 27 00:51:10 PST 2010


Hi John,

> I am trying to build llvm-gcc4.2-2.6. 
> 
> My configure options are 
> 
>  $ /local/tools/lin32/llvm-gcc4.2-2.6/bin/llvm-gcc -v
> Using built-in specs.
> Target: i686-linux
> Configured with: ../llvm-gcc4.2-2.6.source/configure --prefix=/local/tools/lin32/llvm-gcc4.2-2.6 --disable-nls --enable-shared --enable-threads=posix --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --target=i686-linux --with-as=/local/tools/lin32/binutils-2.17.50.0.15/bin/i686-linux-as --with-ld=/local/tools/lin32/binutils-2.17.50.0.15/bin/i686-linux-ld --enable-llvm=/local/tools/src/llvm-gcc4.2-2.6/build-i686-linux-llvm/objdirllvm --program-prefix=llvm- --enable-libffi=no --enable-__cxa_atexit --with-sysroot=/local/tools/lin32/glibc-2.2.5-44 --disable-tls --enable-clocale=gnu
> Thread model: posix
> gcc version 4.2.1 (Based on Apple Inc. build 5649) (LLVM build)
> 
> I do a make bootstrap and make install after configure. 
> 
> But when I try to run this gcc I get
> 
>  $ /local/tools/lin32/llvm-gcc4.2-2.6/bin/i686-linux-llvm-gcc a.c
> /local/tools/lin32/binutils-2.17.50.0.15/bin/i686-linux-ld: cannot find -lgcc_s
> collect2: ld returned 1 exit status

does the same thing happen if you configure, build and install mainline gcc 4.2
rather than llvm-gcc?

Ciao,

Duncan.



More information about the llvm-dev mailing list