Bug 382809 - Fails to build from source with cmake 3.9 - 16.12, 17.08 branches, & master
Summary: Fails to build from source with cmake 3.9 - 16.12, 17.08 branches, & master
Status: RESOLVED UPSTREAM
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: Git (master)
Platform: Kubuntu Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-27 15:49 UTC by Rik Mills
Modified: 2017-11-09 20:57 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rik Mills 2017-07-27 15:49:07 UTC
master and 17.08 branches fail to build from source using cmake 3.9

Seems that org.kde.kmail.kmail.xml is being looked for before it is generated.

make[4]: Entering directory '/<<BUILDDIR>>/kmail-17.07.70+p17.10+git20170727.0811/obj-x86_64-linux-gnu'
make[4]: *** No rule to make target 'src/org.kde.kmail.kmail.xml', needed by 'src/kontactplugin/kmail/kmailinterface.cpp'.  Stop.
make[4]: Leaving directory '/<<BUILDDIR>>/kmail-17.07.70+p17.10+git20170727.0811/obj-x86_64-linux-gnu'
CMakeFiles/Makefile2:823: recipe for target 'src/kontactplugin/kmail/CMakeFiles/kontact_kmailplugin_autogen.dir/all' failed
make[3]: *** [src/kontactplugin/kmail/CMakeFiles/kontact_kmailplugin_autogen.dir/all] Error 2
make[3]: *** Waiting for unfinished jobs....
[  1%] Generating org.kde.kmail.kmail.xml
[  1%] Generating custommimeheader.h, custommimeheader.cpp
[  1%] Generating org.kde.kmail.mailcomposer.xml
cd /<<BUILDDIR>>/kmail-17.07.70+p17.10+git20170727.0811/obj-x86_64-linux-gnu/src && /usr/lib/x86_64-linux-gnu/qt5/bin/qdbuscpp2xml -a /<<BUILDDIR>>/kmail-17.07.70+p17.10+git20170727.0811/src/kmkernel.h -o /<<BUILDDIR>>/kmail-17.07.70+p17.10+git20170727.0811/obj-x86_64-linux-gnu/src/org.kde.kmail.kmail.xml
cd /<<BUILDDIR>>/kmail-17.07.70+p17.10+git20170727.0811/obj-x86_64-linux-gnu/src && /usr/lib/x86_64-linux-gnu/libexec/kf5/kconfig_compiler_kf5 /<<BUILDDIR>>/kmail-17.07.70+p17.10+git20170727.0811/src/editor/custommimeheader/custommimeheader.kcfg /<<BUILDDIR>>/kmail-17.07.70+p17.10+git20170727.0811/src/editor/custommimeheader/custommimeheader.kcfgc -d /<<BUILDDIR>>/kmail-17.07.70+p17.10+git20170727.0811/obj-x86_64-linux-gnu/src/
cd /<<BUILDDIR>>/kmail-17.07.70+p17.10+git20170727.0811/obj-x86_64-linux-gnu/src && /usr/lib/x86_64-linux-gnu/qt5/bin/qdbuscpp2xml -a /<<BUILDDIR>>/kmail-17.07.70+p17.10+git20170727.0811/src/editor/kmcomposerwin.h -o /<<BUILDDIR>>/kmail-17.07.70+p17.10+git20170727.0811/obj-x86_64-linux-gnu/src/org.kde.kmail.mailcomposer.xml
Scanning dependencies of target kcm_kpimidentities_autogen
make[4]: Leaving directory '/<<BUILDDIR>>/kmail-17.07.70+p17.10+git20170727.0811/obj-x86_64-linux-gnu'
make -f src/kcm_kpimidentities/CMakeFiles/kcm_kpimidentities_autogen.dir/build.make src/kcm_kpimidentities/CMakeFiles/kcm_kpimidentities_autogen.dir/build
make[4]: Entering directory '/<<BUILDDIR>>/kmail-17.07.70+p17.10+git20170727.0811/obj-x86_64-linux-gnu'
Unregistered input type in parameter list: QList<QUrl>
Type not registered with QtDBus in parameter list: QUrl
Unregistered input type in parameter list: KMime::Headers::contentEncoding
Unregistered input type in parameter list: MessageViewer::Viewer::ResourceOnlineMode
[  1%] Generating org.kde.kmail.mailcomposer.xml
[  1%] Generating org.kde.kmail.kmail.xml
[  2%] Generating ui_identitypage.h
[  2%] Helper target for XML stuff. The Kontact plugin, KOrganizer and others depend on it.
Comment 1 Rik Mills 2017-07-28 12:44:39 UTC
16.12.3 also now fails with cmake 3.9 on a rebuild for autopackagetests

Log: https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-artful/artful/armhf/k/kmail/20170728_080225_fafa2@/log.gz
Comment 2 Rik Mills 2017-07-30 08:18:39 UTC
Building locally on a single core/thread = success

Building on anything that does parallel building, locally or ubuntu/launchpad builder = fail
Comment 3 Krzysztof Nowicki 2017-11-03 08:03:29 UTC
This seems to be also reproducible on KDE CI:

https://build.kde.org/view/KDE%20PIM/job/Applications%20kmail%20kf5-qt5%20FedoraQt5.8/259/console
Comment 4 Christophe Marin 2017-11-09 20:57:43 UTC
Fixed in recent CMake versions.