Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 624354 - dev-util/cmake-3.9.0_rc5: KF5 packages fail to link: multiple definition of `OrgFreedesktop*Interface::metaObject() const'
Summary: dev-util/cmake-3.9.0_rc5: KF5 packages fail to link: multiple definition of `...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-09 08:46 UTC by Dainius Masiliūnas
Modified: 2017-08-13 22:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
knotifications-5.34.0 build.log (file_624354.txt,101.82 KB, text/plain)
2017-07-09 08:46 UTC, Dainius Masiliūnas
Details
kdbusaddons-5.35.0 build.log (file_624354.txt,64.60 KB, text/plain)
2017-07-09 08:47 UTC, Dainius Masiliūnas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dainius Masiliūnas 2017-07-09 08:46:17 UTC
Created attachment 482660 [details]
knotifications-5.34.0 build.log

Attempting to emerge KF5 packages, such as kdbusaddons or knotifications, against Qt 5.7.1 results in linking errors, such as:

CMakeFiles/KF5Notifications.dir/KF5Notifications_autogen/mocs_compilation.cpp.o: In function `OrgFreedesktopNotificationsInterface::metaObject() const':
mocs_compilation.cpp:(.text+0x150): multiple definition of `OrgFreedesktopNotificationsInterface::metaObject() const'

CMakeFiles/KF5DBusAddons.dir/KF5DBusAddons_autogen/mocs_compilation.cpp.o: In function `OrgFreedesktopApplicationInterface::metaObject() const':
mocs_compilation.cpp:(.text+0x40): multiple definition of `OrgFreedesktopApplicationInterface::metaObject() const'

Same errors when emerging 5.34.0 and 5.35.0. Logs attached.

I am also using CMake 3.9.0_rc5 due to bug #426936. Not sure if this could be caused by the newer CMake version, though.
Comment 1 Dainius Masiliūnas 2017-07-09 08:47:02 UTC
Created attachment 482662 [details]
kdbusaddons-5.35.0 build.log
Comment 2 Michael Palimaka (kensington) gentoo-dev 2017-07-09 14:25:40 UTC
Which version of binutils is active? If it's 2.28, can you try building again with an earlier version active and see if the error persists?
Comment 3 Dainius Masiliūnas 2017-07-09 18:31:35 UTC
The culprit was CMake. CMake 3.8 works fine, whereas 3.9 seems to result in this problem.

This has nothing to do with binutils or Qt. It might also have nothing to do with KF5, apart from it being a major user of CMake.

It would be nice if someone could confirm whether this also happens on amd64. Probably so, considering that CMake 3.9 is hardmasked at the moment.
Comment 4 Andreas Sturmlechner gentoo-dev 2017-08-13 22:21:10 UTC
KDE Frameworks 5.37.0 is now in tree and I could not find a single build failure with cmake-3.9.1.