suppress verbose --target mismatch warning#2315
Conversation
e18d750 to
b715934
Compare
|
To be clear, I don't think it's correct to ignore the warning, and this is meant as a temporary workaround so that one can actually read the output of the compiler until we have a better solution. All tests are passing. |
|
Interesting. Do we know where |
|
I don't know the answer, but some interesting things to look at are: $ git clone git@github.com:llvm/llvm-project && cd llvm-project
$ grep -rn -- '-elf' include/ lib/
$ grep -rn -- '-elf' test/ unittests/$ git clone https://git.savannah.gnu.org/git/config.git && cd config
$ grep -rn -- '-elf' |
|
The warning itself comes from I wonder how this behaves on |
|
While looking into some llvmPackages_19 warnings I stumbled across this: llvm/llvm-project#150147 (comment). Could there be a relationship here? If we need PIE (do we?), |
|
For reference, this is where the warning is coming from: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/cc-wrapper/add-clang-cc-cflags-before.sh#L29 |
|
Thanks. Do you know if there's a place where I can filter for conflicts on Github so they're quicker to spot, or perhaps subscribe to them? The conflict actually makes the implementation for this a bit nicer: we won't need a different implementation for the tests. |
b715934 to
e643caf
Compare
|
Fixed and tested. @MagnusS |
MagnusS
left a comment
There was a problem hiding this comment.
I think it's fine to suppress this warning for now as we've relied on this functionality for a while. The warning appeared when we upgraded to 25.05. In the longer term we should consider changing the build to avoid this though -- it would be useful with an issue to track this
|
Agreed. I can open one. |
nixpkgs/pkgs/build-support/cc-wrapper/add-clang-cc-cflags-before.shhas a flag to suppress the rather annoying (albeit correct) warning:This adds an option (enabled by default across the board) to suppress this. Because of how
example/is built, I had to implement it two places (ideally I'd inherit it inexample.nix, which is only used as a test currently... maybe we should change that).