Summary: | dev-qt/qtwayland-5.13.2-r1 with >=media-libs/mesa-19.3.0_rc4: ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.h:92:5: error: ‘PFNEGLBINDWAYLANDDISPLAYWL’ does not name a type | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Chris Smith <chris> |
Component: | Current packages | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | 1i5t5.duncan, alex, alexander, amedeo, b.buschinski, belliash, candrews, conikost, dennis.lissov, dominik, drmccoy, dschridde+gentoobugs, eugene.shalygin, gentoo, gentoo, gentoo, grozin, harrisl, ivan, klaus818, krinpaus, KyleJ61782, mark+gentoobugs, mgorny, mmk, neil, phantom4, phobosk, polynomial-c, samuelbernardo.mail, silvio.gerli, skobkin-ru, softashell, vmatare+gbug, voron1, xaviermiller, zoltan |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugreports.qt.io/browse/QTBUG-79709 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
dev-qt/qtwayland-5.13.2-r1 build log
build.log.tar.gz qtwayland-5.13.2-r1 build log in xz format emerge info for my system |
Description
Chris Smith
2019-11-21 00:27:01 UTC
Created attachment 596984 [details]
dev-qt/qtwayland-5.13.2-r1 build log
unlike bug 699190 I do not have libglvnd installed Created attachment 596986 [details]
build.log.tar.gz
I have a similar problem, but different log output.
Comment on attachment 596986 [details]
build.log.tar.gz
If it's a similar problem but not the same problem, it doesn't belong on the same bug report. It doesn't help that the single file in your tarball does not appear to be legible.
Please file a new bug report and attach the directly compressed build.log (i.e. do not create a tarball for a single file) to that bug report.
I've had a similar compile stop. but there was nothing that stands out as the culprit. On the first run there was a mention about libxdg-shell ,same as now but refering to missing file,I checked and the only file listed on my system was the libxdg-basedir,which I installed,compile was more complete after,but still fell over at libxdg-shell. Created attachment 597042 [details]
qtwayland-5.13.2-r1 build log in xz format
Created attachment 597044 [details]
emerge info for my system
Same error here, with libglvnd. The missing typedefs are included in EGL/eglmesaext.h, adding an explicit include in the failing compilation units fixes the issue for me. Interestingly the previous (-r0) package emerges just fine without any changes. Same error, and also getting the same error rebuilding qtwayland-5.13.2, which is the currently installed version. On my system at least, looks like the trigger is media-libs/mesa-19.3.0_rc4, which includes some changes to installed headers that (among other things) remove an #include <EGL/eglmesaext.h>. See comments on https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2630. If I downgrade to media-libs/mesa-19.3.0_rc3, qtwayland builds again. But if I understand the discussion on that pull request correctly, the Mesa change is probably there to stay and qtwayland needs to grow an #include. This is enough to fix it: --- qtwayland-everywhere-src-5.13.2/src/hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabuf.h~ 2019-10-15 06:21:15.000000000 +0200 +++ qtwayland-everywhere-src-5.13.2/src/hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabuf.h 2019-11-21 11:05:54.735760060 +0100 @@ -53,6 +53,7 @@ #include <EGL/egl.h> #include <EGL/eglext.h> +#include <EGL/eglmesaext.h> // compatibility with libdrm <= 2.4.74 #ifndef DRM_FORMAT_RESERVED (In reply to Manuel Lauss from comment #10) > This is enough to fix it: > > --- > qtwayland-everywhere-src-5.13.2/src/hardwareintegration/compositor/linux- > dmabuf-unstable-v1/linuxdmabuf.h~ 2019-10-15 06:21:15.000000000 +0200 > +++ > qtwayland-everywhere-src-5.13.2/src/hardwareintegration/compositor/linux- > dmabuf-unstable-v1/linuxdmabuf.h 2019-11-21 11:05:54.735760060 +0100 > @@ -53,6 +53,7 @@ > > #include <EGL/egl.h> > #include <EGL/eglext.h> > +#include <EGL/eglmesaext.h> > > // compatibility with libdrm <= 2.4.74 > #ifndef DRM_FORMAT_RESERVED I confirm this patch resolves the issue. In file included from ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp:40: ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.h:92:5: error: 'PFNEGLBINDWAYLANDDISPLAYWL' does not name a type 92 | PFNEGLBINDWAYLANDDISPLAYWL egl_bind_wayland_display = nullptr; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.h:93:5: error: 'PFNEGLUNBINDWAYLANDDISPLAYWL' does not name a type 93 | PFNEGLUNBINDWAYLANDDISPLAYWL egl_unbind_wayland_display = nullptr; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp: In member function 'virtual void LinuxDmabufClientBufferIntegration::initializeHardware(wl_display*)': ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp:302:5: error: 'egl_bind_wayland_display' was not declared in this scope 302 | egl_bind_wayland_display = reinterpret_cast<PFNEGLBINDWAYLANDDISPLAYWL>(eglGetProcAddress("eglBindWaylandDisplayWL")); | ^~~~~~~~~~~~~~~~~~~~~~~~ ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp:302:49: error: 'PFNEGLBINDWAYLANDDISPLAYWL' does not name a type 302 | egl_bind_wayland_display = reinterpret_cast<PFNEGLBINDWAYLANDDISPLAYWL>(eglGetProcAddress("eglBindWaylandDisplayWL")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp:303:5: error: 'egl_unbind_wayland_display' was not declared in this scope 303 | egl_unbind_wayland_display = reinterpret_cast<PFNEGLUNBINDWAYLANDDISPLAYWL>(eglGetProcAddress("eglUnbindWaylandDisplayWL")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../../../../hardwareintegration/compositor/linux-dmabuf-unstable-v1/linuxdmabufclientbufferintegration.cpp:303:51: error: 'PFNEGLUNBINDWAYLANDDISPLAYWL' does not name a type 303 | egl_unbind_wayland_display = reinterpret_cast<PFNEGLUNBINDWAYLANDDISPLAYWL>(eglGetProcAddress("eglUnbindWaylandDisplayWL")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[5]: *** [Makefile:849: .obj/linuxdmabufclientbufferintegration.o] Error 1 make[4]: *** [Makefile:55: sub-linux-dmabuf-unstable-v1-make_first] Error 2 Same here ^ This appears to be a duplicate of bug #699190. The error message in the bug summary here also appears in the build logs of bug #699190. That bug also contains information on which patches to which packages are necessary to fix the problem. same here Same here also with a suggestion: error: ‘PFNEGLBINDWAYLANDDISPLAYWL’ does not name a type; did you mean ‘PFNEGLBINDAPIPROC’? https://gitlab.freedesktop.org/mesa/mesa/issues/2102 https://github.com/KhronosGroup/EGL-Registry/pull/95 (In reply to Samuel Bernardo from comment #15) > Same here also with a suggestion: > > error: ‘PFNEGLBINDWAYLANDDISPLAYWL’ does not name a type; did you mean > ‘PFNEGLBINDAPIPROC’? > > https://gitlab.freedesktop.org/mesa/mesa/issues/2102 > > https://github.com/KhronosGroup/EGL-Registry/pull/95 Thank you for these links. Please not that in bug #699190 we already link to the upstream bug reports for Qt, which include patches for this issue: * https://bugreports.qt.io/browse/QTBUG-79708 * https://bugreports.qt.io/browse/QTBUG-79709 +1 the upstream fix from comment 10 worked for me The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/qt.git/commit/?id=c44760bfd0fa7f8bb9d31a06346fb9367795ba56 commit c44760bfd0fa7f8bb9d31a06346fb9367795ba56 Author: Jimi Huotari <chiitoo@gentoo.org> AuthorDate: 2019-11-24 23:19:55 +0000 Commit: Jimi Huotari <chiitoo@gentoo.org> CommitDate: 2019-11-24 23:19:55 +0000 dev-qt/qtwayland: fix build with >=media-libs/mesa-19.3.0_rc4 Bug: https://bugs.gentoo.org/700832 Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Jimi Huotari <chiitoo@gentoo.org> .../qtwayland-5.13.2-fix-linuxdmabuf-build.patch | 29 ++++++++++++++++++++++ dev-qt/qtwayland/qtwayland-5.14.0_beta3.ebuild | 2 ++ 2 files changed, 31 insertions(+) *** This bug has been marked as a duplicate of bug 699190 *** |