Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903576 - kde-apps/kleopatra-22.12.3: Fails to build with clang 16
Summary: kde-apps/kleopatra-22.12.3: Fails to build with clang 16
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://bugreports.qt.io/browse/QTBUG...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-03-30 12:31 UTC by Manuel Nickschas
Modified: 2024-02-17 19:43 UTC (History)
3 users (show)

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


Attachments
build.log (build.log.gz,11.25 KB, application/gzip)
2023-03-30 12:31 UTC, Manuel Nickschas
Details
emerge --info (emerge.info.gz,7.21 KB, application/gzip)
2023-03-30 12:32 UTC, Manuel Nickschas
Details

Note You need to log in before you can comment on or make changes to this bug.
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.