Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428012 - =net-libs/webkit-gtk-1.8.1-r301 - Source/WebCore/xml/XPathParser.cpp:478:39: error: too many arguments to function «int WebCore::XPath::xpathyyparse()» with sys-devel/bison-2.6
Summary: =net-libs/webkit-gtk-1.8.1-r301 - Source/WebCore/xml/XPathParser.cpp:478:39: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugs.webkit.org/show_bug.cgi?...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-25 10:37 UTC by Sergey Isachenko
Modified: 2012-08-09 08:12 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info (emerge_info.log,5.07 KB, text/plain)
2012-07-25 10:40 UTC, Sergey Isachenko
Details
build log (-j1) (build.log,240.29 KB, text/plain)
2012-07-25 10:42 UTC, Sergey Isachenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Isachenko 2012-07-25 10:37:22 UTC
CXX      Source/WebCore/xml/libWebCore_la-XPathFunctions.lo
  CXX      Source/WebCore/xml/libWebCore_la-XPathNodeSet.lo
  CXX      Source/WebCore/xml/libWebCore_la-XPathNSResolver.lo
  CXX      Source/WebCore/xml/libWebCore_la-XPathParser.lo
Source/WebCore/xml/XPathParser.cpp: В функции-члене «WebCore::XPath::Expression* WebCore::XPath::Parser::parseStatement(const WTF::String&, WTF::PassRefPtr<WebCore::XPathNSResolver>, WebCore::ExceptionCode&)»:
Source/WebCore/xml/XPathParser.cpp:478:39: ошибка: too many arguments to function «int WebCore::XPath::xpathyyparse()»
In file included from Source/WebCore/xml/XPathParser.cpp:49:0:
./DerivedSources/WebCore/XPathGrammar.hpp:108:5: замечание: declared here
make: *** [Source/WebCore/xml/libWebCore_la-XPathParser.lo] Ошибка 1
 * ERROR: net-libs/webkit-gtk-1.8.1-r301 failed (compile phase):
 *   emake failed
 * 


Reproducible: Always
Comment 1 Sergey Isachenko 2012-07-25 10:40:40 UTC
Created attachment 319204 [details]
emerge info
Comment 2 Sergey Isachenko 2012-07-25 10:42:02 UTC
Created attachment 319206 [details]
build log (-j1)
Comment 3 Rafał Mużyło 2012-07-25 11:31:47 UTC
Same problem as in bug 427438.
Comment 4 Guy 2012-07-28 16:03:45 UTC
No version of webkit-gtk currently in portage will compile with bison-2.6.

As a temporary work around, I'm trying the following:

emerge -1 =sys-devel/bison-2.5.1 && emerge webkit-gtk && emerge bison

The problem appears to be related to chromium's recent requirement for bison-2.6 {and subsequent bump thereof}. On my systems, portage currently wants to downgrade bison but won't because of the build dependency in my existing builds of chromium.

I believe the choices right now until this is fixed is either try the same work around I'm trying or downgrade to the last version of chromium which works with an earlier version of bison and then downgrade bison as well.

I don't yet know if this possible work around will succeed. I'm trying it now. As this is my 5th attempt at building webkit-gtk .. on an Atom based netbook, it'll be awhile before I can report results.
Comment 5 Guy 2012-07-28 20:19:45 UTC
(In reply to comment #4)
> No version of webkit-gtk currently in portage will compile with bison-2.6.
> 
> As a temporary work around, I'm trying the following:
> 
> emerge -1 =sys-devel/bison-2.5.1 && emerge webkit-gtk && emerge bison
> 

> 
> I don't yet know if this possible work around will succeed. I'm trying it
> now. As this is my 5th attempt at building webkit-gtk .. on an Atom based
> netbook, it'll be awhile before I can report results.

I'm sorry to say I cannot report a positive result. Bison-2.5.1 emerged fine. The subsequent attempt to emerge webkit-gtk apparently ran into some kind of race condition. The drive light was on solid and I ended up killing the machine through a hard power off after the load average reached 15.0.

You read that right. An Atom {gen 2} with no other substantive activity {other than normal background processes in a razor-qt environment with no other processes {i.e. no browsers, no other terminal windows, no external sessions - nada} reached an ave load value of 15.0.

The system was totally unresponsive to user input. Even ssh timed out before I could enter a user id.

Oh well. Guess I'll have to live without the latest calibre on this machine for now.
Comment 6 Rémi Cardona (RETIRED) gentoo-dev 2012-07-30 19:57:55 UTC
Confirming on my relatively standard amd64 box.
Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2012-07-31 05:14:02 UTC
(In reply to comment #6)
> Confirming on my relatively standard amd64 box.

Also confirming that the build works as intended after downgrading bison to 2.5.1.
Comment 8 Guy 2012-07-31 22:04:40 UTC
This just closed bug (with patch) from upstream seems relevant:

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

"Build fix with newer bison 2.6."


Apparently this is from bison 2.6: "The release notes for bison 2.6 mention that the YYPARSE_PARAM macro has be deprecated."
Comment 9 Mike Gilbert gentoo-dev 2012-08-01 00:49:14 UTC
Yeah, that webkit bug has the fix. I've just committed the patch for chromium; it should be work for webkit-gtk as well.

http://trac.webkit.org/changeset/124099
Comment 10 Markos Chandras (RETIRED) gentoo-dev 2012-08-05 19:42:48 UTC
(In reply to comment #9)
> Yeah, that webkit bug has the fix. I've just committed the patch for
> chromium; it should be work for webkit-gtk as well.
> 
> http://trac.webkit.org/changeset/124099

Could someone at least fix the bison (<2.6) deps in webkit-gtk ebuild so we can workaround this problem until a proper patch is applied in the ebuild?
Comment 11 Markos Chandras (RETIRED) gentoo-dev 2012-08-08 21:16:00 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > Yeah, that webkit bug has the fix. I've just committed the patch for
> > chromium; it should be work for webkit-gtk as well.
> > 
> > http://trac.webkit.org/changeset/124099
> 
> Could someone at least fix the bison (<2.6) deps in webkit-gtk ebuild so we
> can workaround this problem until a proper patch is applied in the ebuild?

I added <sys-devel/bison-2.6 as DEPEND in both ebuilds (1.8.1-r201 and 1.8.1-r301). Feel free to revert this change once you commit the upstream fix. I leave this bug open in order to avoid duplicates
Comment 12 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-08-09 08:12:25 UTC
Fixed in 1.8.2-r{200,300}. Guy, thanks for figuring out the cause of the problem and finding the patch.

>*webkit-gtk-1.8.2-r300 (09 Aug 2012)
>*webkit-gtk-1.8.2-r200 (09 Aug 2012)
>
>  09 Aug 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
>  -webkit-gtk-1.8.0-r200.ebuild, -webkit-gtk-1.8.0-r300.ebuild,
>  +webkit-gtk-1.8.2-r200.ebuild, +webkit-gtk-1.8.2-r300.ebuild,
>  +files/webkit-gtk-1.8.2-bison-2.6.patch:
>  Version bump with security and crash fixes. Fix building with bison-2.6 (bug
>  #428012, thanks to Zabuldon, Guy, Mike Gilbert et al.). Drop old.