Hi,

A few replies have already been sent that mentioned a few different 
aspect of what went wrong in your build. I just saw your own replies 
that you got it figured out. Here are a few additional notes which may 
prove helpful for the archives.

> chroot: cannot run command `/home/morfast/lfs/lfs_test/tools/bin/env':
> No such file or directory
> 
> ($LFS is /home/morfast/lfs/lfs_test/ , I build it in my home directory
> for test)
> 
> it seems the tools chain is broken, but the result of the test : readelf
> -l a.out seems correct,just like:
> 
> [Requesting program interpreter:
> /home/morfast/lfs/lfs_test/tools/lib/ld-linux.so.2]

The interpreter is requested to be 
/home/morfast/lfs/lfs_test/tools/lib/ld-linux.so.2 - while this file may 
exist outside the chroot environment, it does not exist inside chroot. 
Inside chroot it is /tools rather than /home/morfast/...

The chroot command first changes the root directory from / to whatever 
is specified (/home/morfast/lfs/lfs_test in your case) - then it tries 
to run whatever you ask it to. So any errors chroot returns are relative 
to inside chroot environment, not outside it.

What it was really trying to find was 
/home/morfast/lfs/lfs_test/home/morfast/lfs/lfs_test/tools/lib/ld-linux.so.2


Gerard
-- 
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