Bug 389982 - plasma-desktop 5.12.0 fails to build - kcm_lookandfeel.json" does not exist
Summary: plasma-desktop 5.12.0 fails to build - kcm_lookandfeel.json" does not exist
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Global Theme packages (show other bugs)
Version: 5.12.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL: https://phabricator.kde.org/D10450
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-07 01:07 UTC by Rik Mills
Modified: 2018-04-06 14:32 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.12.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rik Mills 2018-02-07 01:07:57 UTC
Buildlog:

[ 65%] Automatic MOC for target lookandfeeltool
cd /<<PKGBUILDDIR>>/obj-s390x-linux-gnu/kcms/lookandfeel && /usr/bin/cmake -E cmake_autogen /<<PKGBUILDDIR>>/obj-s390x-linux-gnu/kcms/lookandfeel/CMakeFiles/lookandfeeltool_autogen.dir Debian
AutoMoc: Warning: "/<<PKGBUILDDIR>>/kcms/lookandfeel/kcm.cpp"
The file includes the moc file "kcm.moc", but does not contain a Q_OBJECT or Q_GADGET macro.

Generating MOC predefs moc_predefs.h
Generating MOC source include/kcm.moc
/<<PKGBUILDDIR>>/kcms/lookandfeel/kcm.cpp:60: Error: Plugin Metadata file "kcm_lookandfeel.json" does not exist. Declaration will be ignored
AutoMoc: Error: moc process failed for
"include/kcm.moc"
AutoMoc: Command:
/usr/lib/qt5/bin/moc -I/<<PKGBUILDDIR>>/obj-s390x-linux-gnu/kcms/lookandfeel -I/<<PKGBUILDDIR>>/obj-s390x-linux-gnu/kcms/lookandfeel/lookandfeeltool_autogen/include -I/<<PKGBUILDDIR>>/kcms/lookandfeel -I/<<PKGBUILDDIR>>/obj-s390x-linux-gnu -I/usr/include/KF5/KIOWidgets -I/usr/include/KF5 -I/usr/include/KF5/KIOCore -I/usr/include/KF5/KCoreAddons -I/usr/include/s390x-linux-gnu/qt5 -I/usr/include/s390x-linux-gnu/qt5/QtCore -I/usr/lib/s390x-linux-gnu/qt5/mkspecs/linux-g++ -I/usr/include/KF5/KService -I/usr/include/KF5/KConfigCore -I/usr/include/KF5/KJobWidgets -I/usr/include/s390x-linux-gnu/qt5/QtWidgets -I/usr/include/s390x-linux-gnu/qt5/QtGui -I/usr/include/s390x-linux-gnu/qt5/QtNetwork -I/usr/include/KF5/KCompletion -I/usr/include/KF5/KWidgetsAddons -I/usr/include/KF5/KCMUtils -I/usr/include/KF5/KConfigWidgets -I/usr/include/KF5/KCodecs -I/usr/include/KF5/KConfigGui -I/usr/include/s390x-linux-gnu/qt5/QtXml -I/usr/include/KF5/KAuth -I/usr/include/KF5/KI18n -I/usr/include/KF5/Plasma -I/usr/include/KF5/KPackage -I/usr/include/s390x-linux-gnu/qt5/QtQuick -I/usr/include/s390x-linux-gnu/qt5/QtQml -I/usr/include/KF5/KWindowSystem -I/usr/include/KF5/KDELibs4Support -I/usr/include/KF5/KDELibs4Support/KDE -I/usr/include/s390x-linux-gnu/qt5/QtDBus -I/usr/include/s390x-linux-gnu/qt5/QtPrintSupport -I/usr/include/KF5/KCrash -I/usr/include/KF5/KIOFileWidgets -I/usr/include/KF5/KBookmarks -I/usr/include/KF5/KItemViews -I/usr/include/KF5/KXmlGui -I/usr/include/KF5/Solid -I/usr/include/KF5/KNotifications -I/usr/include/KF5/KIconThemes -I/usr/include/KF5/KGuiAddons -I/usr/include/KF5/KUnitConversion -I/usr/include/KF5/KTextWidgets -I/usr/include/KF5/SonnetUi -I/usr/include/KF5/KParts -I/usr/include/KF5/KDeclarative -I/usr/include/KF5/KNewStuff3 -I/usr/include/KF5/KNewStuff3/KNS3 -I/usr/include/KF5/KNewStuff3/knscore -I/usr/include/KF5/KNewStuff3/kns3 -I/usr/include/KF5/KNewStuff3/KNSCore -I/usr/include/KF5/Attica -I/usr/include/s390x-linux-gnu/qt5/QtQuickWidgets -I/usr/include/s390x-linux-gnu/qt5/QtX11Extras -I/usr/include -DKCOREADDONS_LIB -DKGUIADDONS_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_PRINTSUPPORT_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_XML_LIB "-DTRANSLATION_DOMAIN=\"kcm_lookandfeel\"" -D_GNU_SOURCE -D_LARGEFILE64_SOURCE --include /<<PKGBUILDDIR>>/obj-s390x-linux-gnu/kcms/lookandfeel/lookandfeeltool_autogen/moc_predefs.h -o /<<PKGBUILDDIR>>/obj-s390x-linux-gnu/kcms/lookandfeel/lookandfeeltool_autogen/include/kcm.moc /<<PKGBUILDDIR>>/kcms/lookandfeel/kcm.cpp
AutoMoc: Command output:
/<<PKGBUILDDIR>>/kcms/lookandfeel/kcm.cpp:60: Error: Plugin Metadata file "kcm_lookandfeel.json" does not exist. Declaration will be ignored


kcms/lookandfeel/CMakeFiles/lookandfeeltool_autogen.dir/build.make:60: recipe for target 'kcms/lookandfeel/CMakeFiles/lookandfeeltool_autogen' failed
make[3]: *** [kcms/lookandfeel/CMakeFiles/lookandfeeltool_autogen] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-s390x-linux-gnu'
CMakeFiles/Makefile2:16704: recipe for target 'kcms/lookandfeel/CMakeFiles/lookandfeeltool_autogen.dir/all' failed
make[2]: *** [kcms/lookandfeel/CMakeFiles/lookandfeeltool_autogen.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-s390x-linux-gnu'
Makefile:143: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-s390x-linux-gnu'
dh_auto_build: cd obj-s390x-linux-gnu && make -j1 returned exit code 2
debian/rules:16: recipe for target 'build-arch' failed
make: *** [build-arch] Error 2
Comment 1 David Edmundson 2018-02-07 12:09:56 UTC
Builds here (which I know isn't a very helpful comment) and for other distros.

Is this building locally or on Kubuntu's buildservers? Can you post a link to the full log?
Comment 2 David Edmundson 2018-02-07 12:11:48 UTC
Edit:
Our BSD build server (but only that one) has the same failure.

https://build.kde.org/job/Plasma%20plasma-desktop%20stable-kf5-qt5%20FreeBSDQt5.9/36/
Comment 3 Rik Mills 2018-02-07 12:30:30 UTC
Had to do a new build, as old build log was lost.

https://launchpadlibrarian.net/356113692/buildlog_ubuntu-bionic-s390x.plasma-desktop_4%3A5.12.0-0ubuntu3~ppa1_BUILDING.txt.gz

The fail is only on s390x architecture builds on Ubuntu's mainframe, so part of it could be that it builds insanely fast.
Comment 4 groot 2018-02-08 22:09:39 UTC
The BSD server has it, but my home builds of the same code don't. It may indeed be a parallelization issue: Bhushan said that he thought the file was later renamed, so there might just be a dependency missing. I remember someone mentioning it on IRC as well -- so that's a home FreeBSD build that falls over, too.

I have not yet sat down to really look at the problem -- it might also be a difference in CMake generators, e.g. BSD make vs. Ninja vs. gmake.
Comment 5 Kwanza.Pili 2018-02-10 02:16:53 UTC
I have the same problem, but on opensuse 42.3 x86_64. My fix is to comment out the line in kcms/lookandfeel/kcm.cpp that starts with K_PLUGIN_FACTORY_WITH_JSON. The build is then succeeds. I am not sure that effect this has if any. it seems to me that something is broken in the file kcm.cpp.
Comment 6 groot 2018-02-12 08:39:54 UTC
Proposed patch and discussion also in https://phabricator.kde.org/D10450
Comment 7 Rik Mills 2018-02-13 19:16:40 UTC
Still failing in 5.12.1
Comment 8 Rik Mills 2018-02-13 19:34:31 UTC
Probably not an overly useful stat, but for the record I just had 8 failed builds on s390x before I finally got a random success with the 9th.

I'm glad I'm not paying for the CPU time!
Comment 9 Friedrich W. H. Kossebau 2018-02-14 21:43:44 UTC
Main reason should be fixed with commit from https://phabricator.kde.org/D10485

Please reopen if the problem persists.
Comment 10 Bhushan Shah 2018-02-17 11:46:08 UTC
The fix was reverted due to another bug.

see: https://commits.kde.org/plasma-desktop/9a05da7cced322ba29de994b019212034361c1ee
Comment 11 Friedrich W. H. Kossebau 2018-02-19 14:20:32 UTC
Main reason should be fixed now more automoc-fail-proof with commit from https://phabricator.kde.org/D10607