Subject: pkg/31815: bison 2.0 break building cross-compiler
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 10/14/2005 20:51:07
>Number:         31815
>Category:       pkg
>Synopsis:       bison 2.0 break building cross-compiler
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 14 20:51:07 +0000 2005
>Originator:     Ignatios Souvatzis
>Release:        NetBSD 3.0_BETA
seal your e-mail:
System: NetBSD marie 3.0_BETA NetBSD 3.0_BETA (GENERIC) #0: Sat Oct 8 19:12:59 UTC 2005 shark
Architecture: arm
Machine: shark
	pkgsrc: -rpkgsrc-2005Q3 including bison-2.0
	When building the cross-compiler
	hosted on NetBSD/shark (with taget amogaos/ppc), after running the
	configure line (see below) and starting gmake, the last output is:

bison  -d -o gengtype-yacc.c ../../gcc/gcc/gengtype-yacc.y

gcc -c   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long  -Wno-error  -DHAVE_CONFIG_H -DGENE
RATOR_FILE    -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include -I../intl \
 gengtype-yacc.c -o gengtype-yacc.o
gcc   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H -DGENERATOR_FILE  -
o gengtype \
 gengtype.o gengtype-lex.o gengtype-yacc.o ../libiberty/libiberty.a

../../gcc/gcc/input.h:27: syntax error, unexpected ENT_YACCUNION, expecting GTY_TOKEN
gmake[1]: *** [s-gtype] Error 1
gmake[1]: Leaving directory `/home/sources/amiga/adtools/gcc-build/gcc'
gmake: *** [all-gcc] Error 2

	cd .../adtools/gcc-build
 	../gcc/configure  --prefix=/usr/local/amiga --target=ppc-amigaos \
		--enable-haifa --enable-languages=c --disable-shared 

	It was discovered that the compilation would complete with
	--with-yacc=/usr/bin/yacc added to the configure call 
	as a workaround.

	Another fix is to install bison-2.1 from pkgsrc-current.

	I conclude that bison-2.0 is broken on ARM.