problems in chapter 6

Gijo kamafeu at
Sun Oct 15 13:18:07 PDT 2006

Chris Staub wrote:

> Gijo wrote:
>> Hi,
>> I had some problems in chapter 6 (lfs6.2) and maybe someone can help 
>> me out, before i chroot, i did:
>> echo 'main(){}' > dummy.c
>> cc dummy.c
>> readelf -l a.out | grep ': /tools'
>> and got:
>> [Requesting program interpreter: /tools/lib/]
>> but after entering the chrooted environment i could not use gcc or 
>> readelf, which i fixed by linking /lib/ to 
>> /tools/lib/
>> but now when i redo the dummy.c check i get:
>> [Requesting program interpreter: /lib/]
>> is this ok or am i doing something wrong?I's not normal to end up 
>> with a broken gcc after chp5 right?
>> thanks in advance...
>> Gijo
> Do not create any symlink (unless of course the book tells you to). If 
> something doesn't work inside chroot without the /lib/ 
> symlink, then you need to find out where the problem is before 
> attempting to go any further. What is the output of "ldd /tools/bin/gcc"?

With all my thinkering i've messed it all up, im going to rebuild again, 
is there something i can do at the end of chp5 to be sure the chrooted 
env won't be broken?

Thanks and Best regards,


More information about the lfs-support mailing list