Hello,
When I try to compile glibc I get the following error:
Code:
x86_64-lfs-linux-gnu-gcc -nostdlib -nostartfiles -r -o /mnt/lfs/sources/glibc-build/elf/librtld.map.o '-Wl,-(' /mnt/lfs/sources/glibc-build/elf/dl-allobjs.os /mnt/lfs/sources/glibc-build/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/mnt/lfs/sources/glibc-build/elf/librtld.mapT
/mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.2/../../../../x86_64-lfs-linux-gnu/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
make[2]: *** [/mnt/lfs/sources/glibc-build/elf/librtld.map] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.21/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.21'
make: *** [install] Error 2
I followed the book step by step and I don't think I missed something. Someone have any clue from where the issue can come? Thank you
please help