[SOLVED] confusion in LFS 7.5 - 6.10. Adjusting the Toolchain
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.
confusion in LFS 7.5 - 6.10. Adjusting the Toolchain
hey there i managed to get to chapter 6.10. Adjusting the Toolchain of the LFS 7.5 book but i ran into a confusion... which is.. should i execute the following codes from root#/sources$ or just root#$
Not sure what you mean with the root#. It's been awhile since I did a LFS build, but IIRC, you're already in the chroot environment in chapter 6.10. Within the chroot environment, the filesystem root (/) is /mnt/lfs (or whatever you have $LFS set to) from your host system. So, /tools/bin in your chroot environment is the same as /mnt/lfs/tools/bin in your host system.
Since the commands in 6.10 use absolute paths, not relative paths, it doesn't matter where you execute the commands from. Unless the instructions direct me to change directories, I stay in /sources. So, I would execute those commands from /sources (/mnt/lfs/sources from the host system perspective). But, you can execute them from whichever directory in your chroot that tickles your fancy.
The remaining commands in 6.10 are grepping the log file you create in the last step you post above. So the remaining commands need to be executed from the directory in which you created dummy.log.
Chapter 6.6 is where you entered chroot environment, also there are additional instructions of how to return to chroot environment if you should have to leave at the bottom of that page. Make sure that you follow the additional minstructions to get back to the chroot environment or you will endup changing your $PATH in your host sytem. Beleive my I've done it.
I have been following LFS nowadays and i have reached to chapter 6.10 Adjusting the Toolchain. I have followed the given commands but i am failed in sanity check of:-
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.