Bug#640547: /usr/bin/ld: cannot find -lgcc_s
Peter Eisentraut
petere at debian.org
Mon Sep 5 18:16:03 UTC 2011
On mån, 2011-09-05 at 19:52 +0200, Sylvestre Ledru wrote:
> Le lundi 05 septembre 2011 à 20:43 +0300, Peter Eisentraut a écrit :
> > Package: clang
> > Version: 2.9-10
> > Severity: important
> >
> > Linking seems completely broken:
> >
> > $ cat test.c
> > int main() { return 0; }
> > $ clang test.c
> > /usr/bin/ld: cannot find -lgcc_s
> > clang: error: linker command failed with exit code 1 (use -v to see invocation)
> I am starting to be bored with the various multiarch changes ...
> What is the result of
> dpkg -S libgcc_s.so ?
libgcc1: /lib/i386-linux-gnu/libgcc_s.so.1
gcc-4.3: /usr/lib/gcc/i486-linux-gnu/4.3/libgcc_s.so
gcc-4.5: /usr/lib/i386-linux-gnu/gcc/i486-linux-gnu/4.5/libgcc_s.so
gcc-4.6: /usr/lib/i386-linux-gnu/gcc/i486-linux-gnu/4.6/libgcc_s.so
gcc-4.4: /usr/lib/i386-linux-gnu/gcc/i486-linux-gnu/4.4/libgcc_s.so
There is a problem here:
$ ls -l /usr/lib/gcc/i486-linux-gnu/4.3/libgcc_s.so
lrwxrwxrwx 1 root root 18 2011-03-30 22:31 /usr/lib/gcc/i486-linux-gnu/4.3/libgcc_s.so -> /lib/libgcc_s.so.1
This symlink is broken.
Actually, gcc-4.3 is removed from testing and unstable, and it doesn't
work anymore either:
$ gcc-4.3 test.c
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
So clang probably needs to be rebuilt against a newer gcc.
More information about the Pkg-llvm-team
mailing list