make - no such file or directory

Dan Nicholson dbn.lists at gmail.com
Fri Feb 2 10:05:02 PST 2007


On 2/2/07, Ken Moffat <ken at linuxfromscratch.org> wrote:
> >
>  So, we are back to my original assumption - you have linked at
> least part of the chapter 5 programs against the host's libraries
> instead of against libraries in /tools.

Try this out (probably from outside the chroot):

for p in /tools/bin/*; do
   echo -n "$p: "
   readelf -l $p 2>/dev/null | grep ld-linux
done

Does it say /lib/ld-linux.so.2 for anything? It should say
/tools/lib/ld-linux.so.2 for everything (or very close to it).

--
Dan



More information about the lfs-support mailing list