LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS 6.0 Bindutils section 6.13 error (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-6-0-bindutils-section-6-13-error-282057/)

xushi 01-25-2005 11:09 AM

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.

xushi 01-25-2005 11:58 AM

Solved:

Turns out i forgot to install Bison... (it was a late night). Thanks to zigman and roel on #LFS-support.

Thymus 05-27-2005 10:36 AM

Hello.

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

What to do ?

Thanks

( Soory, I don't speak wel english )

freegianghu 05-29-2005 11:47 AM

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

Thymus 05-30-2005 12:31 PM

I have also flex :)

But, you want I try to install flex and bison for lfs in /tools/bin to use it, is it ?

freegianghu 05-30-2005 08:24 PM

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?

Thymus 05-31-2005 11:31 AM

no :o

That's right, thx :)


All times are GMT -5. The time now is 02:19 AM.