https://bugs.kde.org/show_bug.cgi?id=514291
Bug ID: 514291
Summary: kdeconnect-25.08.3 and kmymoney-5.2.1 won't compile
with Clang due to invalid constexpr in
/usr/include/qt6/QtCore/qlist.h
Classification: I don't know
Product: kde
Version First unspecified
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
When updating my Gentoo system, both kdeconnect and kmymoney failed to compile
with Clang, with the message:
/usr/include/qt6/QtCore/qlist.h:449:26: error: constexpr variable
'MaxSize' must be initialized by a constant expression
constexpr size_t MaxSize = maxSize();
They compile OK with gcc.
I appreciate this is not a failure in either kdeconnect or kmymoney, but I'm
not sure how or where to report it.
I raised it on Gentoo (https://bugs.gentoo.org/968397), but they said
"upstream", which seems fair.
I would raise it with Qt, but I get the impression they only support paying
customers.
I also appreciate that this is down to Clang being more restrictive than gcc,
and most people don't compile KDE apps with Clang. But I thought somebody
should be told!
STEPS TO REPRODUCE
1. Wipe your Ubuntu/RedHat/Linux from Scratch system
2. Install Gentoo
3. Configure /etc/portage/make.conf to use clang in preference to gcc
4. emerge kdeconnect
:-)
OBSERVED RESULT
Failed emerge of kdeconnect, with the above messages in build.log
EXPECTED RESULT
Installation of kdeconnect
SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma:
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1
Clang version 21.1.8
ADDITIONAL INFORMATION
--
You are receiving this mail because:
You are watching all bug changes.