RESOLVED FIXED 119373
webkit-gtk fails to build with bison-3.0
https://bugs.webkit.org/show_bug.cgi?id=119373
Summary webkit-gtk fails to build with bison-3.0
Jeremy Huddleston Sequoia
Reported 2013-07-31 19:16:20 PDT
Reported at https://trac.macports.org/ticket/39923 When using the recently released bison-3.0, webkit-gtk fails to build: :info:build DerivedSources/ANGLE/glslang_tab.cpp:1785:16: error: no matching function for call to 'yylex' :info:build yychar = yylex (&yylval); :info:build ^~~~~ :info:build DerivedSources/ANGLE/glslang_tab.cpp:279:12: note: candidate function not viable: requires 2 arguments, but 1 was provided :info:build extern int yylex(YYSTYPE* yylval_param, void* yyscanner); :info:build ^ :info:build 1 error generated. :info:build make[1]: *** [DerivedSources/ANGLE/libWebCore_la-glslang_tab.lo] Error 1 :info:build make[1]: *** Waiting for unfinished jobs....
Attachments
Patch (4.04 KB, patch)
2013-08-05 12:47 PDT, Zan Dobersek
no flags
Zan Dobersek
Comment 1 2013-08-05 01:49:01 PDT
Confirmed. There are already generated glslang_tab.cpp and glslang_tab.h files in the ANGLE directory, produced by Bison 2.7[1]. The third-party sources have these two files regenerated with Bison 2.3, for Mac port's purposes. The GTK port regenerates these with the Bison it finds during the configuration. With Bison 3.0, the generated files are causing compilation errors. Could the GTK port switch to building the files that were generated with Bison 2.3, just like the Mac port? Also, only the GTK port generates and compiles the glslang.cpp file, so this part could possibly be removed. [1] https://code.google.com/p/angleproject/source/browse/src/compiler/glslang_tab.cpp
Zan Dobersek
Comment 2 2013-08-05 12:47:09 PDT
Gustavo Noronha (kov)
Comment 3 2013-08-05 15:29:34 PDT
Comment on attachment 208140 [details] Patch LGTM
Zan Dobersek
Comment 4 2013-08-06 05:43:54 PDT
Comment on attachment 208140 [details] Patch Clearing flags on attachment: 208140 Committed r153749: <http://trac.webkit.org/changeset/153749>
Zan Dobersek
Comment 5 2013-08-06 05:44:00 PDT
All reviewed patches have been landed. Closing bug.
Allan Sandfeld Jensen
Comment 6 2013-08-14 09:45:52 PDT
I patched glslang.y for bison 3 in bug #119798 so after landing that you might be able to revert this patch.
Zan Dobersek
Comment 7 2013-08-14 10:43:58 PDT
(In reply to comment #6) > I patched glslang.y for bison 3 in bug #119798 so after landing that you might be able to revert this patch. Do you perhaps plan to upstream the fix into ANGLE itself? And thanks for the notice.
Allan Sandfeld Jensen
Comment 8 2013-08-14 11:00:06 PDT
(In reply to comment #7) > (In reply to comment #6) > > I patched glslang.y for bison 3 in bug #119798 so after landing that you might be able to revert this patch. > > Do you perhaps plan to upstream the fix into ANGLE itself? > And thanks for the notice. I wasn't planning on upstreaming it, but I will take a look now. I was just trying to fix the Qt build in the cleanest possible way.
WebKit Commit Bot
Comment 9 2013-08-16 04:40:34 PDT
Re-opened since this is blocked by bug 119892
Zan Dobersek
Comment 10 2013-08-16 05:29:43 PDT
The revision was merged into the webkit-2.0 branch, but should stay there as the ANGLE third-party source has been updated since the branching, so merging the source generation fix into the branch would be a bit risky. Closing again.
Note You need to log in before you can comment on or make changes to this bug.