loader: Add -Wno-unused-command-line-argument on compiler tests.#43299
Merged
julianwiedmann merged 1 commit intocilium:mainfrom Jan 18, 2026
Merged
loader: Add -Wno-unused-command-line-argument on compiler tests.#43299julianwiedmann merged 1 commit intocilium:mainfrom
julianwiedmann merged 1 commit intocilium:mainfrom
Conversation
When upgrading from Rocky Linux 9.6 to 9.7, the distributed LLVM toolchain was jumped from 19.1 to 20.1. Since then, the datapath compiler test has failed with the following message for both bpf_lxc.c and bpf_host.c: clang: error: argument unused during compilation: '-c' [-Werror,-Wunused-command-line-argument] This is also true for Ubuntu 25.10 which also ships with LLVM 20.1, and goes away if downgraded back to 19.1. This commit adds the -Wno-unused-command-line-argument flag to the test to suppress this fault, which is only observed when running privileged tests. It does not appear when running Cilium and running a workload. No functional change. Signed-off-by: Alasdair McWilliam <alasdair.mcwilliam@isovalent.com>
Member
Author
|
/test |
Contributor
|
Any idead why -c is now unused? |
Member
Author
No, I did some digging but couldn't find anything that stood out to me.
At this point I tested the downgrade on Ubuntu back to LLVM 19.1 and the issue went away. Unfortunately you can't do this on Rocky 9.7 because they've built some other components that now depend on LLVM 20.1 and it causes conflicts. At this point I cut my losses and this PR appeared... :D |
rgo3
approved these changes
Dec 17, 2025
|
This pull request has been automatically marked as stale because it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When upgrading from Rocky Linux 9.6 to 9.7, the distributed LLVM toolchain was jumped from 19.1 to 20.1. Since then, the datapath compiler test has failed with the following message for both bpf_lxc.c and bpf_host.c:
This is also true for Ubuntu 25.10 which also ships with LLVM 20.1, and goes away if downgraded back to 19.1.
This commit adds the -Wno-unused-command-line-argument flag to the test to suppress this fault, which is only observed when running privileged tests. It does not appear when running Cilium and running a workload.
No functional change.