[lfs-support] Not set up to use the correct startfiles at the 6.17 sanity check

Chris Staub chris at beaker67.com
Mon Nov 5 20:59:59 PST 2012


On 11/05/2012 09:10 PM, Harry Prevor wrote:
> This is my second LFS build, but it's been a while. This time I'm
> trying to build with Package Users as described in this hint:
> <http://www.linuxfromscratch.org/hints/downloads/files/more_control_and_pkg_man.txt>
>
> For the sanity check at 6.17
> <http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gcc.html>,
> I get the correct program interpreter ([Requesting program
> interpreter: /lib64/ld-linux-x86-64.so.2]), but
>
>      grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log
>
> yeilds no output, which means I'm apparently not set up to use the
> correct startfiles. My dummy.log is located here:
>
>      <http://sprunge.us/dcfi>

I see a number of suspect lines in there. In particular, a bunch that 
look like:

COMPILER_PATH=/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.1/:/bin/../lib/gcc/
LIBRARY_PATH=/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.1/:/bin/../lib/gcc/:/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../:/lib/:/usr/lib/

And similarly...

attempt to open /bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.1/crtend.o 
succeeded

I see numerous similar lines in your output - basically, it appears to 
be looking in /bin and /lib for gcc files, rather than /usr/{bin,lib}. 
Does "ls /lib/gcc" give any output? Also, did you deviate from the 
book's instructions in any way other than adding Package User commands? 
Even if you did not do so deliberately, you might want to go back 
through your command history to verify what you actually typed vs. 
what's in the book.



More information about the lfs-support mailing list