-
-
Notifications
You must be signed in to change notification settings - Fork 13.4k
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
clang 32 bit with address sanitizer missing libclang_rt.lsan-i386.a #201199
Comments
In my case I can make it work with a recent enough clang (tried with 13 and 14… do you actually mean that it should work even with clang 10?), and for the 32 bits I just use
Commands:
|
Argh, in fact I should have disabled the optimization first. With
To maximize reproducibility I made a flake here (see readme for instructions). @Mrogovp Is the bug related to the fact that clang 10 does not work, or is it fine to use clang 12/13/14… (on clang 11 we get an error when starting the binary) |
Thanks for your reply, |
Ok makes sense then. Note that the 64bit version does not suffer from the same issue: it does compile but then it's impossible to run the binary:
|
Describe the bug
clang 10 for 32bit doesn't support address sanitizer.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
Build should work
Metadata
"x86_64-linux"
Linux 5.10.102.1-microsoft-standard-WSL2, Ubuntu, 20.04.4 LTS (Focal Fossa), nobuild
no
yes
nix-env (Nix) 2.10.3
"nixpkgs"
/home/michael/.nix-defexpr/channels/nixpkgs
The text was updated successfully, but these errors were encountered: