Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519704 - sys-devel/gcc-{3.3.6-r1,3.4.6} with sys-devel/bison-3.0.2 - c-parse.y:594:16: error: 'YYLEX' undeclared (first use in this function)
Summary: sys-devel/gcc-{3.3.6-r1,3.4.6} with sys-devel/bison-3.0.2 - c-parse.y:594:16:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: bison-3-breakage
  Show dependency tree
 
Reported: 2014-08-12 11:17 UTC by Andrew Church
Modified: 2015-04-06 18:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gcc-3.4.6-build-logs.tar.bz2 (gcc-build-logs.tar.bz2,29.46 KB, application/x-bzip2)
2014-08-12 11:17 UTC, Andrew Church
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Church 2014-08-12 11:17:21 UTC
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.
Comment 1 SpanKY gentoo-dev 2014-10-17 19:09:47 UTC
hmm, it's supposed to be fixed already via bug 348893
Comment 2 Andrew Church 2014-10-18 04:48:30 UTC
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.
Comment 3 jannis 2015-02-19 19:15:01 UTC
See also https://bugs.gentoo.org/show_bug.cgi?id=509572
Comment 5 SpanKY gentoo-dev 2015-04-06 18:16:24 UTC
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