LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Binutilus error at cmd 'make tooldir=/usr' (https://www.linuxquestions.org/questions/linux-from-scratch-13/binutilus-error-at-cmd-make-tooldir%3D-usr-4175618816/)

fingerzz 12-02-2017 12:43 PM

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>

sr_ls_boy 12-02-2017 06:43 PM

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.

fingerzz 12-03-2017 06:54 AM

Quote:

Originally Posted by sr_ls_boy (Post 5787948)
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.

I didn't had error anywhere which was weird for me that show the error. Could be the error due of distribution?

anak_bawang 12-04-2017 08:58 PM

Quote:

Originally Posted by fingerzz (Post 5788065)
I didn't had error anywhere which was weird for me that show the error. Could be the error due of distribution?

I don't think so. When you can go to Chapter-6, it means there is nothing wrong with the distribution (host).

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.

Mill J 12-04-2017 10:00 PM

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.

hazel 12-05-2017 02:00 AM

What's this "tooldir=/usr" thing? The book says:
Quote:

../configure --prefix=/usr \
--enable-gold \
--enable-ld=default \
--enable-plugins \
--enable-shared \
--disable-werror \
--with-system-zlib

fingerzz 12-05-2017 05:51 AM

Quote:

Originally Posted by anak_bawang (Post 5788958)
I don't think so. When you can go to Chapter-6, it means there is nothing wrong with the distribution (host).

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.

I actually fixed this issue which was similar to my issue (link here: https://github.com/Martchus/tagedito...ment-348774579 ) but when i do 'make -k check' it shows me a error in Makefile row 2174 for 'do-check'. I might do all over again with another distribution that is recommended for doing LFS. Any suggestion?

hazel 12-05-2017 10:24 AM

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.

fingerzz 12-05-2017 11:35 AM

Quote:

Originally Posted by hazel (Post 5789225)
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.

I just started all over again with Xubuntu 16 version as a VM.

hazel 12-05-2017 12:09 PM

What I said about gawk/mawk and bash/dash applies to Ubuntu too.

OedipusR3x 02-26-2018 04:42 PM

Quote:

Originally Posted by fingerzz (Post 5789118)
I actually fixed this issue which was similar to my issue (link here: https://github.com/Martchus/tagedito...ment-348774579 ) but when i do 'make -k check' it shows me a error in Makefile row 2174 for 'do-check'. I might do all over again with another distribution that is recommended for doing LFS. Any suggestion?

I've got the same problem. make -k check is showing an error in 'do-check' at line 2174 in the Makefile. Were you able to find a solution?


All times are GMT -5. The time now is 11:44 PM.