chroot error

Dan Nicholson dbn.lists at gmail.com
Sun Sep 2 07:50:05 PDT 2007


On 9/2/07, Boovarahan (Sridhar) <varaahan at gmail.com> wrote:
>
> lfs live cd rc2032 - chapter 6.4 "entering the chroot environment -
> command "chroot "$LFS" /tools/bin/env -i \
> HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
> PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
> /tools/bin/bash --login +h"
>
> gives the following msg:
>
> chroot: cannot run command `/tools/bin/env': No such file or directory
>
> And see this:
> root:/# ls -al /tools/bin/env
> -rwxr-xr-x 1 root root 13320 Sep  2 13:20 /tools/bin/env

This usually means that something has gone wrong with the toolchain
adjustment in Ch. 5. A common issue is that people forget to apply the
-specs patch to gcc-pass2. What's the output of this:

readelf -l /tools/bin/env | grep interpreter

If it says /lib/ld-linux.so.2, then something is wrong and you'll have
to go back and redo part of Ch. 5.

--
Dan



More information about the lfs-support mailing list