Subject: pkg/31815: bison 2.0 break building sf.net/adtools cross-compiler
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <is@netbsd.org>
List: pkgsrc-bugs
Date: 10/14/2005 20:51:07
>Number:         31815
>Category:       pkg
>Synopsis:       bison 2.0 break building sf.net/adtools 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
>Organization:
seal your e-mail: http://www.gnupg.org/
>Environment:
System: NetBSD marie 3.0_BETA NetBSD 3.0_BETA (GENERIC) #0: Sat Oct 8 19:12:59 UTC 2005 builds@b2.netbsd.org:/home/builds/ab/netbsd-3/shark/200510080000Z-obj/home/builds/ab/netbsd-3/src/sys/arch/shark/compile/GENERIC shark
Architecture: arm
Machine: shark
	pkgsrc: -rpkgsrc-2005Q3 including bison-2.0
>Description:
	When building the sourceforge.net/projects/adtools 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

./gengtype
../../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


>How-To-Repeat:
	cd .../adtools/gcc-build
 	../gcc/configure  --prefix=/usr/local/amiga --target=ppc-amigaos \
		--enable-haifa --enable-languages=c --disable-shared 
	gmake

>Fix:
	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.