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.
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
Building locally on a single core/thread = success Building on anything that does parallel building, locally or ubuntu/launchpad builder = fail
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
Fixed in recent CMake versions.