Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 841416 - kde-misc/kdeconnect-22.04.0 fails to compile with clang/libcxx
Summary: kde-misc/kdeconnect-22.04.0 fails to compile with clang/libcxx
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
Keywords: PullRequest, UPSTREAM
Depends on:
Blocks: systemwide-libcxx
  Show dependency tree
Reported: 2022-04-28 06:48 UTC by Manuel Nickschas
Modified: 2023-06-08 11:43 UTC (History)
1 user (show)

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

Build log (build.log,157.47 KB, text/plain)
2022-04-28 06:48 UTC, Manuel Nickschas
emerge info (,18.33 KB, text/plain)
2022-04-28 06:49 UTC, Manuel Nickschas

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Nickschas 2022-04-28 06:48:13 UTC
kde-misc/kdeconnect fails to compile with a full clang/libcxx toolchain:

FAILED: core/CMakeFiles/kdeconnectcore.dir/backends/bluetooth/bluetoothdevicelink.cpp.o 
AIN=\"kdeconnect-core\" -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -Dkdeconnectcore_EXPORTS -I/var/tmp/portage/kde-misc/kdeconnect-22.04.0/work/kdeconnect-kde-22.04.0_build/core -I/var/tmp/portage/kde-misc/kdeconnect-22.04.0/work/kdeconnect-kde-22.04.0
/core -I/var/tmp/portage/kde-misc/kdeconnect-22.04.0/work/kdeconnect-kde-22.04.0_build/core/kdeconnectcore_autogen/include -I/var/tmp/portage/kde-misc/kdeconnect-22.04.0/work/kdeconnect-kde-22.04.0 -isystem /usr/include/qt5 -isystem /usr/include
/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-clang -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5 -isystem /usr/include/Qca-qt5/QtCrypto -isystem /usr/include/qt5/QtDBus -isystem /usr/inc
lude/KF5/KI18n -isystem /usr/include/KF5/KConfig -isystem /usr/include/KF5/KConfigCore -isystem /usr/include/KF5/KIOCore -isystem /usr/include/KF5/KIO -isystem /usr/include/KF5/KService -isystem /usr/include/qt5/QtBluetooth  -DQT_NO_DEBUG -O3 -m
arch=native -mtune=native -pipe -fomit-frame-pointer -fno-operator-names -fno-exceptions -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-d
tor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -fdiagnostics-color=always -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -std=gnu++17 -MD -MT core/CMakeFiles/kdeconnectcore.dir/backends/bluetooth/bl
uetoothdevicelink.cpp.o -MF core/CMakeFiles/kdeconnectcore.dir/backends/bluetooth/bluetoothdevicelink.cpp.o.d -o core/CMakeFiles/kdeconnectcore.dir/backends/bluetooth/bluetoothdevicelink.cpp.o -c /var/tmp/portage/kde-misc/kdeconnect-22.04.0/work
/var/tmp/portage/kde-misc/kdeconnect-22.04.0/work/kdeconnect-kde-22.04.0/core/backends/bluetooth/bluetoothdevicelink.cpp:95:12: error: chosen constructor is explicit in copy-initialization
    return {}; // TODO Not sure what to do here. For LanDeviceLink we use the SSL connection's certificate, but we don't have that here
/usr/include/qt5/QtNetwork/qsslcertificate.h:95:14: note: explicit constructor declared here
    explicit QSslCertificate(const QByteArray &data = QByteArray(), QSsl::EncodingFormat format = QSsl::Pem);
1 error generated.

Reproducible: Always

Steps to Reproduce:
1. Switch to Clang/libc++/lld toolchain for whole system
2. Try building kdeconnect
Actual Results:  
Build failure due to compiler error

Expected Results:  
kdeconnect should build with Clang
Comment 1 Manuel Nickschas 2022-04-28 06:48:52 UTC
Created attachment 775092 [details]
Build log
Comment 2 Manuel Nickschas 2022-04-28 06:49:11 UTC
Created attachment 775095 [details]
emerge info
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-28 15:49:03 UTC
Could you report this upstream on KDE's Bugzilla?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-09 02:52:05 UTC
(In reply to Sam James from comment #3)
> Could you report this upstream on KDE's Bugzilla?

Reported as
Comment 5 Manuel Nickschas 2022-09-15 10:48:09 UTC
Ah crap, I had completely forgotten about this. Thanks for following up and reporting the issue, Sam!
Comment 6 Andreas Sturmlechner gentoo-dev 2023-03-23 16:28:26 UTC
What about 22.12.3?
Comment 7 Manuel Nickschas 2023-03-24 09:12:58 UTC
Still broken with both clang-15 and clang-16.
Comment 8 Lunarequest 2023-06-07 16:53:09 UTC
This has been fixed upstream
Comment 9 Larry the Git Cow gentoo-dev 2023-06-08 11:43:32 UTC
The bug has been closed via the following commit(s):

commit 2a0b7a7f7698823ddf3e67ebfc0d7d372fa73334
Author:     Luna <>
AuthorDate: 2023-06-08 07:07:45 +0000
Commit:     Andreas Sturmlechner <>
CommitDate: 2023-06-08 11:35:19 +0000

    kde-misc/kdeconnect: Fix builds using clang
    clang is more strict for syntax then gcc hence it was not possible to
    build kdeconnect with clang. This adds a patch from upstream that
    corrects this by explictly using the constructer as it should have in
    the first place.
    Signed-off-by: Luna <>
    Signed-off-by: Andreas Sturmlechner <>

 ...-explicit-constructor-for-QSslCertificate.patch | 35 ++++++++++++++++++++++
 kde-misc/kdeconnect/kdeconnect-23.04.1.ebuild      |  1 +
 2 files changed, 36 insertions(+)