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.
Search paths for header files and new linker are not as specified in the book.
I only get a few of those directories as output. Are these enough? Else, what am I supposed to do?
These are the sanity checks on your work in chapter 5. I think it's 6:4 where you enter the chroot and subsequently start compiling stuff.
Don't proceed. I would go back and do any sanity checks in chapter 5. Particularly what changes in chapter 6 is that /tools goes in at the end of the search paths, whereas previously it was in the beginning, IIRC. If your compiler in ch 5 is good, it should pass here. Typos?? Copy and paste if possible.
So in chapter 5, /tools (your new stuff) was used if it was there, otherwise the host system was used. Now you're heading up to the chroot, where the host system becomes invisible, and you want to use /tools only if the main system isn't built yet. So, for instance, a new gcc is built, and that gcc is used to build a second more comprehensive gcc.
Sorry, I've been wasting your time. I misread your initial post - I thought you gave me a page number, but you did not, did you? Always quote the exact stage with a LFS query. For example, gcc is built in stage 6:21
LFS is always a string of defeats followed by silence and one uncertain victory 'Did I really do it right?'.
This, sadly, is a defeat. This gcc should not see /tools at all. Not in the executables $PATH, the includes path, or the library path. Because now we don't use /tools, we use the shiny new LFS system. You shoulkd be showing the system includes. That looks like a fault elsewhere, in binutils, or glibc or toolchain readjustments.
You have installed. I would try 'make uninstall' in case that works. Then I would
0. Check the errata for something on this.
1. Go to the top of page, rm -rf on the archive, untar afresh, and repeat.
2. Go back to chapter 6:1 and page through. Repeat the checks and double check the toolchain readjustments
3. Decide whether you restart ch 5 or ch 6
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.