(Posted twice, apologies for spam)

Hello all,

I'm following 7.3 through on OSX running an Ubuntu VM.  All seems to be
going well so far but I've now hit an anomaly and not sure if I should
continue.

After compiling GCC (pass 3) and running the tests (all seems fine), I've
noticed that the /tools directory is appearing a few times after verifying
the toolchain.

root:/sources/gcc-build:$ readelf -l a.out | grep ': /lib'
      [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]
root:/sources/gcc-build:$ grep -B4 '^ /usr/include' dummy.log
#include <...> search starts here:
 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/include
 /usr/local/include
 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/include-fixed
 /usr/include
root:/sources/gcc-build:$ grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'
SEARCH_DIR("/tools/x86_64-unknown-linux-gnu/lib64")
SEARCH_DIR("/tools/x86_64-unknown-linux-gnu/lib")
SEARCH_DIR("/usr/lib")
SEARCH_DIR("/lib");

The majority of the output matches what the book suggests.  However, there
are some additional /tools directories that shouldn't (at least I don't
think) be there.

According to the book, it should be:

SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib64")
SEARCH_DIR("/usr/local/lib64")
SEARCH_DIR("/lib64")
SEARCH_DIR("/usr/lib64")
SEARCH_DIR("/usr/x86_64-unknown-linux-gnu/lib")
SEARCH_DIR("/usr/local/lib")
SEARCH_DIR("/lib")
SEARCH_DIR("/usr/lib");

I hunted in the specs file and couldn't find any entries for it.  But, to
be honest, am probably looking in the wrong places.

FYI, I did not use the sysroot switch on binutils.  I did come across the
"check 0.9.9" compilation problem so used the ldthread switch to fix that.

Additionally, when running 6.10 "Adjusting toolchain", I correctly saw:

SEARCH_DIR("/tools/i686-pc-linux-gnu/lib")
SEARCH_DIR("/usr/lib")
SEARCH_DIR("/lib");

Thanks in advance,

James
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to