LinuxQuestions.org
Register a domain and help support LQ
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 11-15-2004, 06:18 AM   #1
rogerslin
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Rep: Reputation: 0
Question binutils-2.15.92.0.2 first pass, error


I am building LFS on a Debian install (2.6.8-1-386 kernel). I am now doing the first pass of binutils-2.15.92.0.2.

When I run:

$ make LDFLAGS="-all-static"

I get all the stuff going fine and then:

.............
.............
../../binutils-2.15.92.0.2/binutils/ar.c:148: undefined reference to `yyparse'
collect2: ld returned 1 exit status
make[3]: *** [ar] Error 1
make[3]: Leaving directory `/lfs/sources/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/lfs/sources/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/lfs/sources/binutils-build/binutils'
make: *** [all-binutils] Error 2


I tried to find an answer but I didn't find this particular binutils error. Any help is much appreciated.
 
Old 11-15-2004, 07:56 AM   #2
rogerslin
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Original Poster
Rep: Reputation: 0
anybody help?
 
Old 11-15-2004, 08:25 AM   #3
ADDY
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Rep: Reputation: 0
I've almost finished getting LFS up and running and have had a few errors like this. Have a look back through the book and make sure there isn't something you've missed or entered incorrectly. Make sure you follow every instruction to the letter.

Sorry i can't be more specific but nearly all my errors have been a result of me missing a step.
 
Old 11-15-2004, 08:48 PM   #4
rogerslin
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by ADDY
I've almost finished getting LFS up and running and have had a few errors like this. Have a look back through the book and make sure there isn't something you've missed or entered incorrectly. Make sure you follow every instruction to the letter.

Sorry i can't be more specific but nearly all my errors have been a result of me missing a step.
Thanks for advice, I will try from scratch again.
 
Old 11-16-2004, 02:25 AM   #5
rogerslin
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Original Poster
Rep: Reputation: 0
I have tried twice more, but it didn't work yet.
 
Old 11-30-2004, 12:51 PM   #6
tvburger
LQ Newbie
 
Registered: Nov 2004
Location: the Netherlands
Distribution: gentoo/ubuntu
Posts: 11

Rep: Reputation: 0
binutils

Hi,

binutils 2.14 is the latest stable version. Try this one iso 2.15.* .

- Tom
 
Old 12-07-2004, 08:08 PM   #7
mdh
Member
 
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 121

Rep: Reputation: 15
Re: binutils-2.15.92.0.2 first pass, error

Quote:
Originally posted by rogerslin
../../binutils-2.15.92.0.2/binutils/ar.c:148: undefined reference to `yyparse'
collect2: ld returned 1 exit status
[/B]
OK, check that the host system you are building on has bison and flex installed.
HJL binutils requires these packages to generate certain files.
With FSF binutils, bison and flex are not required (the generated files are generated by the release team prior to creating the release tarballs)

If bison and flex are not installed on the host, either install the packages using your hosts package management, or build and install them yourself.

Methinks there needs to be a big note in the book stating that bison and flex are required...

Regards
[R]
 
Old 12-20-2004, 05:44 PM   #8
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Thanks mdh,

I just started a new LFS 6.0 build with a zipslack host system (migrated to an ext2 partition). I had added just the minimum development tools to compile, so your solution really saved me a lot of time diagnosing and downloading.

Enjoy!
--- Cerbere
 
  


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
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.14 - Pass 1, compiler error peok Linux From Scratch 3 08-12-2004 12:34 AM
binutils-2.14 first pass, gcc error Add1Sun Linux From Scratch 3 04-29-2004 04:27 PM


All times are GMT -5. The time now is 04:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration