Ref bug: https://bugs.launchpad.net/ubuntu/+source/simon/+bug/1699794 This blocks transition to OpenCV 3.1 in artful, so maye have to lose Simon from artful release/archive if not resolvable. In version 0.4.1: [ 39%] Linking CXX shared module ../../../lib/simonatspicommandplugin.so cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/plugins/Commands/ATSPI && /usr/bin/cmake -E cmake_link_script CMakeFiles/simonatspicommandplugin.dir/link.txt --verbose=1 /usr/bin/c++ -fPIC -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -DNDEBUG -DQT_NO_DEBUG -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc -shared -o ../../../lib/simonatspicommandplugin.so CMakeFiles/simonatspicommandplugin.dir/simonatspicommandplugin_automoc.cpp.o CMakeFiles/simonatspicommandplugin.dir/atspicommandmanager.cpp.o CMakeFiles/simonatspicommandplugin.dir/atspiconfiguration.cpp.o CMakeFiles/simonatspicommandplugin.dir/atspiscanner.cpp.o -L/usr/share/OpenCV/3rdparty/lib/x86_64-linux-gnu -Wl,-rpath,/usr/share/OpenCV/3rdparty/lib/x86_64-linux-gnu:/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib: /usr/lib/x86_64-linux-gnu/libQtXml.so /usr/lib/x86_64-linux-gnu/libqaccessibilityclient.so.0.1.0 ../../../lib/libsimonactions.so.0.4.1 -lQtCore -lQtDBus -lQtGui ../../../lib/libsimonscenarios.so.0.4.1 /usr/lib/libkdeui.so.5.14.30 /usr/lib/x86_64-linux-gnu/libQtSvg.so /usr/lib/x86_64-linux-gnu/libQtXml.so /usr/lib/x86_64-linux-gnu/libQtGui.so /usr/lib/libkdecore.so.5.14.30 /usr/lib/x86_64-linux-gnu/libQtDBus.so /usr/lib/x86_64-linux-gnu/libQtCore.so -Wl,-rpath-link,/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib CMakeFiles/simonatspicommandplugin.dir/atspiscanner.cpp.o: In function `QHash<QAccessibleClient::AccessibleObject, QPair<QString, QList<QAccessibleClient::AccessibleObject> > >::findNode(QAccessibleClient::AccessibleObject const&, unsigned int*) const': atspiscanner.cpp:(.text._ZNK5QHashIN17QAccessibleClient16AccessibleObjectE5QPairI7QString5QListIS1_EEE8findNodeERKS1_Pj[_ZNK5QHashIN17QAccessibleClient16AccessibleObjectE5QPairI7QString5QListIS1_EEE8findNodeERKS1_Pj]+0x1c): undefined reference to `qHash(QAccessibleClient::AccessibleObject const&)' collect2: error: ld returned 1 exit status plugins/Commands/ATSPI/CMakeFiles/simonatspicommandplugin.dir/build.make:193: recipe for target 'lib/simonatspicommandplugin.so' failed make[3]: *** [lib/simonatspicommandplugin.so] Error 1 In version 0.4.90: [ 10%] Building CXX object simonlib/simonactions/CMakeFiles/simonactions.dir/simonactions_automoc.cpp.o cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/simonlib/simonactions && /usr/bin/c++ -DBACKEND_TYPE_BOTH -DHAVE_LIBSAMPLERATE_H -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=19 -DKDE_DEPRECATED_WARNINGS -DMAKE_SIMONACTIONS_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_STL -DUSE_PLASMA -DUSE_WITH_SIMON -DWITH_SIMONCV -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_REENTRANT -D_XOPEN_SOURCE=500 -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/simonlib/simonactions -I/<<PKGBUILDDIR>>/simonlib/simonactions -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/. -I/<<PKGBUILDDIR>>/../../simonlib -I/<<PKGBUILDDIR>>/simonlib -I/usr/include/alsa -I/usr/include/opencv -I/usr/include/pocketsphinx -I/usr/include/x86_64-linux-gnu/sphinxbase -I/usr/include/qt4/phonon -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDBus -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4 -I/usr/include/KDE -I/usr/include/qwt -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hidden -DNDEBUG -DQT_NO_DEBUG -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -fexceptions -o CMakeFiles/simonactions.dir/simonactions_automoc.cpp.o -c /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/simonlib/simonactions/simonactions_automoc.cpp In file included from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/simonlib/simonactions/simonactions_automoc.cpp:4:0: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/simonlib/simonactions/moc_actionmanager.cpp: In static member function ‘static void ActionManager::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)’: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/simonlib/simonactions/moc_actionmanager.cpp:98:79: error: variable ‘QHash<CommandListElements::Element, VoiceInterfaceCommand*> _r’ has initializer but incomplete type case 11: { QHash<CommandListElements::Element,VoiceInterfaceCommand*> _r = _t->getGlobalListInterfaceCommands(); ^~ /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/simonlib/simonactions/moc_actionmanager.cpp:98:119: error: invalid use of incomplete type ‘class QHash<CommandListElements::Element, VoiceInterfaceCommand*>’ case 11: { QHash<CommandListElements::Element,VoiceInterfaceCommand*> _r = _t->getGlobalListInterfaceCommands(); ^ In file included from /usr/include/qt4/QtGui/qfont.h:45:0, from /usr/include/qt4/QtGui/QFont:1, from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/simonlib/simonactions/../../../simonlib/simonactions/actionmanager.h:25, from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/simonlib/simonactions/moc_actionmanager.cpp:9, from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/simonlib/simonactions/simonactions_automoc.cpp:4: /usr/include/qt4/QtGui/qwindowdefs.h:148:34: note: declaration of ‘class QHash<CommandListElements::Element, VoiceInterfaceCommand*>’ template<class K, class V> class QHash; ^~~~~ In file included from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/simonlib/simonactions/simonactions_automoc.cpp:4:0: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/simonlib/simonactions/moc_actionmanager.cpp:100:79: error: variable ‘QHash<CommandListElements::Element, VoiceInterfaceCommand*> _r’ has initializer but incomplete type case 12: { QHash<CommandListElements::Element,VoiceInterfaceCommand*> _r = _t->getListInterfaceCommands(); ^~ /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/simonlib/simonactions/moc_actionmanager.cpp:100:113: error: invalid use of incomplete type ‘class QHash<CommandListElements::Element, VoiceInterfaceCommand*>’ case 12: { QHash<CommandListElements::Element,VoiceInterfaceCommand*> _r = _t->getListInterfaceCommands(); ^ In file included from /usr/include/qt4/QtGui/qfont.h:45:0, from /usr/include/qt4/QtGui/QFont:1, from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/simonlib/simonactions/../../../simonlib/simonactions/actionmanager.h:25, from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/simonlib/simonactions/moc_actionmanager.cpp:9, from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/simonlib/simonactions/simonactions_automoc.cpp:4: /usr/include/qt4/QtGui/qwindowdefs.h:148:34: note: declaration of ‘class QHash<CommandListElements::Element, VoiceInterfaceCommand*>’ template<class K, class V> class QHash; ^~~~~ simonlib/simonactions/CMakeFiles/simonactions.dir/build.make:84: recipe for target 'simonlib/simonactions/CMakeFiles/simonactions.dir/simonactions_automoc.cpp.o' failed make[3]: *** [simonlib/simonactions/CMakeFiles/simonactions.dir/simonactions_automoc.cpp.o] Error 1 make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu' CMakeFiles/Makefile2:414: recipe for target 'simonlib/simonactions/CMakeFiles/simonactions.dir/all' failed make[2]: *** [simonlib/simonactions/CMakeFiles/simonactions.dir/all] Error 2
It is unlikely that OpenCV 3.1 is the reason for the failures, because I have been compiling using that version for a long time. The regression might be caused by update to Qt 5.9.0 or a GCC compiler update. All errors point to QHash template usage.
(In reply to Christoph Feck from comment #1) > It is unlikely that OpenCV 3.1 is the reason for the failures, because I > have been compiling using that version for a long time. Yes, I can see it fails against the old 2.49 as well > The regression might be caused by update to Qt 5.9.0 or a GCC compiler > update. All errors point to QHash template usage. Still on Qt 5.7.1 for a short while, so not that. Compiler seems more likely .
Hm, this is for the Qt4 version; cannot help there, because I can only test the KF5 builds right now. You could try adding missing "#include <QHash>" lines to the files which appear in the error messages.
I should note that while simon was removed from the ubuntu artful (17.10) -release pocket to allow the OpenCV transition to finish, but the failing build remains in -proposed pocket, so if this can be fixed it will slide straight back into the main archive.
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!