Widespread error: implicit conversion loses integer precision: '__u64' (aka 'unsigned long long') to '__u32' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]" subsys=datapath-loader
when compiling with Clang 19
#35162
Labels
area/llvm
Requires upstream work in LLVM.
kind/community-report
This was reported by a user in the Cilium community, eg via Slack.
kind/enhancement
This would improve or streamline existing functionality.
sig/datapath
Impacts bpf/ or low-level forwarding details, including map management and monitor messages.
Is there an existing issue for this?
Version
equal or higher than v1.16.0 and lower than v1.17.0
What happened?
Clang 19 introduced:
which causes the current code to fail compilation with the flags currently in use.
How can we reproduce the issue?
Run tests on a system with Clang 19 installed, such as running
make -C bpf/tests all
, but this also affects unit tests like:Cilium Version
1.16.2
Kernel Version
N/A
Kubernetes Version
N/a
Regression
No response
Sysdump
No response
Relevant log output
No response
Anything else?
Regardless how we handle this, we should publish the "highest tested" clang version, instead of a broad "clang LLVM >= 10.0".
Cilium Users Document
Code of Conduct
The text was updated successfully, but these errors were encountered: