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 08-19-2005, 08:22 PM   #1
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 45
Binutils-pass 1 v. 6.1


ok, so I downloaded the lfs-packages-6.1.tar file, and started over after having problems w/ section 6.15, as per the suggestion(http://www.linuxquestions.org/questi...hreadid=352709)
I went through everything, reading the instructions, and I get to the first compile that ever happens in the book, and it fails! Here's the error
Quote:
/mnt/lfs/sources/binutils-build/binutils/arlex.c:1: multiple definition of `main'
arparse.o(.text+0x0):/mnt/lfs/sources/binutils-build/binutils/arparse.c:1: first defined here
ar.o(.text+0x670): In function `main':
../../binutils-2.15.94.0.2.2/binutils/ar.c:342: multiple definition of `main'
arparse.o(.text+0x0):/mnt/lfs/sources/binutils-build/binutils/arparse.c:1: first defined here
/usr/bin/ld: Warning: size of symbol `main' changed from 15 in arparse.o to 1899 in ar.o
bucomm.o(.text+0xa09): In function `make_tempname':
../../binutils-2.15.94.0.2.2/binutils/bucomm.c:425: warning: the use of `mktemp' is dangerous, better use `mkstemp'
ar.o(.text+0x24): In function `mri_emul':
../../binutils-2.15.94.0.2.2/binutils/ar.c:148: undefined reference to `yyparse'
collect2: ld returned 1 exit status
make[3]: *** [ar] Error 1
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make: *** [all-binutils] Error 2
 
Old 08-20-2005, 07:32 PM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
Well, I believe the yyparse error is related to flex (might check to make sure that installed correctly), not sure about the other errors.
 
Old 08-20-2005, 07:40 PM   #3
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Original Poster
Rep: Reputation: 45
ok, does anyone else have any thoughts?
 
Old 08-21-2005, 03:57 PM   #4
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Original Poster
Rep: Reputation: 45
ok, after installling flex, and removing both the binutils-build and the binutils directories, untarring the source again, and configuring/running make again I get this error
Quote:
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l: In function `yylex':
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:42: error: `ADDLIB' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:42: error: (Each undeclared identifier is reported only once
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:42: error: for each function it appears in.)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:43: error: `ADDMOD' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:44: error: `CLEAR' undeclared (firstuse in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:45: error: `CREATE' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:46: error: `DELETE' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:47: error: `DIRECTORY' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:48: error: `END' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:49: error: `EXTRACT' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:50: error: `FULLDIR' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:51: error: `HELP' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:52: error: `LIST' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:53: error: `OPEN' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:54: error: `REPLACE' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:55: error: `VERBOSE' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:56: error: `SAVE' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:77: error: `yylval' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:78: error: `FILENAME' undeclared (first use in this function)
/mnt/lfs/sources/binutils-build/binutils/../../binutils-2.15.94.0.2.2/binutils/arlex.l:83: error: `NEWLINE' undeclared (first use in this function)
lex.yy.c: At top level:
lex.yy.c:1840: warning: no previous prototype for `yyget_lineno'
lex.yy.c:1849: warning: no previous prototype for `yyget_in'
lex.yy.c:1857: warning: no previous prototype for `yyget_out'
lex.yy.c:1865: warning: no previous prototype for `yyget_leng'
lex.yy.c:1874: warning: no previous prototype for `yyget_text'
lex.yy.c:1883: warning: no previous prototype for `yyset_lineno'
lex.yy.c:1895: warning: no previous prototype for `yyset_in'
lex.yy.c:1900: warning: no previous prototype for `yyset_out'
lex.yy.c:1905: warning: no previous prototype for `yyget_debug'
lex.yy.c:1910: warning: no previous prototype for `yyset_debug'
lex.yy.c:1916: warning: no previous prototype for `yylex_destroy'
lex.yy.c:1348: warning: `yyunput' defined but not used
make[3]: *** [arlex.o] Error 1
make[3]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/binutils'
make: *** [all-binutils] Error 2
 
Old 08-23-2005, 08:58 PM   #5
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Original Poster
Rep: Reputation: 45
please?
 
Old 08-23-2005, 09:42 PM   #6
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
hmm, what kernel version is your $HOST system using??
and is your LFS $PATH set up properly??
and what Gcc version is your $HOST using??
 
Old 08-23-2005, 10:01 PM   #7
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Original Poster
Rep: Reputation: 45
it's a 2.6.8 kernel, I believe gcc is 3.3.5. I'm almost positive the path is set up correctly. I assume $HOST is the same has my host system?
 
Old 08-25-2005, 02:09 PM   #8
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Original Poster
Rep: Reputation: 45
is it possible that the package is corrupted? I downloaded it w/ the lfs-packages-6.1.tar.bz2. I would think this would cause it to be done
 
Old 09-01-2005, 09:13 PM   #9
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Original Poster
Rep: Reputation: 45
noone knows?
 
Old 09-02-2005, 10:13 PM   #10
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Original Poster
Rep: Reputation: 45
got it. Turns out, apt-get hadn't satisfied some dependencies(not sure why). I needed the bison package. I installed it, and now it works. Thanks for all the help :-/
 
Old 09-04-2005, 07:27 AM   #11
ArbuZz
LQ Newbie
 
Registered: Sep 2005
Posts: 6

Rep: Reputation: 0
After adding Bison and Flex it worked perfect for me.
 
  


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.15.92.0.2 first pass, error rogerslin Linux From Scratch 7 12-20-2004 05:44 PM
binutils chapter 5 pass 2 qod Linux From Scratch 3 11-03-2003 12:39 PM


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

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