On Thu, Jul 25, 2013 at 12:47:56PM +0100, Unix User wrote: > Dear list, > > after encountering a problem and searching the internet I decided to start a > fresh 7.3 install - which was also suggested to someone encountering the same > error but on different LFS version. However, at section 5.8.1 (binutils pass > 2) the following error is given now at command "make -C ld > LIB_PATH=/usr/lib:/lib": > > ---------------------8<---------------- > [...] > > /bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -g -O2 -no-undefined > -rpath /nowhere -o libldtestplug.la libldtestplug_la-testplug.lo -lz -ldl > libtool: link: gcc -shared .libs/libldtestplug_la-testplug.o -lz -ldl > -Wl,-soname -Wl,libldtestplug.so.0 -o .libs/libldtestplug.so.0.0.0 > /tools/bin/ld: this linker was not configured to use sysroots > collect2: error: ld returned 1 exit status
http://www.linuxfromscratch.org/lfs/errata/stable/ points out that the proper fix for failure to make 'check' later in the book is to alter the configure for binutils pass 2 by adding --with-sysroot. We've done that in the development book. I guess that things have moved on, and you will have to add that switch. Doing that will, if my memory is correct, mean that /tools/lib/whichever-linux-gnu/lib no longer appears in the SEARCH_DIR entries at the end of 'Adjusting The Toolchain' (section 6.10). Compare the development book. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page