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

Bug#631926: /usr/bin/ld: cannot find -lgcc_s

Package: gcc-4.5
Version: 4.5.3-3
Severity: important

Basically after recent upgrade I cannot compile anything.
Here is a simple procedure:

Get a small C program (there is nothing special about it):
$ wget "http://burtleburtle.net/bob/c/jenny.c";


$ gcc-4.5 jenny.c
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status

So I looked for libgcc:
$ gcc-4.5 -print-libgcc-file-name

which is different from a working gcc-4.6 setup:
$ gcc-4.6 -print-libgcc-file-name

Then I looked at /etc/ld.so.conf.d/

-rw-r--r-- 1 root root  15 2010-05-05 14:50 atlas.conf
-rw-r--r-- 1 root root 108 2011-06-13 02:10 i486-linux-gnu.conf
-rw-r--r-- 1 root root  44 2007-11-29 22:21 libc.conf
-rw-r--r-- 1 root root  65 2008-02-09 17:24 libR.conf
-rw-r--r-- 1 root root  56 2011-06-13 02:21 zz_amd64-biarch-compat.conf

And content of i486-linux-gnu.conf is:
# Multiarch support

I think that something is wrong with the way gcc-4.5 directories are organized, or an ld configuration is missing.

Please help.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable'), (50, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=lt_LT.UTF-8, LC_CTYPE=lt_LT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gcc-4.5 depends on:
ii  binutils     The GNU assembler, linker and bina
ii  cpp-4.5               4.5.3-3            The GNU C preprocessor
ii  gcc-4.5-base          4.5.3-3            The GNU Compiler Collection (base 
ii  libc6                 2.13-7             Embedded GNU C Library: Shared lib
ii  libcloog-ppl0         0.15.9-3           the Chunky Loop Generator (runtime
ii  libelfg0              0.8.13-2           an ELF object file access library
ii  libgcc1               1:4.6.0-10         GCC support library
ii  libgmp10              2:5.0.1+dfsg-7     Multiprecision arithmetic library
ii  libgmpxx4ldbl         2:5.0.1+dfsg-7     Multiprecision arithmetic library 
ii  libgomp1              4.6.0-10           GCC OpenMP (GOMP) support library
ii  libmpc2               0.9-3              multiple precision complex floatin
ii  libmpfr4              3.0.1-3            multiple precision floating-point 
ii  libppl-c4             0.11.2-3           Parma Polyhedra Library (C interfa
ii  libppl9               0.11.2-3           Parma Polyhedra Library (runtime l
ii  zlib1g                1:   compression library - runtime

Versions of packages gcc-4.5 recommends:
ii  libc6-dev                     2.13-7     Embedded GNU C Library: Developmen

Versions of packages gcc-4.5 suggests:
pn  binutils-gold                 <none>     (no description available)
pn  gcc-4.5-doc                   <none>     (no description available)
pn  gcc-4.5-locales               <none>     (no description available)
ii  gcc-4.5-multilib              4.5.3-3    The GNU C compiler (multilib files
pn  libgcc1-dbg                   <none>     (no description available)
pn  libgomp1-dbg                  <none>     (no description available)
pn  libmudflap0-4.5-dev           <none>     (no description available)
pn  libmudflap0-dbg               <none>     (no description available)
ii  libppl-c2                     0.10.2-8   Parma Polyhedra Library (C interfa
ii  libppl7                       0.10.2-8   Parma Polyhedra Library (runtime l

-- no debconf information

Reply to: