Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 519704

Summary: 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)
Product: Gentoo Linux Reporter: Andrew Church <achurch+gentoo>
Component: [OLD] DevelopmentAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=348893
https://bugs.gentoo.org/show_bug.cgi?id=509572
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 479254    
Attachments: gcc-3.4.6-build-logs.tar.bz2

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