On 3/17/19 5:08 PM, Bruce Dubbs wrote:
On 3/17/19 3:48 PM, [email protected] wrote:
Trying to figure this out.
6.10. Adjusting the Toolchain
The step the results in
grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'
SEARCH_DIR("=/tools/x86_64-pc-linux-gnu/lib64")
|SEARCH_DIR("/usr/lib") SEARCH_DIR("/lib")|
SEARCH_DIR("=/tools/x86_64-pc-linux-gnu/lib")
Notice the = in front of the first and last entries. I know they
should be ignored but what is causing the
=/tools...... ?
So I unounted the LFS partition and mkfs.ext4 -m1 -L LFS, remounted
the LFS partition and rebulit Chapter 5 and stopping. the ran the
following tests
I know it is happening during the chapter 5 build ( Nothing from
Chapter 6 built at this point ). The first ( ld test ) is the same
as the adjusting tool chain step the the second one ( gcc test ) gets
it correct.
lfs:/mnt/lfs/usr/src/LFS-RPM$ ld --verbose | grep SEARCH_DIR | tr -s
' ;' \\012
SEARCH_DIR("=/tools/x86_64-pc-linux-gnu/lib64")
SEARCH_DIR("/tools/lib")
SEARCH_DIR("=/tools/x86_64-pc-linux-gnu/lib")
lfs:/mnt/lfs/usr/src/LFS-RPM$ gcc -m64 -Xlinker --verbose 2>/dev/null
| grep SEARCH | sed 's/SEARCH_DIR("=\?\([^"]\+\)"); */\1\n/g' | grep
-vE '^$'
/tools/x86_64-pc-linux-gnu/lib64
/tools/lib
/tools/x86_64-pc-linux-gnu/lib
lfs:/mnt/lfs/usr/src/LFS-RPM$
Any explainations?
It appears to be internal to gcc. I note that if I do the same thing
in a full up lfs system I get:
SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib64")
SEARCH_DIR("/usr/local/lib64")
SEARCH_DIR("/lib64")
SEARCH_DIR("/usr/lib64")
SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib")
SEARCH_DIR("/usr/local/lib")
SEARCH_DIR("/lib")
SEARCH_DIR("/usr/lib");
Of those /usr/x86_64-pc-linux-gnu/lib64, /usr/local/lib64, /usr/lib64,
and /usr/x86_64-pc-linux-gnu/lib do not exist.
There is nothing we did to add them.
-- Bruce
What I find interesting is why the = in the tools chain but it is
correct in the final system. I don't remember having seen the = in the
LFS-8.3 version. So it is my opinion that it has something to due in
the newer version of packages.
I intend to test the completed system when I get to that point. I am
only at the adjusting the tool chain point currently. I shows up there
in the testing the tool chain using the book tests. It takes a while
for me to get to the end of a "build" as I test and look over each and
every step so I am confident that I scripted it correctly. All my work
in LFS then goes into github.
Upon using google I have found a couple of posts where it shows up on
others system as well so it is not something that affects only my build.
--
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