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.
Hi, I'm having a problem that i can't seem to fix,
Applies to: Chapter 5.7. Adjusting the Toolchain (LFS v6.1.1 Book), using disc-version lfslivecd-x86-6.1.1-3
When I run next to check the toolchain;
Code:
echo 'main(){}' > dummy.c
cc dummy.c
Then I get next warning;
Code:
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld:
ld-linux.so.2,
needed by /tools/lib/libc.so.6,
not found (try using -rpath or -rpath-link)
I have the file at /mnt/lfs/tools/lib/ld-linux.so.2", checked vars/paths/files but can't find what I'm doing wrong, did re-install everything from start a couple of times and I keep getting stuck at this stage.
Hi, yes, my output didn't look same as you have illustrated, I did run the specfile command ones again like you instructed and seems it working fine now.
I will make a fresh install tomorrow and see where I went wrong before.
Thanks.
I got an aditional question I wish to ask, I just advanched now upto the part of "III. Building the LFS System", as instructed here I'm told to continue under root user from now onwards, tough I'm not able to make the su switch to root, it asks for a password, i tried "root", "x", "0" and even the lfs user password that I entered at beginning, none of these allows me to become root user again.
Do I need a reboot here first in order to gain root status back again or can I make the switch somehow rightaway?
it's the root account for your regular non-LFS system... you should be able to su to root as you usually do, with your usual password... no reboot or anything like that is needed...
Sorry win32sux, I forgot to mention I'm not building LFS from a existing host system, I'm using the LFS-livecd itself as host system, the book told this was an option to. This is why I don't know the root password yet, I need to make the su switch (chap-6.1) before the group/passwd files are created in a later stage (chapt-6.7)
This confuses me a bit to, becuase in chapt-6.7 it's been told you can't login as root until these files are setup.
Problem solved, I was under the impression that there was a root password by default, until I booted the Livecd again and did enter 'passwd' as the very first thing to do...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.