chroot: cannot run command `/tools/bin/env': No such file or directory

Chris Staub chris at
Tue Feb 2 20:25:52 PST 2010

On 02/02/2010 07:40 PM, Lapohos Tibor wrote:
> Never mind, I got it, thanks.
> The problem was that I did not apply the "specs" patch to gcc. This fixes everything, of course, producing the right answer for
> readelf -l a.out | grep ': /tools'
> below, and makes the chroot-ing possible.
> I would like to take the opportunity to suggest the CLFS gurus to include such a warning in the documentation. The importance of that patch ought to be emphasized. I skipped it, since I've compiled gcc-4.4.3, and the patch is designated for gcc-4.4.2. But then I remembered reading something long time ago in the LSF books about making the changes in the "SPECS" explicitely, which rose the suspicion that the above named patch would do that in this version of CLFS. It turned out to be true...
Doesn't need to be explained. If you know enough to do stuff like change 
versions, you also know enough to be aware of what patches/commands are 
needed and which aren't.

More information about the cross-lfs mailing list