Well, I've made it this far!  :-)

I'm attempting to check that I've properly pointed to the new dynamic
linker (in /tools) with the test shown on page 42.  I'm failing the
test.

This is my first time going through the LFS book.  Can someone
interpret the output of the "specs" code and the "test dynamic
linker" code and see what is wrong?  (My guess is the too many
"../../../" shown but if so I don't know how to fix it.  Do I just
start over?  How do I clean up in order to start over?)

<snip>
l...@lfsdevmachine:/mnt/lfs/sources$ rm -rf specs 
l...@lfsdevmachine:/mnt/lfs/sources$ SPECS=`dirname $($LFS_TGT-gcc 
-print-libgcc-file-name)`/specs
l...@lfsdevmachine:/mnt/lfs/sources$ $LFS_TGT-gcc -dumpspecs | sed \
>   -e 's@/lib\(64\)\?/ld@/tools&@g' \
>   -e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS 
l...@lfsdevmachine:/mnt/lfs/sources$ echo "New specs file is: $SPECS"
New specs file is: ./specs
l...@lfsdevmachine:/mnt/lfs/sources$ unset SPECS
l...@lfsdevmachine:/mnt/lfs/sources$ 
l...@lfsdevmachine:/mnt/lfs/sources$ 
l...@lfsdevmachine:/mnt/lfs/sources$ 
l...@lfsdevmachine:/mnt/lfs/sources$ 
l...@lfsdevmachine:/mnt/lfs/sources$ echo 'main(){}' > dummy.c
l...@lfsdevmachine:/mnt/lfs/sources$ $LFS_TGT-gcc -B/tools/lib dummy.c
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.5.1/../../../../i686-lfs-linux-gnu/bin/ld:
 crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
l...@lfsdevmachine:/mnt/lfs/sources$ readelf -l a.out | grep ': /tools'
readelf: Error: 'a.out': No such file
l...@lfsdevmachine:/mnt/lfs/sources$ 
</snip>
-- 
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