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.
The directories are wrong and the resulting permission issues may be causing your problem. Remove any gcc directories and start 5.4 again.
Extract gcc-4.1.2.tar.bz2 INSIDE the sources directory. You should now have the directory /mnt/lfs/sources/gcc-4.1.2
The book expects you to run "mkdir -v ../gcc-build" from inside /mnt/lfs/sources/gcc-4.1.2. So now you should now have the directory /mnt/lfs/sources/gcc-build. cd to that directory and try the configure/make commands again. You can check the current directory at any time by using "pwd".
You are correct, Daws. I re-read the instructions and then realized my error. After I made the correction the build went ok. I'm too used to Windoze point&click I suppose.
I encounter the same problem when compile GCC, and later fix it by using "lfs" account. I think LFS documents should better add a note there in order to make reader more clearly.
I encounter the same problem when compile GCC, and later fix it by using "lfs" account. I think LFS documents should better add a note there in order to make reader more clearly.
Agreed... That page screw-up my head for a couple of month, till see this topic
I'm having the same problem with gcc erroring out while trying to make bootstrap. I did avoid the two pitfalls mentioned. I was logged in as lfs, and untared gcc-4.1.2.tar.bz2 inside the $LFS/sources directory before making a the new $LFS/sources/gcc-build directory then issuing the commands from within gcc-build. I have tried several times, including scrapping and starting over. I also tried just issuing the "make" command, but no luck there either. I'm not sure how to post the output of the commands, but here is briefly that last lines I could see:
In file included from /usr/include/features.h:346,
from /usr/include/stdio.h:28,
from ../../gcc-4.1.2/gcc/tsystem.h:90,
from ../../gcc-4.1.2/gcc/crtstuff.c:68:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[4]: *** [32/crtbegin.o] Error 1
make[4]: Leaving directory '/mnt/lfs/sources/gcc-build/gcc'
make[3]: *** [extra32] Error 2
make[3]: Leaving directory '/mnt/lfs/sources/gcc-build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory '/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-build/gcc'
make: *** [bootstrap] Error 2
I know version 7.0 is out, but its not supported by the liveCD, and I mainly want to use this build as a training platform to learn more about how linux works. Any help would be great, thanks so much!
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
You seem to be missing the glibc development package (32 bits!!) on your host.
Hope this helps.
BTW: You posted in an old thread that isn't really related to your problem and it deals with an old LFS version compared to yours. Please post a new thread next time you encounter a problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.