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 lfs book version is 7.4. My host system is Linux Mint Release 15.
Before this problem I faced build issues with binutils-2.23.2 also, but I did not record the error. Googling around a bit gave me a hint to user MAKEINFO=true option with make, and it worked.
Back to the gcc build issue. I tried the build multiple times and did a make clean between attempts. The configure command I copied directly from the book after trying to build after typing it all by hand.
Please, please help me with this. If there is any other info that I must provide, please let me know.
Before this problem I faced build issues with binutils-2.23.2 also, but I did not record the error. Googling around a bit gave me a hint to user MAKEINFO=true option with make, and it worked.
You need to forget about the gcc issue and go back to binutils.
All the commands needed are in the book and there is no need to add or subtract any commands. If you do encounter an error then the chances are that you did something wrong (unless it is mentioned in the book or the errata).
If you "fix" a problem by doing extra stuff not mentioned in the book then the chances are that it will come around and bite you later on.
Hi Drruna,
I agree that the book should be having all commands 'exactly' the way it is meant to be. It was all fine until I ran into the binutils issue. I have checked and rechecked, but I haven't been able to spot a mistake until that step. As per the LFS website there is no errata for the latest (7.4) book.
The workaround that I mentioned, I found it here: https://lists.gnu.org/archive/html/b.../msg00025.html
Please take a look.
I'm now trying to run configure and make again for binutils. Will update soon.
Appreciate your help! :-)
Aashish
To be honest, there's no point in looking at the solution you found. LFS works without having to do extra stuff that isn't in the book. There also hasn't been any mention of problems with binutils on the LFS mailing list.
Are you 100% sure that your host is compliant? Post the output of the version-check.sh script so we can have a look.
Also: Without any indication what went wrong with binutils we aren't able to help. Post the error shown (including +/- 10 lines leading up to the error).
I went back to building binutils first, and for some reason it worked just fine with make and make install. It must have been something I missed the first time around.
My host is Mint Linux which is forked out of Ubuntu, so I'm guessing it should work just fine. I'm really not sure what I'm missing here: I've been following the book to the very letter. No deviations at all.
Attaching outputs of version-check and configure of gcc-4.8.1.
Its not entirely clear to me what you did or did not do: After successfully building Binutils-2.23.2 - Pass 1, did you remove the gcc and gcc-build directory before retrying GCC-4.8.1 - Pass 1 (as mentioned here: General Compilation Instructions)?
The gcc configure output you attached doesn't show any errors and in your first post you seem to have posted the output of the make command.
Sorry for all that confusion. Let me explain:
The make output in the first post shows the error that I got during gcc build. The build failed after running for a long time (not 5-10 mins). Outputs of version-check script and gcc configure were attached in my previous post. As you mentioned, there seems to be nothing wrong with gcc configure.
By my previous post I had gone back to binutils-build, did a make clean, configure, and then make and make install. As I said, it worked this time. But even after that the gcc build had failed with the same error.
As of writing this post I have deleted my gcc and gcc-build directories (to start over with gcc). I then extracted gcc from the tarball and then followed all the steps exactly as mentioned in the book (including making a new gcc-build directory, etc). I have started a new gcc build, which is in progress. Will post and update on that soon.
It worked this time. I'm pretty sure I didn't do anything different from the last time when I started from scratch. Still, having said that, I'll be even more careful now to follow the book exactly.
Thanks for the prompt response! :-)
Aashish
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.