* Running emake in src/tools/qdbusxml2cpp make -j5 x86_64-pc-linux-gnu-g++ -c -march=native -O2 -pipe -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -std=c++1z -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -D_REENTRANT -fPIC -DQT_NO_CAST_FROM_ASCII -DQT_NO_FOREACH -DQT_USE_QSTRINGBUILDER -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_CORE_LIB -I/var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp -I. -I../../../include/QtDBus/5.8.0 -I../../../include/QtDBus/5.8.0/QtDBus -I../../../include -I../../../include/QtDBus -isystem /usr/include/qt5/QtCore/5.8.0 -isystem /usr/include/qt5/QtCore/5.8.0/QtCore -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -I.moc -I/var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/mkspecs/linux-g++ -o .obj/qdbusxml2cpp.o /var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp /var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp:83:8: error: ‘QDBusIntrospection’ does not name a type static QDBusIntrospection::Interfaces readInput() ^~~~~~~~~~~~~~~~~~ /var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp:105:29: error: variable or field ‘cleanInterfaces’ declared void static void cleanInterfaces(QDBusIntrospection::Interfaces &interfaces) ^~~~~~~~~~~~~~~~~~ /var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp:105:29: error: ‘QDBusIntrospection’ has not been declared /var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp:105:61: error: ‘interfaces’ was not declared in this scope static void cleanInterfaces(QDBusIntrospection::Interfaces &interfaces) ^~~~~~~~~~ /var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp:60:13: warning: ‘includeMocs’ defined but not used [-Wunused-variable] static bool includeMocs; ^~~~~~~~~~~ /var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp:59:13: warning: ‘verbose’ defined but not used [-Wunused-variable] static bool verbose; ^~~~~~~ /var/tmp/portage/dev-qt/qtdbus-5.8.9999/work/qtdbus-5.8.9999/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp:58:13: warning: ‘skipNamespaces’ defined but not used [-Wunused-variable] static bool skipNamespaces; ^~~~~~~~~~~~~~ make: *** [Makefile:567: .obj/qdbusxml2cpp.o] Error 1 * ERROR: dev-qt/qtdbus-5.8.9999::qt failed (compile phase): * emake failed
No problems with dev-qt/qtdbus-5.7.9999
5.8.9999 and 5.9999 are completely broken, the configure system was completely rewritten, don't even try.
If I understand correctly, src/tools/qdbusxml2cpp qdbusxml2cpp.cpp includes <private/qdbusintrospection_p.h>. That resolves to ../../../include/QtDBus/5.8.0/QtDBus/private/qdbusintrospection_p.h which contains #include "../../../../../src/dbus/qdbusintrospection_p.h" which I guess is valid for src/dbus but not src/tools.
*** Bug 607420 has been marked as a duplicate of this bug. ***
Confirm with 5.8.0. g++ -c -O2 -pipe -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -std=c++1z -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_CAST_FROM_ASCII -DQT_NO_FOREACH -DQT_USE_QSTRINGBUILDER -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_CORE_LIB -I. -I../../../include/QtDBus/5.8.0 -I../../../include/QtDBus/5.8.0/QtDBus -I../../../include -I../../../include/QtDBus -isystem /usr/include/qt5/QtCore/5.8.0 -isystem /usr/include/qt5/QtCore/5.8.0/QtCore -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -I.moc -I../../../mkspecs/linux-g++ -o .obj/qdbusxml2cpp.o qdbusxml2cpp.cpp qdbusxml2cpp.cpp:83:8: error: ‘QDBusIntrospection’ does not name a type static QDBusIntrospection::Interfaces readInput() ^ qdbusxml2cpp.cpp:105:29: error: variable or field ‘cleanInterfaces’ declared void static void cleanInterfaces(QDBusIntrospection::Interfaces &interfaces) ^ qdbusxml2cpp.cpp:105:29: error: ‘QDBusIntrospection’ has not been declared qdbusxml2cpp.cpp:105:61: error: ‘interfaces’ was not declared in this scope static void cleanInterfaces(QDBusIntrospection::Interfaces &interfaces) ^ qdbusxml2cpp.cpp:58:13: warning: ‘skipNamespaces’ defined but not used [-Wunused-variable] static bool skipNamespaces; ^ qdbusxml2cpp.cpp:59:13: warning: ‘verbose’ defined but not used [-Wunused-variable] static bool verbose; ^ qdbusxml2cpp.cpp:60:13: warning: ‘includeMocs’ defined but not used [-Wunused-variable] static bool includeMocs; ^ make: *** [Makefile:571: .obj/qdbusxml2cpp.o] Error 1
Since there is no Qt 5.8 tracker bug, my two cents and maybe this saves you a minute: to build qtsql we need a patch from QTBUG-58532. SSE/AVX tests were failing in my build until compiler flags were passed to configure via QMAKE_CXXFLAGS command line arg (QTBUG-58511). One needs an updated patch for webengine and ICU (I took the one from Arch). And qtwebengine was using headers from already installed instance, so had to uninstall it to compile the new version.
I've added a terrible hack to make this build again. I've spent a lot of time reducing this hack as much as possible to minimise impact on the build and to assist in finding a proper solution later. https://gitweb.gentoo.org/proj/qt.git/commit/?id=0339b82dc658d36fe2a50dde050e11d530a075bd
This (and the other bug) is caused because /usr/include/qt5/QtCore/qconfig.h contains: #define QT_NO_DBUS.
This used to work fine because /usr/include/qt5/QtCore/qconfig.h used to look like this: > #if defined(QT_NO_DBUS) && defined(QT_DBUS) > # undef QT_NO_DBUS > #elif !defined(QT_NO_DBUS) && !defined(QT_DBUS) > # define QT_NO_DBUS > #endif and now it records the defines unconditionally.
pesa, any thoughts about how we might solve this? I've thought of a couple of potential options, like restoring the conditional defines in QtCore/qconfig.h, or making qt5_regenerate_global_qconfigs allow for additive gentoo-qconfig.h like qconfig.pri.
*** Bug 614724 has been marked as a duplicate of this bug. ***
*** Bug 614722 has been marked as a duplicate of this bug. ***
*** Bug 610904 has been marked as a duplicate of this bug. ***
*** Bug 614986 has been marked as a duplicate of this bug. ***
*** Bug 615010 has been marked as a duplicate of this bug. ***
I just merged a better workaround for this issue. Let me know if it works as expected. https://github.com/gentoo/qt/commit/65a3a886f9bb48643053af1c4ce282d154f159ae
Thank you very much. Latest commit make it emerge.
(In reply to Davide Pesavento from comment #16) > I just merged a better workaround for this issue. Let me know if it works as > expected. > > https://github.com/gentoo/qt/commit/65a3a886f9bb48643053af1c4ce282d154f159ae Yes, builds and works fine for me, tested with 5.8.9999 and 5.9.9999 Thanks! :)