Le 31/03/2013 14:20, سید احمد حسینی a écrit :
> hi
> in 
> http://www.linuxfromscratch.org/lfs/view/7.3/chapter05/binutils-pass2.html 
>
> [...]

> configure:4063: checking for C compiler default output file name
> configure:4085: x86_64-lfs-linux-gnu-gcc conftest.c >&5
> /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.7.2/../../../../x86_64-lfs-linux-gnu/bin/ld:
>  
> cannot find crt1.o: No such file or directory
> /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.7.2/../../../../x86_64-lfs-linux-gnu/bin/ld:
>  
> cannot find crti.o: No such file or directory
> /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.7.2/../../../../x86_64-lfs-linux-gnu/bin/ld:
>  
> cannot find -lc
> /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.7.2/../../../../x86_64-lfs-linux-gnu/bin/ld:
>  
> cannot find crtn.o: No such file or directory
> collect2: error: ld returned 1 exit status
> configure:4089: $? = 1
> [...]
> configure: exit 77
>
>
It looks like Glibc is not installed in /tools.
Have you tried the test at the end of the Glibc page?

If the test is OK,
Try:

echo 'main(){}'>  dummy.c
$LFS_TGT-gcc -v -Wl,-verbose dummy.c |&  tee gcc-log
grep crt1 gcc-log

If one of the above commands give an error try to recompile Glibc.

Regards
Pierre


-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to