LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-26-2005, 06:45 AM   #1
hell_carnage
LQ Newbie
 
Registered: Aug 2004
Distribution: Crux 2.1
Posts: 23

Rep: Reputation: 15
Binutils Error


Well, I've never been successful and building LFS. I ALWAYS get errors when building binutils in chapter 6. Here's the error output from typing 'make tooldir=/usr install'.


gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -o .libs/ar arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.so -L/sources/binutils-build/libiberty/pic -liberty ../libiberty/libiberty.a -ldl
arlex.o: In function `main':
/sources/binutils-build/binutils/arlex.c:1: multiple definition of `main'
arparse.o:/sources/binutils-build/binutils/arparse.c:1: first defined here
ar.o: In function `main':
../../binutils-2.16.90.0.3/binutils/ar.c:337: multiple definition of `main'
arparse.o:/sources/binutils-build/binutils/arparse.c:1: first defined here
/tools/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `main' changed from 16 in arparse.o to 3491 in ar.o
bucomm.o: In function `make_tempname':
../../binutils-2.16.90.0.3/binutils/bucomm.c:425: warning: the use of `mktemp' is dangerous, better use `mkstemp'
ar.o: In function `mri_emul':
ar.c.text+0x22): undefined reference to `yyparse'
collect2: ld returned 1 exit status
make[3]: *** [ar] Error 1
make[3]: Leaving directory `/sources/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/sources/binutils-build/binutils'
make: *** [all-binutils] Error 2
root:/sources/binutils-build#



I'm open to suggestions
 
Old 06-26-2005, 08:33 AM   #2
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Re: Binutils Error

Quote:
Originally posted by hell_carnage
Well, I've never been successful and building LFS. I ALWAYS get errors when building binutils in chapter 6. Here's the error output from typing 'make tooldir=/usr install'.


gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -o .libs/ar arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.so -L/sources/binutils-build/libiberty/pic -liberty ../libiberty/libiberty.a -ldl
arlex.o: In function `main':
/sources/binutils-build/binutils/arlex.c:1: multiple definition of `main'
arparse.o:/sources/binutils-build/binutils/arparse.c:1: first defined here
ar.o: In function `main':
../../binutils-2.16.90.0.3/binutils/ar.c:337: multiple definition of `main'
arparse.o:/sources/binutils-build/binutils/arparse.c:1: first defined here
/tools/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `main' changed from 16 in arparse.o to 3491 in ar.o
bucomm.o: In function `make_tempname':
../../binutils-2.16.90.0.3/binutils/bucomm.c:425: warning: the use of `mktemp' is dangerous, better use `mkstemp'
ar.o: In function `mri_emul':
ar.c.text+0x22): undefined reference to `yyparse'
collect2: ld returned 1 exit status
make[3]: *** [ar] Error 1
make[3]: Leaving directory `/sources/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/sources/binutils-build/binutils'
make: *** [all-binutils] Error 2
root:/sources/binutils-build#



I'm open to suggestions
Use binutils-2.16 || install bison and flex in chapter 5
 
  


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
#Error: 5.4. Binutils-2.15.94.0.2.2 - Pass 1 ukyo Linux From Scratch 2 06-02-2005 04:37 AM
Error in binutils Macky Linux From Scratch 1 04-29-2005 05:39 PM
Binutils Error! chakkaradeepcc Linux From Scratch 2 04-28-2005 04:53 AM
binutils-2.15.92.0.2 first pass, error rogerslin Linux From Scratch 7 12-20-2004 05:44 PM
binutils error lordtweety Linux From Scratch 5 12-01-2004 08:37 AM

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

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