LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   binutils-2.15.92.0.2 first pass, error (https://www.linuxquestions.org/questions/linux-from-scratch-13/binutils-2-15-92-0-2-first-pass-error-255027/)

rogerslin 11-15-2004 06:18 AM

binutils-2.15.92.0.2 first pass, error
 
I am building LFS on a Debian install (2.6.8-1-386 kernel). I am now doing the first pass of binutils-2.15.92.0.2.

When I run:

$ make LDFLAGS="-all-static"

I get all the stuff going fine and then:

.............
.............
../../binutils-2.15.92.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/sources/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/lfs/sources/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/lfs/sources/binutils-build/binutils'
make: *** [all-binutils] Error 2


I tried to find an answer but I didn't find this particular binutils error. Any help is much appreciated.

rogerslin 11-15-2004 07:56 AM

anybody help?

ADDY 11-15-2004 08:25 AM

I've almost finished getting LFS up and running and have had a few errors like this. Have a look back through the book and make sure there isn't something you've missed or entered incorrectly. Make sure you follow every instruction to the letter.

Sorry i can't be more specific but nearly all my errors have been a result of me missing a step.

rogerslin 11-15-2004 08:48 PM

Quote:

Originally posted by ADDY
I've almost finished getting LFS up and running and have had a few errors like this. Have a look back through the book and make sure there isn't something you've missed or entered incorrectly. Make sure you follow every instruction to the letter.

Sorry i can't be more specific but nearly all my errors have been a result of me missing a step.

Thanks for advice, I will try from scratch again.

rogerslin 11-16-2004 02:25 AM

I have tried twice more, but it didn't work yet. :(

tvburger 11-30-2004 12:51 PM

binutils
 
Hi,

binutils 2.14 is the latest stable version. Try this one iso 2.15.* .

- Tom

mdh 12-07-2004 08:08 PM

Re: binutils-2.15.92.0.2 first pass, error
 
Quote:

Originally posted by rogerslin
../../binutils-2.15.92.0.2/binutils/ar.c:148: undefined reference to `yyparse'
collect2: ld returned 1 exit status
[/B]
OK, check that the host system you are building on has bison and flex installed.
HJL binutils requires these packages to generate certain files.
With FSF binutils, bison and flex are not required (the generated files are generated by the release team prior to creating the release tarballs)

If bison and flex are not installed on the host, either install the packages using your hosts package management, or build and install them yourself.

Methinks there needs to be a big note in the book stating that bison and flex are required...

Regards
[R]

Cerbere 12-20-2004 05:44 PM

Thanks mdh,

I just started a new LFS 6.0 build with a zipslack host system (migrated to an ext2 partition). I had added just the minimum development tools to compile, so your solution really saved me a lot of time diagnosing and downloading.

Enjoy!
--- Cerbere


All times are GMT -5. The time now is 09:01 PM.