Bug 342520 - Build fails for ktp-kded-module and libdbusmenu-qt while running kdesrc-build
Summary: Build fails for ktp-kded-module and libdbusmenu-qt while running kdesrc-build
Status: RESOLVED FIXED
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-05 15:59 UTC by Rahul Chowdhury
Modified: 2015-02-27 05:31 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 Rahul Chowdhury 2015-01-05 15:59:24 UTC
On running kdesrc-build it fails to build the 2 packages:
  * libdbusmenu-qt
  * ktp-kded-module

~/kf5/src/log/2015-01-05-22/ktp-kded-module/build.log
--------------------------------------------------------------------------
# kdesrc-build running: 'gmake' '-j8'
# from directory: /home/rahul/kf5/build/extragear/network/telepathy/ktp-kded-module
Scanning dependencies of target kcm_ktp_integration_module_automoc
Scanning dependencies of target kded_ktp_integration_module_automoc
[  9%] [  9%] Automatic moc for target kded_ktp_integration_module
Automatic moc for target kcm_ktp_integration_module
Generating column-resizer.moc
/home/rahul/kf5/src/extragear/network/telepathy/ktp-kded-module/config/column-resizer.cpp:0: Note: No relevant classes found. No output generated.
Generating contact-request-handler.moc
/home/rahul/kf5/src/extragear/network/telepathy/ktp-kded-module/contact-request-handler.cpp:0: Note: No relevant classes found. No output generated.
Generating telepathy-kded-config.moc
Generating moc_column-resizer.cpp
Generating moc_nowplaying-lineedit.cpp
Generating moc_nowplaying-listwidget.cpp
Generating moc_telepathy-kded-config.cpp
[  9%] Built target kcm_ktp_integration_module_automoc
[ 14%] Generating ui_telepathy-kded-config.h
Scanning dependencies of target kcm_ktp_integration_module
[ 19%] [ 23%] [ 33%] [ 33%] Building CXX object config/CMakeFiles/kcm_ktp_integration_module.dir/column-resizer.o
[ 38%] Building CXX object config/CMakeFiles/kcm_ktp_integration_module.dir/telepathy-kded-config.o
Building CXX object config/CMakeFiles/kcm_ktp_integration_module.dir/nowplaying-lineedit.o
Building CXX object config/CMakeFiles/kcm_ktp_integration_module.dir/kcm_ktp_integration_module_automoc.o
Building CXX object config/CMakeFiles/kcm_ktp_integration_module.dir/nowplaying-listwidget.o
Generating telepathy-module.moc
Generating moc_autoaway.cpp
Generating moc_autoconnect.cpp
Generating moc_contact-cache.cpp
Generating moc_contact-request-handler.cpp
Generating moc_contactnotify.cpp
Generating moc_error-handler.cpp
Generating moc_screensaveraway.cpp
Generating moc_status-handler.cpp
Generating moc_telepathy-kded-module-plugin.cpp
Generating moc_telepathy-module.cpp
Generating moc_telepathy-mpris.cpp
[ 38%] Built target kded_ktp_integration_module_automoc
Scanning dependencies of target kded_ktp_integration_module
[ 42%] [ 47%] [ 52%] Building CXX object CMakeFiles/kded_ktp_integration_module.dir/ktp_kded_debug.o
Building CXX object CMakeFiles/kded_ktp_integration_module.dir/contact-request-handler.o
[ 57%] [ 61%] Building CXX object CMakeFiles/kded_ktp_integration_module.dir/contact-cache.o
Building CXX object CMakeFiles/kded_ktp_integration_module.dir/telepathy-module.o
Building CXX object CMakeFiles/kded_ktp_integration_module.dir/telepathy-kded-module-plugin.o
[ 66%] Building CXX object CMakeFiles/kded_ktp_integration_module.dir/autoaway.o
[ 71%] Building CXX object CMakeFiles/kded_ktp_integration_module.dir/telepathy-mpris.o
/home/rahul/kf5/src/extragear/network/telepathy/ktp-kded-module/config/telepathy-kded-config.cpp: In member function ‘void TelepathyKDEDConfig::nowPlayingChecked(bool)’:
/home/rahul/kf5/src/extragear/network/telepathy/ktp-kded-module/config/telepathy-kded-config.cpp:382:9: error: ‘class Ui::TelepathyKDEDUi’ has no member named ‘m_nowPlayingVideoText’
     ui->m_nowPlayingVideoText->setEnabled(checked);
         ^
/home/rahul/kf5/src/extragear/network/telepathy/ktp-kded-module/config/telepathy-kded-config.cpp:383:9: error: ‘class Ui::TelepathyKDEDUi’ has no member named ‘message_format_label_video’
     ui->message_format_label_video->setEnabled(checked);
         ^
/home/rahul/kf5/src/extragear/network/telepathy/ktp-kded-module/config/telepathy-kded-config.cpp:385:9: error: ‘class Ui::TelepathyKDEDUi’ has no member named ‘empty_fields_label’
     ui->empty_fields_label->setEnabled(checked);
         ^
/home/rahul/kf5/src/extragear/network/telepathy/ktp-kded-module/config/telepathy-kded-config.cpp:386:9: error: ‘class Ui::TelepathyKDEDUi’ has no member named ‘m_nowPlayingEmptyFields’
     ui->m_nowPlayingEmptyFields->setEnabled(checked);
         ^
[ 76%] Building CXX object CMakeFiles/kded_ktp_integration_module.dir/status-handler.o
config/CMakeFiles/kcm_ktp_integration_module.dir/build.make:82: recipe for target 'config/CMakeFiles/kcm_ktp_integration_module.dir/telepathy-kded-config.o' failed
gmake[2]: *** [config/CMakeFiles/kcm_ktp_integration_module.dir/telepathy-kded-config.o] Error 1
CMakeFiles/Makefile2:142: recipe for target 'config/CMakeFiles/kcm_ktp_integration_module.dir/all' failed
gmake[1]: *** [config/CMakeFiles/kcm_ktp_integration_module.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 80%] Building CXX object CMakeFiles/kded_ktp_integration_module.dir/autoconnect.o
/home/rahul/kf5/src/extragear/network/telepathy/ktp-kded-module/status-handler.cpp:32:39: warning: unused parameter ‘parent’ [-Wunused-parameter]
 StatusHandler::StatusHandler(QObject* parent):
                                       ^
[ 85%] Building CXX object CMakeFiles/kded_ktp_integration_module.dir/error-handler.o
[ 90%] Building CXX object CMakeFiles/kded_ktp_integration_module.dir/contactnotify.o
[ 95%] Building CXX object CMakeFiles/kded_ktp_integration_module.dir/screensaveraway.o
[100%] Building CXX object CMakeFiles/kded_ktp_integration_module.dir/kded_ktp_integration_module_automoc.o
Linking CXX shared module kded_ktp_integration_module.so
[100%] Built target kded_ktp_integration_module
Makefile:127: recipe for target 'all' failed
gmake: *** [all] Error 2

~/kf5/src/log/2015-01-05-22/libdbusmenu-qt/error.log
------------------------------------------------------------------------
# kdesrc-build running: 'bzr' 'pull'
# from directory: /home/rahul/kf5/src/libdbusmenu-qt
Unable to obtain lock file:///home/rahul/kf5/src/libdbusmenu-qt/ held by rahul on localhost.localdomain (process #25433), acquired 29 hours, 42 minutes ago.
Will continue to try until 21:25:25, unless you press Ctrl-C.
See "bzr help break-lock" for more.
bzr: ERROR: Could not acquire lock "(local)": file:///home/rahul/kf5/src/libdbusmenu-qt/

Reproducible: Always

Steps to Reproduce:
1. Run kdesrc-build ktp-kded-module
2. Run kdesrc-build libdbusmenu-qt
3.

Actual Results:  
The following output is generated:


[rahul@localhost] ~ $  kdesrc-build ktp-kded-module libdbusmenu-qt --verbose
Don't use module grantlee on line 26, use options grantlee
Updating kde-build-metadata (to branch master)
        Updating kde-build-metadata using existing branch master
 * Downloading projects.kde.org project database...
Using proxy as determined by environment
Downloading /home/rahul/kf5/src/kde_projects.xml from http://projects.kde.org/kde_projects.xml
 * extragear/network/telepathy/ktp-kded-module:master depends on extragear/network/telepathy/ktp-common-internals:*, but no module builds extragear/network/telepathy/ktp-common-internals:* for this run.
 * extragear/network/telepathy/ktp-common-internals:* depends on frameworks/kcmutils:*, but no module builds frameworks/kcmutils:* for this run.
 * frameworks/kcmutils:* depends on frameworks/kitemviews:*, but no module builds frameworks/kitemviews:* for this run.
 * frameworks/kitemviews:* depends on kdesupport/extra-cmake-modules:*, but no module builds kdesupport/extra-cmake-modules:* for this run.
 * frameworks/kcmutils:* depends on frameworks/kconfigwidgets:*, but no module builds frameworks/kconfigwidgets:* for this run.
 * frameworks/kconfigwidgets:* depends on frameworks/kauth:*, but no module builds frameworks/kauth:* for this run.
 * frameworks/kauth:* depends on frameworks/kcoreaddons:*, but no module builds frameworks/kcoreaddons:* for this run.
 * frameworks/kconfigwidgets:* depends on frameworks/kcodecs:*, but no module builds frameworks/kcodecs:* for this run.
 * frameworks/kconfigwidgets:* depends on frameworks/kconfig:*, but no module builds frameworks/kconfig:* for this run.
 * frameworks/kconfigwidgets:* depends on frameworks/kdoctools:*, but no module builds frameworks/kdoctools:* for this run.
 * frameworks/kdoctools:* depends on frameworks/karchive:*, but no module builds frameworks/karchive:* for this run.
 * frameworks/kconfigwidgets:* depends on frameworks/kguiaddons:*, but no module builds frameworks/kguiaddons:* for this run.
 * frameworks/kconfigwidgets:* depends on frameworks/ki18n:*, but no module builds frameworks/ki18n:* for this run.
 * frameworks/kconfigwidgets:* depends on frameworks/kwidgetsaddons:*, but no module builds frameworks/kwidgetsaddons:* for this run.
 * frameworks/kcmutils:* depends on frameworks/kiconthemes:*, but no module builds frameworks/kiconthemes:* for this run.
 * frameworks/kcmutils:* depends on frameworks/kservice:*, but no module builds frameworks/kservice:* for this run.
 * frameworks/kservice:* depends on frameworks/kcrash:*, but no module builds frameworks/kcrash:* for this run.
 * frameworks/kcrash:* depends on frameworks/kwindowsystem:*, but no module builds frameworks/kwindowsystem:* for this run.
 * frameworks/kservice:* depends on frameworks/kdbusaddons:*, but no module builds frameworks/kdbusaddons:* for this run.
 * frameworks/kcmutils:* depends on frameworks/kxmlgui:*, but no module builds frameworks/kxmlgui:* for this run.
 * frameworks/kxmlgui:* depends on frameworks/attica:*, but no module builds frameworks/attica:* for this run.
 * frameworks/kxmlgui:* depends on frameworks/kglobalaccel:*, but no module builds frameworks/kglobalaccel:* for this run.
 * frameworks/kxmlgui:* depends on frameworks/ktextwidgets:*, but no module builds frameworks/ktextwidgets:* for this run.
 * frameworks/ktextwidgets:* depends on frameworks/kcompletion:*, but no module builds frameworks/kcompletion:* for this run.
 * frameworks/ktextwidgets:* depends on frameworks/sonnet:*, but no module builds frameworks/sonnet:* for this run.
 * extragear/network/telepathy/ktp-common-internals:* depends on frameworks/knotifyconfig:*, but no module builds frameworks/knotifyconfig:* for this run.
 * frameworks/knotifyconfig:* depends on frameworks/kio:*, but no module builds frameworks/kio:* for this run.
 * frameworks/kio:* depends on frameworks/solid:*, but no module builds frameworks/solid:* for this run.
 * frameworks/kio:* depends on frameworks/kjobwidgets:*, but no module builds frameworks/kjobwidgets:* for this run.
 * frameworks/kio:* depends on frameworks/kbookmarks:*, but no module builds frameworks/kbookmarks:* for this run.
 * frameworks/kio:* depends on frameworks/knotifications:*, but no module builds frameworks/knotifications:* for this run.
 * frameworks/knotifications:* depends on kdesupport/phonon/phonon:*, but no module builds kdesupport/phonon/phonon:* for this run.
 * frameworks/kio:* depends on frameworks/kwallet:*, but no module builds frameworks/kwallet:* for this run.
 * extragear/network/telepathy/ktp-common-internals:* depends on frameworks/ktexteditor:*, but no module builds frameworks/ktexteditor:* for this run.
 * frameworks/ktexteditor:* depends on frameworks/kparts:*, but no module builds frameworks/kparts:* for this run.
 * extragear/network/telepathy/ktp-common-internals:* depends on frameworks/kdelibs4support:*, but no module builds frameworks/kdelibs4support:* for this run.
 * frameworks/kdelibs4support:* depends on frameworks/kunitconversion:*, but no module builds frameworks/kunitconversion:* for this run.
 * frameworks/kdelibs4support:* depends on frameworks/kinit:*, but no module builds frameworks/kinit:* for this run.
 * frameworks/kdelibs4support:* depends on frameworks/kdesignerplugin:*, but no module builds frameworks/kdesignerplugin:* for this run.
 * frameworks/kdesignerplugin:* depends on frameworks/kplotting:*, but no module builds frameworks/kplotting:* for this run.
 * frameworks/kdesignerplugin:* depends on frameworks/kdewebkit:*, but no module builds frameworks/kdewebkit:* for this run.
 * extragear/network/telepathy/ktp-common-internals:* depends on playground/network/libkpeople:*, but no module builds playground/network/libkpeople:* for this run.
 * playground/network/libkpeople:* depends on kde/pim/kcontacts:*, but no module builds kde/pim/kcontacts:* for this run.
 * kde/pim/kcontacts:* depends on frameworks/kf5umbrella:*, but no module builds frameworks/kf5umbrella:* for this run.
 * frameworks/kf5umbrella:* depends on frameworks/kactivities:*, but no module builds frameworks/kactivities:* for this run.
 * frameworks/kactivities:* depends on frameworks/kdeclarative:*, but no module builds frameworks/kdeclarative:* for this run.
 * frameworks/kf5umbrella:* depends on frameworks/kded:*, but no module builds frameworks/kded:* for this run.
 * frameworks/kf5umbrella:* depends on frameworks/kdnssd:*, but no module builds frameworks/kdnssd:* for this run.
 * frameworks/kf5umbrella:* depends on frameworks/kemoticons:*, but no module builds frameworks/kemoticons:* for this run.
 * frameworks/kf5umbrella:* depends on frameworks/khtml:*, but no module builds frameworks/khtml:* for this run.
 * frameworks/khtml:* depends on frameworks/kjs:*, but no module builds frameworks/kjs:* for this run.
 * frameworks/kf5umbrella:* depends on frameworks/kidletime:*, but no module builds frameworks/kidletime:* for this run.
 * frameworks/kf5umbrella:* depends on frameworks/kjsembed:*, but no module builds frameworks/kjsembed:* for this run.
 * frameworks/kf5umbrella:* depends on frameworks/kitemmodels:*, but no module builds frameworks/kitemmodels:* for this run.
 * frameworks/kf5umbrella:* depends on frameworks/knewstuff:*, but no module builds frameworks/knewstuff:* for this run.
 * frameworks/kf5umbrella:* depends on frameworks/frameworkintegration:*, but no module builds frameworks/frameworkintegration:* for this run.
 * frameworks/kf5umbrella:* depends on frameworks/kdesu:*, but no module builds frameworks/kdesu:* for this run.
 * frameworks/kdesu:* depends on frameworks/kpty:*, but no module builds frameworks/kpty:* for this run.
 * frameworks/kf5umbrella:* depends on frameworks/kross:*, but no module builds frameworks/kross:* for this run.
 * frameworks/kf5umbrella:* depends on frameworks/threadweaver:*, but no module builds frameworks/threadweaver:* for this run.
 * frameworks/kf5umbrella:* depends on frameworks/plasma-framework:*, but no module builds frameworks/plasma-framework:* for this run.
 * frameworks/plasma-framework:* depends on frameworks/kpackage:*, but no module builds frameworks/kpackage:* for this run.

Building ktp-kded-module (build system KDE) from ktp (1/2)
        Updating ktp-kded-module (to branch master)
        Updating ktp-kded-module using existing branch master
        This module will not be built. Nothing updated.
        No source update, but ktp-kded-module meets other building criteria.
        Source update complete for ktp-kded-module: no files affected
        Preparing build system for ktp-kded-module.
        Removing files in build directory for ktp-kded-module
        Old build system cleaned, starting new build system.
        Running cmake...
        Compiling...
100% Unable to update libdbusmenu-qt! at /usr/local/test/bin/../share/apps/kdesrc-build/modules/ksb/Updater/Bzr.pm line 54.
        ksb::Updater::Bzr::updateInternal(ksb::Updater::Bzr=HASH(0x29fe358), ksb::IPC::Pipe=HASH(0x29f1038)) called at /usr/local/test/bin/../share/apps/kdesrc-build/modules/ksb/Module.pm line 764
        eval {...} called at /usr/local/test/bin/../share/apps/kdesrc-build/modules/ksb/Module.pm line 764
        ksb::Module::update(ksb::Module=HASH(0x230f950), ksb::IPC::Pipe=HASH(0x29f1038), ksb::BuildContext=HASH(0x11a71a0)) called at /usr/local/test/bin/../share/apps/kdesrc-build/modules/ksb/Application.pm line 1566
        ksb::Application::_handle_updates(ksb::IPC::Pipe=HASH(0x29f1038), ksb::BuildContext=HASH(0x11a71a0)) called at /usr/local/test/bin/../share/apps/kdesrc-build/modules/ksb/Application.pm line 1830
        ksb::Application::_handle_async_build(ksb::IPC::Pipe=HASH(0x29f1068), ksb::BuildContext=HASH(0x11a71a0)) called at /usr/local/test/bin/../share/apps/kdesrc-build/modules/ksb/Application.pm line 819
        ksb::Application::runAllModulePhases(ksb::Application=HASH(0x11b5cb0)) called at /usr/local/test/bin/kdesrc-build line 234
        eval {...} called at /usr/local/test/bin/kdesrc-build line 220
Error updating libdbusmenu-qt, removing from list of packages to build.
 > 1

        Unable to build ktp-kded-module!
        Took 35 seconds.
        Overall time for ktp-kded-module was 47 seconds.

Building libdbusmenu-qt (build system KDE) (2/2)
        Unable to update libdbusmenu-qt, build canceled.

 
Removing 4 out of 11 old log directories...

<<<  PACKAGES FAILED TO UPDATE  >>>
libdbusmenu-qt - ~/kf5/src/log/2015-01-05-07/libdbusmenu-qt/error.log

<<<  PACKAGES FAILED TO BUILD  >>>
ktp-kded-module - ~/kf5/src/log/2015-01-05-07/ktp-kded-module/build.log

The following modules have failed to build 3 or more times in a row:
        ktp-kded-module
        libdbusmenu-qt

There is probably a local error causing this kind of consistent failure, it
is recommended to verify no issues on the system.

:-(
Your logs are saved in /home/rahul/kf5/src/log/2015-01-05-07


Expected Results:  
Both of the packages are supposed to build and install successfully.

Operating System: Fedora 21
Qt Version: 5.4.1 (locally built from source)
cmake version 3.1.20141218-gcd7bd
kdesrc-build version: 1.16-pre2
gcc version 4.9.2 20141101
Comment 1 Michael Pyne 2015-02-27 02:15:45 UTC
There an awful lot of dependencies of ktp-kded-module not being built. kdesrc-build will soon gain support for automatically including those dependencies in its build process as well, but that would be the first thing I try.

As for libdbusmenu-qt, the error message you pasted for that indicates that bzr (the source code manager for libdbusmenu-qt) is itself experiencing some sort of internal error. I'd recommend deleting the source directory for libdbusmenu-qt (/home/rahul/kf5/src/libdbusmenu-qt/) and letting kdesrc-build try again. Of course, DON'T DO THIS if you using that source directory for anything significant (e.g. patches you're developing).

Either way, neither of these are bugs in kdesrc-build itself, even when it works perfectly sometimes the source just won't build. :) If you need more help I'd recommend the KDE forums (forums.kde.org), the kde-devel mailing list, or even the #kde IRC chat room on Freenode IRC.
Comment 2 Rahul Chowdhury 2015-02-27 05:31:37 UTC
(In reply to Michael Pyne from comment #1)
> There an awful lot of dependencies of ktp-kded-module not being built.
> kdesrc-build will soon gain support for automatically including those
> dependencies in its build process as well, but that would be the first thing
> I try.
> 
> As for libdbusmenu-qt, the error message you pasted for that indicates that
> bzr (the source code manager for libdbusmenu-qt) is itself experiencing some
> sort of internal error. I'd recommend deleting the source directory for
> libdbusmenu-qt (/home/rahul/kf5/src/libdbusmenu-qt/) and letting
> kdesrc-build try again. Of course, DON'T DO THIS if you using that source
> directory for anything significant (e.g. patches you're developing).
> 
> Either way, neither of these are bugs in kdesrc-build itself, even when it
> works perfectly sometimes the source just won't build. :) If you need more
> help I'd recommend the KDE forums (forums.kde.org), the kde-devel mailing
> list, or even the #kde IRC chat room on Freenode IRC.

Okay. Thanks :)