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
Status: UNCONFIRMED
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: systemwide-libcxx
  Show dependency tree
 
Reported: 2022-04-28 06:48 UTC by Manuel Nickschas
Modified: 2022-04-28 15:49 UTC (History)
1 user (show)

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


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

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 
/usr/lib/ccache/bin/clang++ -DHAVE_KIO -DKCOREADDONS_LIB -DKDECONNECT_BLUETOOTH -DQT_BLUETOOTH_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DTRANSLATION_DOM
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
/kdeconnect-kde-22.04.0/core/backends/bluetooth/bluetoothdevicelink.cpp
/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
3. PROFIT
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?