No output for sanity check in Glibc-2.26 chapter 5.7 - Error in tools directory location
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
yes the link is linking the tools folder not the individual tools, creating this link is one of the earlier things the lfs book says todo, ALWAYS read the book !
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
I would suggest starting from scratch as you are near the begining of chap 5, delete the tools folder AND the symlink in /, start again and check that all the commands have completed properly especialy the /tools symlink, you can use the readlink or file command to check where a link is pointing to.
Yes, I restarted my build as suggested. The file links just as before. I verified it using the Dolphin browser[I use Slackware] and I can confirm that it is linked. But when I use ls -l it didn't show the link.
This doesn't seem to be a problem right now.
But again, while performing the sanity check,
Code:
lfs:/mnt/lfs/sources/glibc-2.26/build$ echo 'int main(){}' > dummy.c
lfs:/mnt/lfs/sources/glibc-2.26/build$ $LFS_TGT-gcc dummy.c
/mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/7.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld:
cannot find crt1.o: No such file or directory
/mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/7.2.0/../../../../x86_64-lfs-linux-gnu/bin/ld:
cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
lfs:/mnt/lfs/sources/glibc-2.26/build$ readelf -l a.out | grep ': /tools'
readelf: Error: 'a.out': No such file
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
If ls is not showing the link then it has NOT been created properly try:
Code:
readlink /tools
If the output points to anywhere other than your tools folder then you have a problem.
PLEASE NOTE:
"This doesn't seem to be a problem right now." -> WRONG!!!
When presented with ANY error while building the tool chain WILL make for a fubar'ed tool chain and ultimately a broken system, you MUST fix problems as they appear or you you will never get a working LFS system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.