-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
[OpenMP] asan doesn't work when offload to host #75651
Comments
It works in the llvm shipped by rocm 6.0. |
Can you provide the output with |
|
You build compiler-rt, I assume? |
Probably a bug in the LinkerWrapper. There's |
yes. I always enable compiler-rt. Works without offload. |
Summary: The CPU target currently inherits all the libraries from the normal link job to ensure that it has access to the same envrionment that the host does. However, this previously was not respecting argument libraries that are passed by name rather than `-l` as well as the whole archive flags. This patch fixes this to allow the CPU linker to correctly pick up the libraries associated with things like address sanitizers. Fixes: llvm#75651
Still doesn't fullly work on my side. Now I got.
Any idea? |
It worked when I tried compiling, but I ended up with some weird bug about |
Current output.
|
Not merged yet. |
…#75757) Summary: The CPU target currently inherits all the libraries from the normal link job to ensure that it has access to the same envrionment that the host does. However, this previously was not respecting argument libraries that are passed by name rather than `-l` as well as the whole archive flags. This patch fixes this to allow the CPU linker to correctly pick up the libraries associated with things like address sanitizers. Fixes: llvm/llvm-project#75651
Currently app doesn't link when OpenMP offload to host and address sanitizer are both turned on.
main.cpp
The text was updated successfully, but these errors were encountered: