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

Bug 500454

Summary: net-libs/webkit-gtk-2.2.4 with sys-devel/bison-1.875d - ?
Product: Gentoo Linux Reporter: Dennis Nezic <dennisn>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dennis Nezic 2014-02-06 01:31:40 UTC
After hours of compiling, webkit-gtk-2.2.4 fails at:

/usr/bin/bison --no-lines --defines="DerivedSources/ANGLE/glslang_tab.h" --skeleton=yacc.c -- output="DerivedSources/ANGLE/glslang_tab.cpp" Source/ThirdParty/ANGLE/src/compiler/glslang.y
Source/ThirdParty/ANGLE/src/compiler/glslang.y:52.1-5: invalid directive: `%code'
Source/ThirdParty/ANGLE/src/compiler/glslang.y:52.7-14: syntax error, unexpected "identifier"
make[1]: *** [DerivedSources/ANGLE/glslang_tab.cpp] Error 1

Upgrading my bison from 1.875d to 2.7.1 fixed this. I'm not exactly sure what the minimum bison version should be.

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-02-06 02:26:13 UTC
1) Please post your `emerge --info net-libs/webkit-gtk' output in a comment
2) Please attach the entire build log to this bug report.
Comment 2 Pacho Ramos gentoo-dev 2014-02-06 07:10:31 UTC
Looks like code directive was added in bison-2:
https://sourceforge.net/apps/mediawiki/swobjects/index.php?title=Compilation#bison_code_directive
Comment 3 Pacho Ramos gentoo-dev 2014-02-06 19:14:46 UTC
+  06 Feb 2014; Pacho Ramos <pacho@gentoo.org> -webkit-gtk-2.2.2.ebuild,
+  webkit-gtk-2.2.4-r200.ebuild, webkit-gtk-2.2.4.ebuild:
+  Newer bison is needed due 'code' usage (#500454 by Dennis New), drop old
+