Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 903576

Summary: kde-apps/kleopatra-22.12.3: Fails to build with clang 16
Product: Gentoo Linux Reporter: Manuel Nickschas <sputnick>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: llvm, qt, sam
Priority: Normal Keywords: UPSTREAM
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugreports.qt.io/browse/QTBUG-117517
See Also: https://github.com/llvm/llvm-project/issues/62686
https://bugs.kde.org/show_bug.cgi?id=472056
https://bugs.gentoo.org/show_bug.cgi?id=895516
https://bugs.gentoo.org/show_bug.cgi?id=903574
https://invent.kde.org/pim/kleopatra/-/merge_requests/103
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: build.log
emerge --info

Description Manuel Nickschas 2023-03-30 12:31:45 UTC
Created attachment 859268 [details]
build.log

Package fails to build with Clang 16 due to -Wenum-constexpr-conversion. Compiles fine with Clang 15, so this is a regression with the new compiler version.

/var/tmp/portage/kde-apps/kleopatra-22.12.3/work/kleopatra-22.12.3/src/accessibility/accessiblevaluelabel.cpp:21:48: error: integer value 65536 is outside the valid range of values [0, 65535] for this enumeration type [-Wenum-constexpr-conversion]
static constexpr QAccessible::Role ValueRole = static_cast<QAccessible::Role>(QAccessible::UserRole + 1);
                                               ^
1 error generated.
Comment 1 Manuel Nickschas 2023-03-30 12:32:02 UTC
Created attachment 859269 [details]
emerge --info
Comment 2 Andreas Sturmlechner gentoo-dev 2023-07-25 12:59:43 UTC
Sam, is there actually anything to do for kde proj here?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-26 04:18:48 UTC
This ended up being a complete mess.

It turns out (to the limits of my (weak) C++ knowledge) that Clang was/is in the right here. This gets worse b/c of the fact that Clang 17 will make this fatal with no way to opt-out.

Manuel, if you can still reproduce this w/ latest Qt + KDE stack, can you report this upstream please? (I think to Kleopatra, but it might end up needing to go to Qt.)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-26 04:41:42 UTC
Ah, https://bugs.kde.org/show_bug.cgi?id=472056.
Comment 5 Andreas Sturmlechner gentoo-dev 2024-02-17 19:43:49 UTC
https://invent.kde.org/pim/kleopatra/-/commit/33f8d5247316beaada224fd7ba4ec93feedbfd8d

Please test 23.08.5.