ch6-gcc-bison: command not found

kayo kayo at
Sat Mar 20 07:50:23 PST 2004


I am on Chapter 6 of the LFS 5.0 installation.
My Host System runs Mandrake 6.1.

I recently got an error while making gcc-3.3.1 (Ch 6)

root:/sources/gcc-build# make
make[1]: Entering directory `/sources/gcc-build/libiberty'
 ... (Does a good bit of compiling here.)
cd ../../gcc-3.3.1/gcc && \
if bison  -o c-p$$.c c-parse.y; then \
  test -f c-p$$.output && mv -f c-p$$.output c-parse.output ; \
  mv -f c-p$$.c c-parse.c ; \
else \
  rm -f c-p$$.* ; \
  false ; \
/bin/sh: line 1: bison: command not found
make[1]: *** [../../gcc-3.3.1/gcc/c-parse.c] Error 1
make[1]: Leaving directory `/sources/gcc-build/gcc'
make: *** [all-gcc] Error 2

Incase it helps, here is a small snippet from the configure output:
checking for recent Pod::Man... yes
checking for flex... /bin/sh ../../gcc-3.3.1/gcc/../missing flex
checking for bison... /bin/sh ../../gcc-3.3.1/gcc/../missing bison
checking for collect2 libraries... none required

Since chapter 5 does not build the 'bison' program, the chroot
environment nauturally would not have it.

Hence, why does the make process require bison.
Also, why does the make process try to use bison when it knows that
it isn't availible (Since it might know this after running configure)

Please can you help me.

Thanks :)



More information about the lfs-support mailing list