LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 12-02-2017, 12:43 PM   #1
fingerzz
LQ Newbie
 
Registered: Dec 2017
Posts: 4

Rep: Reputation: Disabled
Unhappy 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>
 
Old 12-02-2017, 06:43 PM   #2
sr_ls_boy
Member
 
Registered: Apr 2015
Posts: 105

Rep: Reputation: Disabled
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.
 
Old 12-03-2017, 06:54 AM   #3
fingerzz
LQ Newbie
 
Registered: Dec 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sr_ls_boy View Post
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?
 
Old 12-04-2017, 08:58 PM   #4
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Rep: Reputation: 23
Quote:
Originally Posted by fingerzz View Post
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.
 
Old 12-04-2017, 10:00 PM   #5
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
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.
 
Old 12-05-2017, 02:00 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,562
Blog Entries: 19

Rep: Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445
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
 
1 members found this post helpful.
Old 12-05-2017, 05:51 AM   #7
fingerzz
LQ Newbie
 
Registered: Dec 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by anak_bawang View Post
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?
 
Old 12-05-2017, 10:24 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,562
Blog Entries: 19

Rep: Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445
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.
 
Old 12-05-2017, 11:35 AM   #9
fingerzz
LQ Newbie
 
Registered: Dec 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
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.
 
Old 12-05-2017, 12:09 PM   #10
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,562
Blog Entries: 19

Rep: Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445Reputation: 4445
What I said about gawk/mawk and bash/dash applies to Ubuntu too.
 
Old 02-26-2018, 04:42 PM   #11
OedipusR3x
LQ Newbie
 
Registered: Feb 2018
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by fingerzz View Post
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make error: /usr/bin/ld: cannot find -lXext ryedunn Linux - Software 20 11-16-2011 03:28 AM
[SOLVED] make error: /usr/bin/ld: cannot find -lTogl1.7 sagarpareek Linux - Software 2 11-03-2011 03:19 PM
make with make file yields error: /usr/bin/javac: cannot execute binary file bweaver Ubuntu 4 11-19-2010 02:58 PM
LFS6.1 Section3.13 - Binutils : Error on "make tooldir=/usr" StevePhM Linux From Scratch 4 07-21-2005 12:22 AM
/usr/bin/ld error recieved on make jmonolith2001 Linux - Software 4 12-28-2004 03:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration