Binutilus error at cmd 'make tooldir=/usr'
As the post says, I'm having issue with cmd 'make tooldir=/usr'.
I'm at step 6.16 for version 8.1 My distribution at what I'm doing this is Fedora 27 The output of error is: In file included from ../../gold/gold.h:30:0, from ../../gold/archive.cc:23: /usr/include/c++/7/cstdlib:75:15: fatal error: stdlib.h: No such file or directory #include_next <stdlib.h> |
Something went wrong. You'll have to retrace your steps and try again.
Your temporary tool chain built in chapter 5 has been modified. So, you might have to start the book all over again. The only piece of advice I can give you is follow the book to the letter. Don't let this discourage you. It it typical of newbies to mess up their progress beyond repair. I have had to start over again when I first started reading LFS. |
Quote:
|
Quote:
Maybe you do not found any error while building tools at Chapter-5, but it is not guarantee error free. If you have back-up of tools, try to restart Chapter-6 from beginning, before start over again. |
My wild guess is that you messed up on 6.4 and maybe 6.2. That's what I'd try first, if that doesn't work, maybe a complete rebuild might be needed.
Anyways...let us know what works. |
What's this "tooldir=/usr" thing? The book says:
Quote:
|
Quote:
|
I know Fedora has caused problems here. Actually the best platform for building LFS is an existing LFS, but the next best is generally agreed to be Slackware or one of its derivatives, like Salix. I have used Debian successfully too, but you have to start by installing gawk (Debian prefers mawk) and changing the system shell to point to bash and not dash.
|
Quote:
|
What I said about gawk/mawk and bash/dash applies to Ubuntu too.
|
Quote:
|
All times are GMT -5. The time now is 11:44 PM. |