Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913845 - 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])
Summary: dev-util/kdevelop-23.04.3: fails to build with clang 16 (duchain/cursorkindtr...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard: fixed in 23.08.0
Keywords: PATCH
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-09-07 23:27 UTC by Neko-san
Modified: 2023-09-09 18:20 UTC (History)
0 users

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


Attachments
LLVM Emerge Info and Emerge Build Log (LLVM Emerge Info and Emerge Build.tar.gz,286 bytes, application/gzip)
2023-09-07 23:27 UTC, Neko-san
Details
LLVM Emerge Info and Emerge Build Log (LLVM Emerge Info and Emerge Build Log.tar.gz,113.08 KB, application/gzip)
2023-09-07 23:57 UTC, Neko-san
Details

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