cmake git (branch release) breaks compiling kconfig
David Faure
faure at kde.org
Fri Jun 30 10:16:01 UTC 2017
git://anongit.kde.org/kconfig fails to build (even from scratch) with cmake from git.
Something went wrong with generated files with signals, in the automoc support.
cd /d/kde/build/5/frameworks/kconfig/autotests/kconfig_compiler && /d/kde/inst/kde_frameworks/bin/cmake -E cmake_link_script CMakeFiles/test_signal.dir/link.txt --verbose=1
/home/dfaure/txtsetup/bin/ccache-g++ -pipe -DQT_STRICT_ITERATORS -DQT_NO_URL_CAST_FROM_STRING -DQT_NO_CAST_TO_ASCII -DQT_NO_HTTP -DQT_NO_FTP -Wformat -Werror=format-security -Werror=return-type -Wno-variadic-macros -Wmissing-include-dirs -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 -pedantic -g -Wl,--enable-new-dtags -rdynamic CMakeFiles/test_signal.dir/test_signal_main.cpp.o CMakeFiles/test_signal.dir/test_signal.cpp.o CMakeFiles/test_signal.dir/test_signal_autogen/mocs_compilation.cpp.o -o test_signal -Wl,-rpath,/d/kde/build/5/frameworks/kconfig/src/gui:/d/qt/5/kde/build/qtbase/lib:/d/kde/build/5/frameworks/kconfig/src/core ../../src/gui/libKF5ConfigGui.so.5.36.0 /d/qt/5/kde/build/qtbase/lib/libQt5Gui.so.5.9.1 /d/qt/5/kde/build/qtbase/lib/libQt5Xml.so.5.9.1 ../../src/core/libKF5ConfigCore.so.5.36.0 /d/qt/5/kde/build/qtbase/lib/libQt5Core.so.5.9.1
CMakeFiles/test_signal.dir/test_signal_autogen/mocs_compilation.cpp.o: In function `QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::operator->() const':
/d/kde/build/5/frameworks/kconfig/autotests/kconfig_compiler/test_signal_autogen/EJRQKI7XPS/moc_test_signal.cpp:72: multiple definition of `TestSignal::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)'
CMakeFiles/test_signal.dir/test_signal.cpp.o:/d/kde/build/5/frameworks/kconfig/autotests/kconfig_compiler/test_signal.moc:72: first defined here
CMakeFiles/test_signal.dir/test_signal_autogen/mocs_compilation.cpp.o: In function `TestSignal::emoticonSettingsChanged()':
/d/kde/build/5/frameworks/kconfig/autotests/kconfig_compiler/test_signal_autogen/EJRQKI7XPS/moc_test_signal.cpp:139: multiple definition of `TestSignal::emoticonSettingsChanged()'
CMakeFiles/test_signal.dir/test_signal.cpp.o:/d/kde/build/5/frameworks/kconfig/autotests/kconfig_compiler/test_signal.moc:139: first defined here
CMakeFiles/test_signal.dir/test_signal_autogen/mocs_compilation.cpp.o: In function `TestSignal::styleChanged(QString const&, QString const&)':
/d/kde/build/5/frameworks/kconfig/autotests/kconfig_compiler/test_signal_autogen/EJRQKI7XPS/moc_test_signal.cpp:145: multiple definition of `TestSignal::styleChanged(QString const&, QString const&)'
CMakeFiles/test_signal.dir/test_signal.cpp.o:/d/kde/build/5/frameworks/kconfig/autotests/kconfig_compiler/test_signal.moc:145: first defined here
CMakeFiles/test_signal.dir/test_signal_autogen/mocs_compilation.cpp.o: In function `QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::operator->() const':
/d/kde/build/5/frameworks/kconfig/autotests/kconfig_compiler/test_signal_autogen/EJRQKI7XPS/moc_test_signal.cpp:72: multiple definition of `TestSignal::staticMetaObject'
CMakeFiles/test_signal.dir/test_signal.cpp.o:/d/kde/build/5/frameworks/kconfig/autotests/kconfig_compiler/test_signal.cpp:16: first defined here
CMakeFiles/test_signal.dir/test_signal_autogen/mocs_compilation.cpp.o: In function `TestSignal::metaObject() const':
/d/kde/build/5/frameworks/kconfig/autotests/kconfig_compiler/test_signal_autogen/EJRQKI7XPS/moc_test_signal.cpp:108: multiple definition of `TestSignal::metaObject() const'
CMakeFiles/test_signal.dir/test_signal.cpp.o:/d/kde/build/5/frameworks/kconfig/autotests/kconfig_compiler/test_signal.moc:108: first defined here
CMakeFiles/test_signal.dir/test_signal_autogen/mocs_compilation.cpp.o: In function `TestSignal::qt_metacast(char const*)':
/d/kde/build/5/frameworks/kconfig/autotests/kconfig_compiler/test_signal_autogen/EJRQKI7XPS/moc_test_signal.cpp:113: multiple definition of `TestSignal::qt_metacast(char const*)'
CMakeFiles/test_signal.dir/test_signal.cpp.o:/d/kde/build/5/frameworks/kconfig/autotests/kconfig_compiler/test_signal.moc:113: first defined here
CMakeFiles/test_signal.dir/test_signal_autogen/mocs_compilation.cpp.o: In function `TestSignal::qt_metacall(QMetaObject::Call, int, void**)':
/d/kde/build/5/frameworks/kconfig/autotests/kconfig_compiler/test_signal_autogen/EJRQKI7XPS/moc_test_signal.cpp:121: multiple definition of `TestSignal::qt_metacall(QMetaObject::Call, int, void**)'
CMakeFiles/test_signal.dir/test_signal.cpp.o:/d/kde/build/5/frameworks/kconfig/autotests/kconfig_compiler/test_signal.moc:121: first defined here
collect2: error: ld returned 1 exit status
--
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5
More information about the Kde-buildsystem
mailing list