Summary: | kde-apps/kleopatra-22.12.3: Fails to build with clang 16 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Manuel Nickschas <sputnick> |
Component: | Current packages | Assignee: | 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 |
Created attachment 859269 [details]
emerge --info
Sam, is there actually anything to do for kde proj here? 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.) |
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.