-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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's thread sanitizer (part of libcompiler-rt) does not seem to work #5853
Comments
I don't know solution and know one has answered so may time to upgrade clang-11 is released. |
try linking against libm so |
This comment has been minimized.
This comment has been minimized.
clang seems to now incorrectly try linking to shared library
Probably some problem due to we just changed the default linker to ld.lld ? |
@buttaface do you have any guess why it looks for libclang_rt.tsan-aarch64-android.so as in above comment? |
It's probably required to actually use the thread sanitizer, which is not implemented for Android yet, android/ndk#1041. This has nothing to do with lld, as clang chooses the libraries to link against. I guess this never worked before, but might once they finish that work upstream. |
Aha, closing this then since it is not really a bug with our clang |
Problem description
Compiling a minimal c file on aarch64 or x86_64 with
-fsanitize=thread
does not work (arm and i686 do not support-fsanitize=thread
).Steps to reproduce
test.c:
Compile with
clang -fsanitize=thread test.c -o test $PREFIX/lib/clang/10.0.1/lib/android/libclang_rt.tsan-aarch64-android.a
givesExpected behavior
It should compile without errors about missing symbols.
Additional information
The text was updated successfully, but these errors were encountered: