Hello --
I am working on creating an LFS 6.0 system using Mandrake Official 10.1.
In " Binutils-2.15.91.0.2 - Pass 1", I encountered an error while executing 'make LDFLAGS="-all-static" ':
Code:
../../binutils-2.15.91.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/tools/binutils-build/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/lfs/tools/binutils-build/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/lfs/tools/binutils-build/binutils'
make: *** [all-binutils] Error 2
Looking through the posts in this forum, I found that the reason for this error was because bison and/or flex were not installed on my host system.
I downloaded the bison and flex tarballs from the GNU website, compiled and installed them. I believe bison complained that it needed "m4", so I downloaded, compiled and installed that too.
I cleaned out the tools directory, wiped out my sources directory and started over. However, I received
the same error when I got back to 'make LDFLAGS="-all-static" '!
As user lfs, I checked to see what "which bison" returns:
Code:
which: no bison in (/tools/bin:/bin:/usr/bin).
Same with "m4" and "flex".
I have checked and these files have indeed been installed on my system in /usr/local/bin. I can execute them when logged in as root or my usual account, but not as lfs.
What to do? I am stuck. Thank you.