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.
Yes I issued the 'chown' commands as directed in para. 4.3. I went back and re-checked and "lfs" was retained as owner in both /tools and /sources.
Thanks for the assistance. Any other suggestions?
I assume this is LFS 6.8 stable and you are doing chapter 5 gcc pass1. I also assume the binutils errors you posted are from binutils pass 2 (otherwise you should go back to binutils pass 1 and fix that one first, no point in continuing the build if some package fails).
1) Did you use a clean source gcc tree when compiling and building? Always remove the source directory and freshly untar the package before starting.
2) Did you unpack the GMP, MPFR and MPC packages inside the gcc source tree?
3) What does the config.log file tell you (/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc/config.log).
I found that I had a "binutils-build" in "/mnt/lfs/". I don't know how I put it there. After each package installation I "cd ..","rm -rf" build directory, then "rm -rf" un-tarred directory. When I restarted I deleted the sdb6 partition and re-created it using Gparted but I didn't delete the packages and patches that were still intact in Downloads and /mnt/lfs/sources. I have, since, removed packages and patches and re-installed them. Hence, the config.log no longer exists. Thanks for your help. I know where to come if I need more help. I appreciate it.
Another thing that comes to mind: You've been redoing this part, are you sure there are no leftovers from the previous tries? Might be a good idea to scratch everything and start completely fresh.
I deleted sdb6 partition and then re-created it using GParted. This may be a dumb question but when I become "root", should I use "su -" or "su"? Also, exactly how should I use the "wget" command, using the "wget-list" that is referenced in para. 3.1 of manual version 6.8? I've tried several times to incorporate the "wget-list" in the command and have not been successful. Thanks for your assistance.
when I become "root", should I use "su -" or "su"?
You have to use su -
su does not set the full root environment, su - does.
Quote:
Also, exactly how should I use the "wget" command, using the "wget-list" that is referenced in para. 3.1 of manual version 6.8? I've tried several times to incorporate the "wget-list" in the command and have not been successful. Thanks for your assistance.
First download and safe the wget-list file (this one).
Thank you for the information. I usually use "su -" but the other day, for some reason, I couldn't copy a file from Downloads to /mnt/lfs/sources with that command until I used "su". I have deleted and recreated partition sdb6 and changed host to PCLinuxOS. I am more familiar with it than I am with openSUSE which was a recent installation. I'll see how it goes. Thanks again.
Thanks for the reminder about the "Host System Script". It checked "compilation OK". I'm now at para.6.71, Linux Kernel and I'm getting errors when I run "make mrproper". Here is the output:
Quote:
root:/sources# cd linux-2.6.39.1
root:/sources/linux-2.6.39.1# make mrproper
/bin/sh: find: command not found
/bin/sh: line 5: xargs: command not found
make: *** [clean] Error 127
Also, when I checked "echo $LFS" and "df -h | grep $lfs" they weren't set or mounted. I reset and remounted them and re-ran "make mrproper" but there was no change. I have downloaded and installed the latest linux kernel header but that didn't change results of command "make mrproper". I first ran it on "linux-2.6.37' and got same result. I do appreciate all help.
It looks like some commands cannot be found or are not present on your system.
- Are find and xargs installed? If not: something went very wrong in the earlier chapters.
- You still seem to have problems with LFS not being set and the partition not being mounted, could you have re-created your previous problem (parts installed on a mounted $LFS and parts that are installed when LFS wasn't mounted)? You might want to check this reply
I cd'd into "/bin" and the only entry for "/sh" is a link to bash:
Quote:
lrwxrwxrwx 1 root root 4 Nov 10 2010 sh -> bash*
Upon opening the link there was a bunch of goggledygook that was unintelligible to me. Today, "echo $LFS" showed that LFS was set but "df -h | grep $LFS" showed nothing. I re-mounted LFS and verified that "/etc/fstab" setting was ok. I guess I'll delete the partition and start over. I've certainly had practice doing that. Thanks for your kind help and patience.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.