Hi all, I'm returning to LFS after quite some time, and trying to build LFS 6.7 on x86_64. My build host is ubuntu 10.04, although I don't think it's an issue for the problem I'm having.
I've had no problems through Chapter 6.12, but I'm getting errors on the "make check" step of binutils-2.20.1. Virtually all the tests fail with errors like: ERROR: /sources/binutils-2.20.1/binutils/testsuite/binutils-all/group.s: assembly failed Digging into the problem, it seems like all the binutils binaries are built fine, but when I try to execute them, it's having trouble loading libz.so.1. For example, if I just try to run the ar utility that was built, I get the error: root:/sources/binutils-build# binutils/ar /sources/binutils-build/binutils/. libs/lt-ar: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory It's having trouble loading libz.so.1 -- which was built in chapter 6.11 just fine. But, it seems like the dynamic loader is having trouble finding it. as proof, if I instead run the same command but explicitly point the LD_LIBRARY_PATH, ar runs OK: root:/sources/binutils-build# LD_LIBRARY_PATH=/lib binutils/ar Usage: /sources/binutils-build/binutils/.libs/lt-ar .... So, I'm confused why the dynamic loader isn't working. Step 6.9 has you configure /etc/ld.so.conf to point to the search locations, and it has the comment that we don't need to include /lib and /usr/lib because they are implicitly included. So why can't it find libz in /lib unless I explicitly tell it it? I tried adding /lib and /usr/lib explicitly to /etc/ld.so.conf, but that didn't solve my problem. Any other ideas why could have gone wrong with my dynamic loader? Thanks for your help! Chris -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page