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.
Just started today with the LFS book 6.5. It's my first LFS installation and I've got everything prepared, host system has all it needs on board and the installation of the first package (binutils) ran perfectly.
The second however GCC-4.4.1 - Pass 1, compiles without any errors but when I issue the make command I get the following error:
Code:
checking for i686-lfs-linux-gnu-gcc... /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/ -B/tools/i686-lfs-linux-gnu/lib/ -isystem /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-gnu/sys-include
checking for suffix of object files... configure: error: in `/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
I've been looking around on the Internet but can't seem to find the solution. Since it's my first LFS I'm a bit in the dark here (A LOT).
I hope someone can help me out on this one. I followed the book to the letter so I assume it's something I'm missing in my host system but cannot find it.
Just installed g++, although it was not in the prerequisite list, but get the same result when I run the make command. It gives me exactly the same error. Any idea?
Have installed the missing things and now make takes up more time but still results in the same error. I'm really stumped, most of all because I haven't got a lot of experience with compiling and hence don't know where to look. I hope you could give it another look. I'm quite sure that it's because of things missing in my host system but I've followed the LFS book and the thing KBP mentioned up till now don't seem to be listed.
Just encountered by luck an error in my PATH that might have caused the problem. Trying it out now. I'll keep you guys up to date.
Just finished make command again and with the same error. I've attached the latest log file. I'd appreciate if someone could indicate me what I'm missing or why make is failing.
I got my problem fixed. I started the computer from the LFS LiveCD and when compiling and making the package I got the same error which in my opinion shouldn't happen at all. So I consulted my very best friend (Google) again and came across a post in the archives of LFS stating that when recompiling you have to start from scratch. So I completely deleted the 'build' directory and started over; and this time it worked without any problems.
Thank you very much for helping out kbp. You got me started in the right direction.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.