On 15/12/2015 20:33, Chris Staub wrote: > On 12/15/2015 01:57 PM, Chris Staub wrote: >> On 12/15/2015 05:30 AM, Read, James C wrote: >>> >>> >>> Output of `for P in /tools/bin/* ; do echo $P ; ldd $P | grep ' >>> /lib/' ; done` shows that all infected programs have the prefix >>> /lib/x86_64-linux* All of these utilities seem to be from binutils and >>> gcc. I have no explanation for how this happened. I haven't logged out >>> once and my environment, to this very moment is still exactly the same >>> as it was when it was first set up. Env output already posted. Will >>> post again further below for completeness. >>> >>> for P in /tools/bin/* ; do >>>> echo $P ; ldd $P | grep ' /lib/' ; done >>> >>> Any other reasons this could have gone wrong? >>> >>> Daer Samej >>> >>> >> Have you been removing every source and build directory after each >> package installation? Forgetting to do this is the most likely cause of >> this issue, especially since GCC and Binutils are the ones affected and >> they're built twice in Chapter 5. Also, your output does not show >> /tools/bin/ld, /tools/bin/ar, /tools/bin/as, or any of the other >> binaries which should have been installed by Binutils Pass 2. I would go >> back to Binutils and GCC instructions and check your command history for >> both. > > I just checked again with a test build, I get the same results. All the > $LFS_TGT-* binaries do still link to /lib as they're the ones from the first > pass, so that should be nothing to worry about. Still, you are missing the > programs that should have been installed by Binutils Pass 2, so I would check > those commands very carefully against what's in the book, including verifying > that you did in fact remove the source and build directories between Pass 1 > and Pass 2.
Chris, I think you spotted the right issue: even the binutils executables prefixed with x86_64-unknown-linux-gnu- are not in James' /tools/bin. It looks like the "make install" step, before "make -C ld clean", was missed in binutils-pass2. Pierre -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
