Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698546 - kde-plasma/kwin-5.17.1 - In file included from .../work/kwin-5.17.1/plugins/qpa/eglhelpers.cpp:24: /usr/include/qt5/QtCore/qmetatype.h:59:2: error: #error qmetatype.h must be included before any header file that defines Bool
Summary: kde-plasma/kwin-5.17.1 - In file included from .../work/kwin-5.17.1/plugins/q...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard: fixed in 5.17.2
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-10-25 19:51 UTC by Elvis Pranskevichus
Modified: 2019-10-26 14:20 UTC (History)
0 users

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


Attachments
build.log (build.log.xz,47.80 KB, application/x-xz)
2019-10-25 19:53 UTC, Elvis Pranskevichus
Details
emerge --info (emerge--info.txt,8.18 KB, text/plain)
2019-10-25 19:54 UTC, Elvis Pranskevichus
Details
Build fix (build-fix.patch,1.18 KB, patch)
2019-10-25 20:15 UTC, Elvis Pranskevichus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Elvis Pranskevichus 2019-10-25 19:51:51 UTC
/usr/bin/x86_64-pc-linux-gnu-g++ -DKCOREADDONS_LIB -DKWinQpaPlugin_EXPORTS -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_URL_CAST_FROM_STRING -DQT_QML_LIB -DQT_QUICK_LIB -DQT_SCRIPT_LIB -DQT_SENSORS_LIB -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_XML_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -Iplugins/qpa -I/var/tmp/builds/portage/kde-plasma/kwin-5.17.1/work/kwin-5.17.1/plugins/qpa -Iplugins/qpa/KWinQpaPlugin_autogen/include -I/var/tmp/builds/portage/kde-plasma/kwin-5.17.1/work/kwin-5.17.1/platformsupport -I/var/tmp/builds/portage/kde-plasma/kwin-5.17.1/work/kwin-5.17.1/tabbox -I/var/tmp/builds/portage/kde-plasma/kwin-5.17.1/work/kwin-5.17.1/effects -I/var/tmp/builds/portage/kde-plasma/kwin-5.17.1/work/kwin-5.17.1/libkwineffects -I. -Ilibkwineffects -I/var/tmp/builds/portage/kde-plasma/kwin-5.17.1/work/kwin-5.17.1 -Ieffects -I/usr/include/qt5/QtGui/5.12.5 -I/usr/include/qt5/QtGui/5.12.5/QtGui -I/usr/include/qt5/QtCore/5.12.5 -I/usr/include/qt5/QtCore/5.12.5/QtCore -isystem /usr/include/qt5/QtFontDatabaseSupport/5.12.5 -isystem /usr/include/qt5/QtThemeSupport/5.12.5 -isystem /usr/include/qt5/QtEventDispatcherSupport/5.12.5 -isystem /usr/include/KF5/KWayland/Client -isystem /usr/include/KF5 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KWindowSystem -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtScript -isystem /usr/include/qt5/QtSensors -isystem /usr/include/KF5/KConfigWidgets -isystem /usr/include/KF5/KCodecs -isystem /usr/include/KF5/KWidgetsAddons -isystem /usr/include/KF5/KConfigGui -isystem /usr/include/qt5/QtXml -isystem /usr/include/KF5/KAuth -isystem /usr/include/KF5/KGlobalAccel -isystem /usr/include/qt5/QtX11Extras -isystem /usr/include/KF5/KI18n -isystem /usr/include/KF5/KNotifications -isystem /usr/include/KF5/KPackage -isystem /usr/include/KF5/Plasma -isystem /usr/include/KF5/KService -isystem /usr/include/KF5/KDeclarative -isystem /usr/include/KDecoration2 -isystem /usr/include/KScreenLocker -isystem /usr/include/KF5/KActivities -isystem /usr/include/KF5/KWayland/Server  -DQT_NO_DEBUG -DNDEBUG -O2 -pipe -march=native -fno-ident -std=c++0x -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fdiagnostics-color=always -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -std=gnu++14 -MD -MT plugins/qpa/CMakeFiles/KWinQpaPlugin.dir/eglhelpers.cpp.o -MF plugins/qpa/CMakeFiles/KWinQpaPlugin.dir/eglhelpers.cpp.o.d -o plugins/qpa/CMakeFiles/KWinQpaPlugin.dir/eglhelpers.cpp.o -c /var/tmp/builds/portage/kde-plasma/kwin-5.17.1/work/kwin-5.17.1/plugins/qpa/eglhelpers.cpp
In file included from /usr/include/qt5/QtCore/qobject.h:54,
                 from /usr/include/qt5/QtCore/qiodevice.h:45,
                 from /usr/include/qt5/QtCore/qtextstream.h:43,
                 from /usr/include/qt5/QtCore/qdebug.h:49,
                 from /usr/include/qt5/QtCore/qloggingcategory.h:44,
                 from /usr/include/qt5/QtCore/QLoggingCategory:1,
                 from plugins/qpa/logging.h:6,
                 from /var/tmp/builds/portage/kde-plasma/kwin-5.17.1/work/kwin-5.17.1/plugins/qpa/eglhelpers.cpp:24:
/usr/include/qt5/QtCore/qmetatype.h:59:2: error: #error qmetatype.h must be included before any header file that defines Bool
   59 | #error qmetatype.h must be included before any header file that defines Bool
      |  ^~~~~
In file included from /usr/include/qt5/QtCore/qdebug.h:49,
                 from /usr/include/qt5/QtCore/qloggingcategory.h:44,
                 from /usr/include/qt5/QtCore/QLoggingCategory:1,
                 from plugins/qpa/logging.h:6,
                 from /var/tmp/builds/portage/kde-plasma/kwin-5.17.1/work/kwin-5.17.1/plugins/qpa/eglhelpers.cpp:24:
/usr/include/qt5/QtCore/qtextstream.h:52:2: error: #error qtextstream.h must be included before any header file that defines Status
   52 | #error qtextstream.h must be included before any header file that defines Status
      |  ^~~~~
In file included from /usr/include/X11/Xlib.h:44,
                 from /usr/include/EGL/eglplatform.h:122,
                 from /usr/include/epoxy/egl_generated.h:11,
                 from /usr/include/epoxy/egl.h:46,
                 from /var/tmp/builds/portage/kde-plasma/kwin-5.17.1/work/kwin-5.17.1/plugins/qpa/eglhelpers.h:24,
                 from /var/tmp/builds/portage/kde-plasma/kwin-5.17.1/work/kwin-5.17.1/plugins/qpa/eglhelpers.cpp:22:
Comment 1 Elvis Pranskevichus 2019-10-25 19:53:36 UTC
Created attachment 593958 [details]
build.log
Comment 2 Elvis Pranskevichus 2019-10-25 19:54:09 UTC
Created attachment 593960 [details]
emerge --info
Comment 3 Elvis Pranskevichus 2019-10-25 20:15:54 UTC
Created attachment 593962 [details, diff]
Build fix

Attached patch fixes this for me.
Comment 4 Arfrever Frehtes Taifersar Arahesis 2019-10-26 00:24:03 UTC
Please test:
https://cgit.kde.org/kwin.git/commit/?id=8e176c8b0d97e78e8b33fac3b5acded277bbcf4f
Comment 5 Sandi (Sandy) Vujaković 2019-10-26 09:33:37 UTC
I do not have this issue. I have not tried anything outside of the Gentoo repository tree. I am running 5.17.1 without any problems (well, any problems that were not already present for almost two years ***cough***Fcitx***cough***).

Could it be related to his USE flags (or, maybe, that his ACCEPT_KEYWORDS only has "amd64", not "~amd64 amd64") in some way?
Comment 6 Elvis Pranskevichus 2019-10-26 14:08:08 UTC
The MESA_EGL_NO_X11_HEADERS patch works for me.
Comment 7 Larry the Git Cow gentoo-dev 2019-10-26 14:20:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7779965fdd4940b1c25224eab98bd89135d98de

commit b7779965fdd4940b1c25224eab98bd89135d98de
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-10-26 14:19:57 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-10-26 14:20:19 +0000

    kde-plasma/kwin: Don't use MESA_EGL_NO_X11_HEADERS
    
    Closes: https://bugs.gentoo.org/698546
    Package-Manager: Portage-2.3.78, Repoman-2.3.17
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 ...n-5.17.1-dont-use-MESA_EGL_NO_X11_HEADERS.patch | 57 ++++++++++++++++++++++
 kde-plasma/kwin/kwin-5.17.1.ebuild                 |  2 +
 2 files changed, 59 insertions(+)