LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 02-01-2005, 06:22 AM   #1
Phyrexicaid
Member
 
Registered: Aug 2004
Location: JHB - South Africa
Distribution: Kubuntu 7.04; openSUSE 10.1
Posts: 176

Rep: Reputation: 30
Binutils Pass 1 error make LDFLAGS="-all-static"


Hi there,

My first problem with the very first package, this doesn't bode well!

When I get to the last make command ' make LDFLAGS="-all-static" ' it bombs out with:

../../binutils-2.15.91.0.2/binutils/bucomm.c:425: warning: the use of `mktemp' is dangerous, better use `mkstemp'
ar.o(.text+0x854): In function `mri_emul':
../../binutils-2.15.91.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/tools/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/lfs/tools/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/lfs/tools/binutils-build/binutils'
make: *** [all-binutils] Error 2

I'm building it on Suse 9.2 proffesional and have done everything it asked in the previous chapters. My kernel version is 2.6.8-24. Any suggestions on how to make this less painful? Having a problem on the first package doesn't instill me with confidence!

Dave

{EDIT}
I did make install and carried on with gcc installation which worked fine, but I don't want a broken toolchain that bites me when I reach the end, that'd just be a waste!

Last edited by Phyrexicaid; 02-01-2005 at 06:24 AM.
 
Old 02-01-2005, 09:38 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
undefined reference to `yyparse' - this is a flex function. Have you got flex installed?
 
Old 02-01-2005, 01:03 PM   #3
Phyrexicaid
Member
 
Registered: Aug 2004
Location: JHB - South Africa
Distribution: Kubuntu 7.04; openSUSE 10.1
Posts: 176

Original Poster
Rep: Reputation: 30
I installed flex, but haven't been able to check if it works. My root user seems to have problem, I deleted the lfs user and group and the binutils+gcc packages because I wanted to start this thing from scratch. Now when I did an su the root user didn't goto /root. it stayed in my directory. When I typed 'groupadd lfs' it couldn't find the command! I had to do a whereis and type it from the directory.

When I tried to do the configure for binutils it said /bin/sh: Bad interpreter

What have I done?!? I ran Suse system check and it's still broke.

What has lfs (or me) done to the system to do this, and how can I fix it? Besides a full reinstall (not the end of the world, but I don't feel like redoing mplayer, quake3 and Nvidia).

My original user still seems to work fine, I ran a ./configure on mplayer with no issues.

Dave.
 
Old 02-01-2005, 05:02 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
The point of creating the user lfs is partly to prevent damage to your host system. A user can't install software system side and so can't do any harm. The user lfs only has write permission in /home/lfs and /mnt/lfs/{sources,tools}
It sounds like you were running things as root. This is unavoidable when you come to chroot into the lfs system. It is not what you should be doing whilst you are compiling on your host system.
 
Old 02-28-2005, 03:14 AM   #5
VinceF
LQ Newbie
 
Registered: Feb 2005
Location: Bordeaux
Distribution: OpenBSD minislack
Posts: 5

Rep: Reputation: 0
I had the same problem on my mdk 10.1 community.
and after installing bison and flex the problem was resolved...

Thanks
 
Old 08-25-2005, 10:43 AM   #6
caffeinebot
Member
 
Registered: Feb 2004
Location: Lexington, MA
Distribution: Gen2
Posts: 39

Rep: Reputation: 15
Yea, thanks alot for the help on this issue, the Book should really warn about needing bison and flex (I have no idea what they are used for ...?)
I didn't realize that I also needed to delete the current make files and redo the configurations.
Wow what work , I hope its worth it though!
 
  


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.12. Binutils-2.15.94.0.2.2 - Pass 2 - erron on "make" satimis Linux From Scratch 4 08-02-2005 05:26 PM
LFS6.1 Section3.13 - Binutils : Error on "make tooldir=/usr" StevePhM Linux From Scratch 4 07-21-2005 12:22 AM
make: *** [configure-libiberty] Error 1 in 5.4. Binutils-2.15.91.0.2 - Pass 1 Flash_G Linux From Scratch 3 06-30-2005 08:51 PM
Chap 5 Binutils make LDFLAGS & make install errors shotokan Linux From Scratch 5 04-10-2005 03:01 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM


All times are GMT -5. The time now is 03:51 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