problems in chapter 6

Gijo kamafeu at rootshell.be
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/ld-linux.so.2]
>>
>> but after entering the chrooted environment i could not use gcc or 
>> readelf, which i fixed by linking /lib/ld-linux.so.2 to 
>> /tools/lib/ld-linux.so.2
>> but now when i redo the dummy.c check i get:
>> [Requesting program interpreter: /lib/ld-linux.so.2]
>>
>>
>> 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/ld-linux.so.2 
> 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,

Gijo



More information about the lfs-support mailing list