The problem is ld/configure.host runs:
HOSTING_CRT0= ... ${CC} --help --verbose 2>&1 | egrep "ld[^ ]*\.so" | \
sed -e "s,.*-dynamic-linker[ ][ ]*\(.*/ld[^ ]*\.so..\).*,\1,"to get the path of the dynamic linker, and this ends up matching "--with-dynamic-linker=/tools/lib/ld-linux.so.2", so the entire "Configured with: ../gcc-3.4.6/configure --prefix=/tools..." line gets added to $HOSTING_CRT0, and the Binutils test fails because its getting a bunch of options that shouldn't be there. Adding "| grep -v with-dynamic-linker", or "| grep -v Configured with", to the end of that command will remove the "Configured with" line, but the problem is with the gcc-specs_x86 patch. I'm changing the gcc-specs_x86 patch to use --with-dyn-linker. robert On Thursday 23 November 2006 21:29, Robert Connolly wrote: > With the 2.4-branch book, with binutils-2.17/gcc-3.4.6/glibc-2.5, I got the > binutils testsuite to pass, but... > > The binutils testsuite complains until gcc is installed in chapter 6. > ld/ld.log says "--prefix=/tools" (coming from 'gcc -v') is causing > an "unknown option" failure from ld/ld-new. Its extremely strange since > this error does not happen with gcc-4.1.1. Either way, its a binutils > testsuite bug, but maybe it can be worked around without patching binutils > by adjusting gcc's configure options.
pgpMGGHZuUFj4.pgp
Description: PGP signature
-- http://linuxfromscratch.org/mailman/listinfo/hlfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
