-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
valgrind: fix building with llvm #329995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
valgrind: fix building with llvm #329995
Conversation
New issue found with x86_64, works on aarch64 though:
|
5979f31
to
414a45d
Compare
64c07c2
to
69e7ad1
Compare
Now valgrind is failing because of this:
|
69e7ad1
to
64b61ce
Compare
This PR now builds again. |
Sorry about the conflict with the other PR @RossComputerGuy. do you think we could instead add a |
Yeah, having the ability to turn off sanitizers or having a |
@RossComputerGuy Yeah I would prefer to always building the sanitizers in a separate derivation. Ideally that would not be another compiler-rt but just be the santizers, linking compiler-rt/libc/etc. as needed, but that may require some LLVM-side CMake work to do well. |
How exactly would that look like? Would we have a |
@RossComputerGuy See https://github.com/llvm/llvm-project/blob/0edafc461f5f98b2ed5d2d621e1d9de70ccbd4e5/compiler-rt/CMakeLists.txt#L42-L64 We can enable/disable things fairly independently. Perhaps easier than I thought. (What I would like to advocate they do however is break the stuff into proper separate packages that can be built together with the stuff that libc++ libc++abi and libunwind use, rather than one mega-package that we can split up with enable/disable flags.) |
@Ericson2314 So based on your previous comments, is there anything blocking this PR or what should we do exactly? I would like to see this PR come in so Mesa can build under LLVM. |
64b61ce
to
ec5f27d
Compare
ec5f27d
to
52ee4b6
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/5395 |
52ee4b6
to
748fab9
Compare
Updating this PR, for whatever reason resetting back to 52ee4b6 doesn't work. |
Fixed now |
Description of changes
Discovered in https://github.com/RossComputerGuy/nixpkgs-llvm-ws/runs/27931320260
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.