problem with toolchain adjustments in chap 6

Olaf Gruettner olaf.gruettner at web.de
Sat Jan 1 16:18:33 PST 2005


I have problems with the second adjustment of the toolchain.

compiling dummy.c :

echo "main () {}" > dummy.c
bash-3.00# cc dummy.c
/tools/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
bash-3.00#


this is what I found out:

find /mnt/lfs/ -name "libgcc*"
/mnt/lfs/sources/gcc-3.4.1/gcc/libgcc-darwin.ver
/mnt/lfs/sources/gcc-3.4.1/gcc/libgcc-std.ver
/mnt/lfs/sources/gcc-3.4.1/gcc/libgcc2.c
/mnt/lfs/sources/gcc-3.4.1/gcc/libgcc2.h
/mnt/lfs/sources/gcc-3.4.1/gcc/config/libgcc-glibc.ver
/mnt/lfs/sources/gcc-3.4.1/gcc/config/avr/libgcc.S
/mnt/lfs/sources/gcc-3.4.1/gcc/config/c4x/libgcc.S
/mnt/lfs/sources/gcc-3.4.1/gcc/config/d30v/libgcc1.asm
/mnt/lfs/sources/gcc-3.4.1/gcc/config/i386/libgcc-x86_64-glibc.ver
/mnt/lfs/sources/gcc-3.4.1/gcc/config/ia64/libgcc-ia64.ver
/mnt/lfs/sources/gcc-3.4.1/gcc/config/ip2k/libgcc.S
/mnt/lfs/sources/gcc-3.4.1/gcc/config/rs6000/libgcc-ppc64.ver
/mnt/lfs/sources/gcc-3.4.1/gcc/config/s390/libgcc-glibc.ver
/mnt/lfs/sources/gcc-3.4.1/gcc/config/sh/libgcc-glibc.ver
/mnt/lfs/sources/gcc-3.4.1/gcc/config/sh/libgcc-std.ver
/mnt/lfs/sources/gcc-3.4.1/gcc/config/sparc/libgcc-sparc-glibc.ver
/mnt/lfs/sources/gcc-3.4.1/gcc/doc/libgcc.texi
/mnt/lfs/sources/gcc-build/gcc/libgcc.mk
/mnt/lfs/sources/gcc-build/gcc/libgcc
/mnt/lfs/sources/gcc-build/gcc/libgcc/libgcc.map
/mnt/lfs/sources/gcc-build/gcc/libgcc.a
/mnt/lfs/sources/gcc-build/gcc/libgcc_eh.a
/mnt/lfs/sources/gcc-build/gcc/libgcc_s.so.1
/mnt/lfs/sources/gcc-build/gcc/libgcc_s.so
/mnt/lfs/tools/lib/gcc/i686-pc-linux-gnu/3.4.1/libgcc.a
/mnt/lfs/tools/lib/gcc/i686-pc-linux-gnu/3.4.1/libgcc_eh.a
/mnt/lfs/tools/lib/libgcc_s.so.1
/mnt/lfs/tools/lib/libgcc_s.so
/mnt/lfs/usr/lib/libgcc_s.so.1

my host system has a specs file which contains:
dynamic-linker:-dynamic-linker /lib/ld-linux.so.2

my to be done lfs-system has a specs file which contains:
dynamic-linker:-dynamic-linker /lib/ld-linux.so.2

my /mnt/lfs/etc/ld.so.conf:

# Begin /etc/ld.so.conf
                                                                                                  
/usr/local/lib
/opt/lib
                                                                                                 

what is wrong? any hints why the gcc / the linker has problems?

Olaf



More information about the lfs-support mailing list