Created attachment 382732 [details] gcc-3.4.6-build-logs.tar.bz2 GCC versions prior to 4.1.2 fail to build with bison-3.0.2: /tmp/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6/gcc/c-pretty-print.c: In function 'pp_c_primary_expression':c-parse.y: In function 'yyparse': c-parse.y:594:16: error: 'YYLEX' undeclared (first use in this function) c-parse.y:594:16: note: each undeclared identifier is reported only once for each function it appears in gcc-3.4.6-r2 and gcc-3.3.6-r1 fail with this error; gcc-4.0.4 and gcc-2.95.3-r10 aren't keyworded for amd64 so I can't build them in the first place.
hmm, it's supposed to be fixed already via bug 348893
The relevant patch in gcc-3.4.6-patches-1.7.tar.bz2 (09_all_gcc-3.4.6-c-parse-bison.patch) claims to be a fix for "bison 2.4.1 pedantry" so maybe it doesn't address this issue? Building with bison-2.7.1 works fine.
See also https://bugs.gentoo.org/show_bug.cgi?id=509572
queued in the patchsets http://sources.gentoo.org/gentoo/src/patchsets/gcc/3.4.6/gentoo/10_all_gcc-3.4.6-c-parse-bison-3.patch?rev=1.1 http://sources.gentoo.org/gentoo/src/patchsets/gcc/3.3.6/gentoo/10_all_gcc-3.4.6-c-parse-bison-3.patch?rev=1.1
should be all set now in the tree; thanks for the report! Commit message: Fix building with newer bison-3 http://sources.gentoo.org/sys-devel/gcc/gcc-3.3.6-r1.ebuild?r1=1.27&r2=1.28 http://sources.gentoo.org/sys-devel/gcc/gcc-3.4.6-r2.ebuild?r1=1.39&r2=1.40