[Webkit-unassigned] [Bug 22205] webkit-gtk won't compile on gentoo with bison 2.4 !

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 19 05:13:49 PST 2008


https://bugs.webkit.org/show_bug.cgi?id=22205





------- Comment #6 from gsherwood at sourcemage.org  2008-11-19 05:13 PDT -------
Here is the response I got on the bison mailing list:

> > I have reported a bug with the webkit developers, but thought maybe
> > you would have a fix, so I can continue building webkit nightly
> > builds and have bison 2.4 installed.  Webkit build fine with bison
> > 2.3.
> > 
> > It fails very early in the build with this error:  

> > WebCore/css/CSSGrammar.y:348.11-20: symbol maybe_sgml redefined make:  

> 334 maybe_sgml:
> 335     /* empty */
> 336   | maybe_sgml SGML_CD
> 337   | maybe_sgml WHITESPACE
> 338   ;  

> 346 closing_brace:
> 347     '}'
> 348   | %prec maybe_sgml TOKEN_EOF
> 349   ;  

The argument of %prec must be a token.  maybe_sgml is a nonterminal.  
Bison 2.3 ignored this error.  Bison 2.3b and later complain about it.

I can't tell for sure what the webkit developers intended here, but 
removing maybe_sgml from line 348 should make Bison stop complaining.

-------------------------------
Removing maybe-sgml from line 348 results in:

/usr/bin/bison -d -p cssyy WebCore/css/CSSGrammar.y
-o ./DerivedSources/CSSGrammar.cpp 
WebCore/css/CSSGrammar.y: conflicts:105 shift/reduce, 6 reduce/reduce 
WebCore/css/CSSGrammar.y: expected 48 shift/reduce conflicts
WebCore/css/CSSGrammar.y: expected 0 reduce/reduce conflicts 
make: *** [DerivedSources/CSSGrammar.cpp] Error 1


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list