gcc compile error

Ken Moffat ken at kenmoffat.uklinux.net
Tue Jun 22 14:41:32 PDT 2004


On Sat, 26 Jun 2004, Ralf Stromeyer wrote:

> hi yall,
>
> I am working on LFS 5.1 and finished chapter 5 successfully (I think I
> did). Trouble starts with chapter 6 GCC-3.3.3.
> make stops with the following error:
>
> /bin/sh ../../gcc-3.3.3/gcc/move-if-change tmp-gtyp.h gtyp-gen.h
> gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wtraditional -4pedantic -Wno-long-long
> -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc-3.3.3/gcc
> -I../../gcc-3.3.3/gcc/. -I../../gcc-3.3.3/gcc/config
> -I../../gcc-3.3.3/gcc/../include \
>   ../../gcc-3.3.3/gcc/gengtype.c -o gengtype.o
> (cd ../../gcc-3.3.3/gcc && \
>  bison  -d -o gengtype-yacc.c gengtype-yacc.y || \
>  ( rm -f ../../gcc-3.3.3/gcc/gengtype-yacc.c && false ) )
> /bin/sh: line 1: bison: command not found
> make[1]: *** [../../gcc-3.3.3/gcc/gengtype-yacc.c] Error 1
> make[1]: Leaving directory `/source/gcc-build/gcc'
> make: *** [all-gcc] Error 2
>
> The output of configure says:
> ...
> checking for bison... /bin/sh ../../gcc-3.3.3/gcc/../missing bison
> ...
>
> It's not suprising, that bison is missing but why do I need it and what
> am I doing wrong?

 That line from configure is correct if you are exactly following the
book.  I don't know why you would need bison for gcc, the normal package
needing bison and other things is the HJL variant of binutils.  I've
just looked at my build log for 5.1 and I _don't_ have the '(cd ../../'
stuff after gengtype.o.

 You'll probably have to give us some more clues.  At the moment, the
only thing I can see is that your date is wrong, which is bound to
upset people with threading mail/news clients ;-)

Ken
-- 
 das eine Mal als Tragödie, das andere Mal als Farce




More information about the lfs-support mailing list