problems in chapter 6

Chris Staub chris at
Sun Oct 15 09:56:01 PDT 2006

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"?

More information about the lfs-support mailing list