-
-
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
libclang_rt.asan-aarch64-android.so is missing. #2403
Comments
You can compile libcompiler_rt on device which should give you the needed library. |
Sounds good, but it would be even better if clang was distributed with the library so people wouldn't have to compile it on their own. After all, it is part of the compiler. :) |
I ran into the same problem too, and added theses lines to the libllvm build script. If this is something you guys want to upstream I can make a pull request.
|
@pd0wm assuming that |
If anyone is going to add it, please add it as a separate package. |
I already have a build script for it as a separate package. I made the lib available on my repo if anyone wants to test etc... |
Which repo are you talking about? Does this include the undefined behaviour sanitizer? |
I've tried compiling
Note: I'm using a legacy Termux environment. Edit: Compiling,
with
Did produce an error:
This confirms that |
I'm trying to compile something inside termux that uses clang's AddressSanitizer.
This is how to reproduce my issue (there might be shorter ways, but this works):
When linking it fails with:
It would be nice to have this ASAN library because the resulting binaries catch many of the same errors as valgrind does, but the program consumes less resources when run (because all instructions are not emulated, it is just a subset that are instrumented). Besides running the same program in valgrind like this, results in lots of irrelevant warnings:
I'm open to testing a pre-release version of a compiled version of this library if it helps you in any way. Oh, and thanks for putting effort into termux, I just started using it. :)
The text was updated successfully, but these errors were encountered: