Le 06-11-2014 16:07, Pierre Labastie a écrit : 

> Le 06/11/2014 04:05, [email protected] écrit :
> 
>> Hi In chapter 5.7 afterwards the following echo 'main(){}' > dummy.c 
>> $LFS_TGT-gcc dummy.c crtn.o crti.o crt1.o could not be found. 1) I ran "ln 
>> -s /mnt/lfs/tools/lib/crt[i1n].o" in 
>> /mnt/lfs/tools/lib/gcc/i686-lfs-linux-gnu/4.9.1/ So it worked 2) I typed the 
>> following command as shown in the book readelf -l a.out | grep ': /tools'. I 
>> got nothing But I got this output: [Requesting program interpreter: 
>> /lib/ld-linux.so.2] when typing : grep "linux" The lfs user environment is 
>> likely not set up properly, yet I checked it and I re-build Linux API 
>> Headers and Glibc-2.20 Thanks for help, Pierre (Debian wheezy i686)
> 
> Hello Pierre,
> 
> It is hard to know what is going wrong here. Some more information can be
> gained if you type:
> $LFS_TGT-gcc -v -Wl,-verbose dummy.c |& tee dummy-compile.log
> 
> You'll see what are the commands which are executed during compilation, and
> also where the linker is looking for libraries.
> 
> Maybe the problem is before compiling glibc, since it seems the linker (from
> binutils) has some problem.
> 
> regards
> Pierre

Could you look the ouput of the command in www.pierre-selosse.net/lfs
[1] 

and let me know what you find out, if any ? 

 the lines below have been marked in bold 

egrep -o -n " /lib/ld-linux.so.2" dummy-compile.log 
34: /lib/ld-linux.so.2

egrep -n "failed" dummy-compile.log 
258:attempt to open
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.9.1/libgcc.so failed
260:attempt to open
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.9.1/libc.so failed
261:attempt to open
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.9.1/libc.a failed
262:attempt to open /mnt/lfs/tools/bin/../lib/gcc/libc.so failed
263:attempt to open /mnt/lfs/tools/bin/../lib/gcc/libc.a failed
264:attempt to open
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.9.1/../../../../i686-lfs-linux-gnu/lib/libc.so
failed
265:attempt to open
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.9.1/../../../../i686-lfs-linux-gnu/lib/libc.a
failed
275:attempt to open
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.9.1/libgcc.so failed

Should i erase all my work? and try again? 

Thanks you 

Pierre 
 

Links:
------
[1] http://www.pierre-selosse.net/lfs
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to