LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-26-2012, 04:34 PM   #1
Snoodle
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Rep: Reputation: Disabled
Cool Error in Binutils-2.22 - Pass 1 Error [455] segmentation fault


This is the page I'm on: http://www.linuxfromscratch.org/lfs/...ils-pass1.html
Hello, this is my first attempt at LFS. I've double and triple checked my steps and variables up to this point, but I can't figure out what I'm doing wrong here. I even started over from chapter 4.

When I run this step:
Quote:
../binutils-2.22/configure \
--target=$LFS_TGT --prefix=/tools \
--disable-nls --disable-werror
I get a screen that looks like this:
http://i.imgur.com/YM6bV.png
Quote:
../binutils-2.22/configure[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[445]: .[421]: eval[2]: expr: not found [No such file or directory]
It repeats this for about a minute and then gets tired I suppose.

I'm not hitting backspace or tab after the the slash "\", I've re-typed and run this many times.
I went back and looked as my ~./bashrc and even retyped that all too.

If I echo my $LFS_TGT it looks like this:
Quote:
lfs@arturolmde /mnt/lfs/sources/binutils-build $ echo $LFS_TGT
i686-lfs-linux-gnu
I even tried running just configure by itself and it gives the same error.
I appreciate any feedback. Someone will probably point out that I missed something very noobish and obvious.

Last edited by Snoodle; 08-26-2012 at 04:36 PM.
 
Old 08-26-2012, 04:45 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Cant help much at the moment but can you post what host you are using and the output of version-check
 
Old 08-26-2012, 05:02 PM   #3
Snoodle
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
Hi

Cant help much at the moment but can you post what host you are using and the output of version-check
I'm using linux mint debian edition 201204
I never used it prior to this build. I installed it for this project computer because I saw debian listed as one of the host system recommendations.
Quote:
arturo@arturolmde ~/Desktop $ bash version-check.sh
bash, version 4.2.20(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Debian) 2.22
bison (GNU Bison) 2.5
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 3.1.8
/usr/bin/awk -> /usr/bin/gawk
gcc (Debian 4.6.3-1) 4.6.3
(Debian EGLIBC 2.13-27) 2.13
grep (GNU grep) 2.10
gzip 1.4
Linux version 3.2.0-2-486 (Debian 3.2.9-1) (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-1) ) #1 Mon Mar 5 00:55:40 UTC 2012
m4 (GNU M4) 1.4.16
GNU Make 3.81
patch 2.6.1
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
version-check.sh: line 33: makeinfo: command not found
Texinfo:
xz (XZ Utils) 5.1.0alpha
gcc compilation OK
 
Old 08-26-2012, 05:09 PM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
A couple of things need changing

"/bin/sh -> /bin/dash" /bin/sh needs to be /bin/bash
"version-check.sh: line 33: makeinfo: command not found" makeinfo needs to be installed


Dont think these are the problems tho but need to be fixed.
also when you rebuild binutils or any package always remove the extracted dir and any package-build dir then untar and start the package build again.

Still not found an ans to your error
 
Old 08-26-2012, 05:29 PM   #5
Snoodle
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
A couple of things need changing

"/bin/sh -> /bin/dash" /bin/sh needs to be /bin/bash
"version-check.sh: line 33: makeinfo: command not found" makeinfo needs to be installed


Dont think these are the problems tho but need to be fixed.
also when you rebuild binutils or any package always remove the extracted dir and any package-build dir then untar and start the package build again.

Still not found an ans to your error
Ok I understand that I need to install makeinfo, and I have been doing rm -r my directories when I restart the process. I'm not sure how to change bin/sh but I will look that up in the faq now, thanks.
 
Old 08-26-2012, 09:25 PM   #6
Snoodle
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Ok this is my new version check output
Quote:
bash, version 4.2.20(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Debian) 2.22
bison (GNU Bison) 2.5
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 3.1.8
/usr/bin/awk -> /usr/bin/gawk
gcc (Debian 4.6.3-1) 4.6.3
(Debian EGLIBC 2.13-27) 2.13
grep (GNU grep) 2.10
gzip 1.4
Linux version 3.2.0-2-486 (Debian 3.2.9-1) (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-1) ) #1 Mon Mar 5 00:55:40 UTC 2012
m4 (GNU M4) 1.4.16
GNU Make 3.81
patch 2.6.1
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.1.0alpha
gcc compilation OK
Id like to report that after making the changes that spiky0011 suggested, I have been able to complete this step. My guess as to what the problem was, is that the book says that the bash shell must be in use. By changing /bin/sh to bash, it fixed the problem. I dont know what I'm doing but this is fun.
 
Old 08-27-2012, 01:15 AM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

I dont think that /bin/dash was the problem as I have built going futher with it set like that.
On a good note you have got started.
 
  


Reply



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
[SOLVED] lfs 6.7 book ch 5.4 binutils 2.20.1 pass 1 error:error: ppl_c.h: No such file or directory frank zhu Linux From Scratch 6 03-04-2011 11:23 AM
5.14. Binutils-2.15.91.0.2 - Pass 2 error! Flash_G Linux From Scratch 5 08-20-2006 06:02 AM
binutils first pass error gravesb Linux From Scratch 5 09-05-2005 01:42 AM
#Error: 5.4. Binutils-2.15.94.0.2.2 - Pass 1 ukyo Linux From Scratch 2 06-02-2005 04:37 AM
binutils-2.15.92.0.2 first pass, error rogerslin Linux From Scratch 7 12-20-2004 05:44 PM

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

All times are GMT -5. The time now is 03:03 AM.

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