Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#60978 closed defect (fixed)

qt5-qtwebengine @ 5.14.2_1 build fails with 'xpath_grammar.hh' file not found

Reported by: hapaguy (Brian Kurt Fujikawa) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc: Schamschula (Marius Schamschula), dershow, jjstickel (Jonathan Stickel)
Port: qt5-qtwebengine

Description

I am running macOS 10.15.6, using Xcode 11.6, and MacPorts 2.6.3.

% sudo port -f deactivate qt5-qtwebengine
% sudo port -sv upgrade qt5-qtwebengine

fails with:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt5/qt5-qtwebengine/work/qtwebengine-everywhere-src-5.14.2/src/core/release/gen/third_party/blink/renderer/core/xpath_grammar.cc:124:10: fatal error: 'xpath_grammar.hh' file not found
:error:build Failed to build qt5-qtwebengine: command execution failed

I confirm that xpath_grammar.hh is missing from:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt5/qt5-qtwebengine/work/qtwebengine-everywhere-src-5.14.2/src/core/release/gen/third_party/blink/renderer/core/

But, there is a xpath_grammar.h.

I have attached the main.log

Attachments (1)

qt5-qtwebengine main.log.zip (635.7 KB) - added by hapaguy (Brian Kurt Fujikawa) 4 years ago.
zip'd main.log (original 27.5 MB > 10.0 MB)

Download all attachments as: .zip

Change History (10)

Changed 4 years ago by hapaguy (Brian Kurt Fujikawa)

zip'd main.log (original 27.5 MB > 10.0 MB)

comment:1 Changed 4 years ago by Schamschula (Marius Schamschula)

Cc: MarcusCalhoun-Lopez removed
Owner: set to MarcusCalhoun-Lopez
Port: qt5-qtwebengine added
Status: newassigned

comment:2 Changed 4 years ago by Schamschula (Marius Schamschula)

Cc: Schamschula added

comment:3 Changed 4 years ago by Schamschula (Marius Schamschula)

This is an issue with bison 3.7. See: https://bugs.gentoo.org/734356

There is a patch: https://734356.bugs.gentoo.org/attachment.cgi?id=652054

which worked for me.

comment:4 Changed 4 years ago by hapaguy (Brian Kurt Fujikawa)

Thanks, maybe this bison 3.7 issue is causing a similar problem with webkit-gtk3 #60977

Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 4 years ago by Schamschula (Marius Schamschula)

That's possible. If so, it's the same error (and likely the same fix) as for qt5-webkit #60975

Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 in reply to:  3 Changed 4 years ago by karolisr (Karolis Ramanauskas)

I can confirm that this simple patch worked for me as well.

Replying to Schamschula:

This is an issue with bison 3.7. See: https://bugs.gentoo.org/734356

There is a patch: https://734356.bugs.gentoo.org/attachment.cgi?id=652054

which worked for me.

comment:7 Changed 4 years ago by dershow

Cc: dershow added

comment:8 Changed 4 years ago by jjstickel (Jonathan Stickel)

Cc: jjstickel added

comment:9 Changed 4 years ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed

In d748052e3c6c0f7e1230514d581648c77d251fc2/macports-ports (master):

qt5-qtwebengine: fix bison 3.7.x issue

Closes: #60978

Note: See TracTickets for help on using tickets.