This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Configure patch] Issue error if bison not found
On Thu, Nov 28, 2002 at 01:01:46AM -0500, Hans-Peter Nilsson wrote:
> > With my patch, configure will bomb and issue a useful error message
> > saying that bison is missing.
>
> Not very useful, since it should work without bison. With
> released source that it
Here is where you are absolutely wrong. It "should work"
but it *does not work* without bison.
I just downloaded gcc-3.2.1.tar.gz, and proceeded to do a bootstrap and it failed:
=============================================================================
make CC="gcc" libdir=/home/rodrigc/release/gcctest/lib LANGUAGES="c" CFLAGS="-g
" MAKEINFO="makeinfo" MAKEINFOFLAGS=""
(cd intl && make all)
: -y -d --name-prefix=__gettext --output plural.c ../../../gcc-3.2.1/gcc/intl/pl
ural.y
rm -f plural.h
gcc -c -DIN_GCC -DLOCALEDIR=\"/home/rodrigc/release/gcctest/share/locale\" -DLOC
ALE_ALIAS_PATH=\"/home/rodrigc/release/gcctest/share/locale\" -DLIBDIR=\"/home/
rodrigc/release/gcctest/lib\" -DHAVE_CONFIG_H -I.. -I. -I../../../gcc-3.2.1/gcc/
intl -I../../../gcc-3.2.1/gcc -I../../../gcc-3.2.1/gcc/config -I../../../gcc-3.
2.1/gcc/../include -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-pr
ototypes -Wtraditional -pedantic -Wno-long-long plural.c -o plural.o
gcc: plural.c: No such file or directory
gcc: No input files specified
*** Error code 1
===============================================================================
build/gcc/intl/Makefile expanded the YACC variable to:
YACC = : -y -d
So, the bootstrap *does not* work without bison.
I still think my configure patch should go in.
If someone wants to fix all the *.in files so that they work without
bison, then my patch will be unnecessary, but the way things
are now, it looks like that is not the case.
>; CVS without generated files is another
> thing; the remedy for that is to install bison.
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@attbi.com