Bug 381577 - Simon failed to build on ubuntu 17.10 development version
Summary: Simon failed to build on ubuntu 17.10 development version
Status: RESOLVED WORKSFORME
Alias: None
Product: simon
Classification: Applications
Component: general (show other bugs)
Version: 0.4.1
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Mario Fux
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-23 13:39 UTC by Rik Mills
Modified: 2022-12-06 05:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rik Mills 2017-06-23 13:39:44 UTC
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
Comment 1 Christoph Feck 2017-06-26 20:24:04 UTC
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.
Comment 2 Rik Mills 2017-06-26 20:29:30 UTC
(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
.
Comment 3 Christoph Feck 2017-06-26 20:38:16 UTC
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.
Comment 4 Rik Mills 2017-06-26 20:46:05 UTC
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.
Comment 5 Justin Zobel 2022-11-06 09:24:50 UTC
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!
Comment 6 Bug Janitor Service 2022-11-21 05:14:00 UTC
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!
Comment 7 Bug Janitor Service 2022-12-06 05:20:42 UTC
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!