LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-25-2005, 11:09 AM   #1
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
LFS 6.0 Bindutils section 6.13 error


Hi all,
I've been having a very successful compilation through the LFS book, with two errors that i managed to sort out. But this one i just can't find any information on, let alone manage to fix.

I'm on chapter 6.13 of the LFS book, trying to compile Bindutils 2.15.91.0.2 , but whenever i reach and type
make tooldir=/usr
i get a very nasty looking error
Code:
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l: Infunction `yylex':
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:44:error: `ADDLIB' undeclared (first use in this function)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:44:error: (Each undeclared identifier is reported only once
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:44:error: for each function it appears in.)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:45:error: `ADDMOD' undeclared (first use in this function)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:46:error: `CLEAR' undeclared (first use in this function)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:47:error: `CREATE' undeclared (first use in this function)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:48:error: `DELETE' undeclared (first use in this function)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:49:error: `DIRECTORY' undeclared (first use in this function)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:50:error: `END' undeclared (first use in this function)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:51:error: `EXTRACT' undeclared (first use in this function)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:52:error: `FULLDIR' undeclared (first use in this function)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:53:error: `HELP' undeclared (first use in this function)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:54:error: `LIST' undeclared (first use in this function)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:55:error: `OPEN' undeclared (first use in this function)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:56:error: `REPLACE' undeclared (first use in this function)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:57:error: `VERBOSE' undeclared (first use in this function)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:58:error: `SAVE' undeclared (first use in this function)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:79:error: `yylval' undeclared (first use in this function)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:80:error: `FILENAME' undeclared (first use in this function)
/sources/binutils-build/binutils/../../binutils-2.15.91.0.2/binutils/arlex.l:85:error: `NEWLINE' undeclared (first use in this function)
lex.yy.c: At top level:
lex.yy.c:1842: warning: no previous prototype for 'yyget_lineno'
lex.yy.c:1851: warning: no previous prototype for 'yyget_in'
lex.yy.c:1859: warning: no previous prototype for 'yyget_out'
lex.yy.c:1867: warning: no previous prototype for 'yyget_leng'
lex.yy.c:1876: warning: no previous prototype for 'yyget_text'
lex.yy.c:1885: warning: no previous prototype for 'yyset_lineno'
lex.yy.c:1897: warning: no previous prototype for 'yyset_in'
lex.yy.c:1902: warning: no previous prototype for 'yyset_out'
lex.yy.c:1907: warning: no previous prototype for 'yyget_debug'
lex.yy.c:1912: warning: no previous prototype for 'yyset_debug'
lex.yy.c:1918: warning: no previous prototype for 'yylex_destroy'
lex.yy.c:1350: warning: 'yyunput' defined but not used
make[3]: *** [arlex.o] 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 can't seem to find the problem, all the other tries, as well as GCC and Glibc, including the 'make check' were successful, except for this point.
The
Code:
../binutils-2.15.91.0.2/configure --prefix=/usr \
    --enable-shared
was fine, here's the output of it
Code:
root:/sources/binutils-build# ../binutils-2.15.91.0.2/configure --prefix=/usr \
> --enable-shared
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /tools/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gnatbind... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
checking for bison... no
checking for bison... no
checking for byacc... no
checking for yacc... no
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for i686-pc-linux-gnu-ar... no
checking for ar... ar
checking for i686-pc-linux-gnu-as... no
checking for as... as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... dlltool
checking for i686-pc-linux-gnu-ld... /tools/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../../i686-pc-linux-gnu/bin/ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... windres
checking for i686-pc-linux-gnu-objcopy... no
checking for objcopy... objcopy
checking for i686-pc-linux-gnu-objdump... no
checking for objdump... objdump
checking for i686-pc-linux-gnu-ar... no
checking for ar... ar
checking for i686-pc-linux-gnu-as... no
checking for as... as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... dlltool
checking for i686-pc-linux-gnu-ld... no
checking for ld... ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... windres
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
root:/sources/binutils-build#
I tried google, LFS FAQ, and LQ, but couldnt really find anything that can help me. I hope the LFS community here can

Thanks, and tell me if i missed any info you need.
 
Old 01-25-2005, 11:58 AM   #2
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Solved:

Turns out i forgot to install Bison... (it was a late night). Thanks to zigman and roel on #LFS-support.
 
Old 05-27-2005, 10:36 AM   #3
Thymus
LQ Newbie
 
Registered: May 2005
Posts: 3

Rep: Reputation: 0
Hello.

I have exactly the same problem, but I have bison!

What to do ?

Thanks

( Soory, I don't speak wel english )
 
Old 05-29-2005, 11:47 AM   #4
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Quote:
Originally posted by Thymus
Hello.

I have exactly the same problem, but I have bison!

What to do ?

Thanks

( Soory, I don't speak wel english )
Install flex && bison in chapter 5 can resolve your problem, I think. (If you use binutils-2.16.tar.bz2, this error will be disappeared)

Good luck,
Giang Hu
 
Old 05-30-2005, 12:31 PM   #5
Thymus
LQ Newbie
 
Registered: May 2005
Posts: 3

Rep: Reputation: 0
I have also flex

But, you want I try to install flex and bison for lfs in /tools/bin to use it, is it ?
 
Old 05-30-2005, 08:24 PM   #6
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Quote:
Originally posted by Thymus
I have also flex

But, you want I try to install flex and bison for lfs in /tools/bin to use it, is it ?
Have you clean source code after installed bison?
 
Old 05-31-2005, 11:31 AM   #7
Thymus
LQ Newbie
 
Registered: May 2005
Posts: 3

Rep: Reputation: 0
no

That's right, thx
 
  


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
Section 6.15 Coreutils compile error microsoft/linux Linux From Scratch 7 09-04-2005 07:48 PM
Section 6.14 Gcc-3.4.1 error microsoft/linux Linux From Scratch 10 08-11-2005 09:52 PM
depmod: error reading ELF section data Commish66 Mandriva 1 02-12-2004 12:56 PM
NVIDIA...Parse error on line 13 of section Mandrake 9.0 serok Linux - Newbie 2 11-08-2003 10:54 PM
LFS 4.1 book install hung at section 6.14: Glibc-2.3.1 SparceMatrix Linux From Scratch 4 05-30-2003 04:56 PM


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