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
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.
Looks like code directive was added in bison-2: https://sourceforge.net/apps/mediawiki/swobjects/index.php?title=Compilation#bison_code_directive
+ 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 +