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

Bug 913845

Summary: dev-util/kdevelop-23.04.3: fails to build with clang 16 (duchain/cursorkindtraits.h:217:7: error: integer value -1 is outside the valid range of values [0, 255] for this enumeration type [-Wenum-constexpr-conversion])
Product: Gentoo Linux Reporter: Neko-san <gentoo.qxrin>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED UPSTREAM    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=471995
Whiteboard: fixed in 23.08.0
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: LLVM Emerge Info and Emerge Build Log
LLVM Emerge Info and Emerge Build Log

Description Neko-san 2023-09-07 23:27:08 UTC
Created attachment 870063 [details]
LLVM Emerge Info and Emerge Build Log

Kdevelop fails to build with the LLVM-OpenRC profile with this error in cursorkindtraits.h:

error: integer value -1 is outside the valid range of values [0, 255] for this enumeration type
Comment 1 Neko-san 2023-09-07 23:57:08 UTC
Created attachment 870066 [details]
LLVM Emerge Info and Emerge Build Log

Had to re-upload because I noticed the text got corrupted somehow
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-08 00:00:05 UTC
Going forward (no need to this time), please paste emerge --info in a comment, but attach the build.log (no need for a tarball). It's easier for us to handle then.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-08 00:01:58 UTC
In file included from /var/tmp/portage/dev-util/kdevelop-23.04.3/work/kdevelop-23.04.3/plugins/clang/codecompletion/completionhelper.cpp:9:
/var/tmp/portage/dev-util/kdevelop-23.04.3/work/kdevelop-23.04.3/plugins/clang/codecompletion/../duchain/cursorkindtraits.h:217:7: error: integer value -1 is outside the valid range of values [0, 255] for this enumeration type [-Wenum-constexpr-conversion]
    : static_cast<IntegralType::CommonIntegralTypes>(-1);
      ^
2 warnings and 1 error generated.
Comment 4 Neko-san 2023-09-08 00:03:07 UTC
Even without the emerge info, the log was MBs, so I was under the impression it needed to be compressed to fit the file limit?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-08 00:08:19 UTC
(In reply to Neko-san from comment #4)
> Even without the emerge info, the log was MBs, so I was under the impression
> it needed to be compressed to fit the file limit?

You should be able to attach the compressed log by itself if needed, no need to jam emerge --info in.
Comment 7 Neko-san 2023-09-08 00:21:58 UTC
Yeah, that patch makes it complete the build
Comment 8 Andreas Sturmlechner gentoo-dev 2023-09-09 18:20:45 UTC
Nothing to do for us then, thanks.