On 17/03/2019 22:25, [email protected] wrote: > > 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.
On a system built in April 2018, I do have the equal signs. So they must have been there in 8.2 too... The completed toolchain does not have them, because we do not have --with-sysroot in chapter 6 binutils option (if you want to see the --with-sysroot in configure --help, first change to the ld directory in binutils...) 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
