On 5/29/07, Peter Santimauro <[EMAIL PROTECTED]> wrote: > > First, as I said before, /bin/gcc should not exist. 2nd, it appears that > > /tools/bin/gcc is probably incorrectly linked. What's the output of > > "readelf -l /tools/bin/gcc"? > > as fas as the output goes the interpreter is pointing to /lib/ld-linux.so.2 > which I think is wrong and it should point to /tools/lib/ld-linux.so.2 > am I correct on this assumption? if so how do I change this?
You are correct. The quick and dirty workaround is to just make a symlink from /lib/ld-linux.so.2 -> /tools/lib/ld-linux.so.2 in the chroot. # ln -sv /tools/lib/ld-linux.so.2 /lib The real way would be to leave the chroot, become the lfs user and redo tcl through gcc-pass2 in Ch. 5. I would also highly recommend that you reread the Adjusting the Toolchain page to wrap your head around what it was supposed to do when you did it the first time. http://www.linuxfromscratch.org/lfs/view/stable/chapter05/adjusting.html -- Dan -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page