Ji, Zhenlong Z via llvm-dev
2017-Mar-21 08:48 UTC
[llvm-dev] why there is no libclang_rt.asan-x86_64-android.so
Hi all, I want to do fuzzing test on Intel x86_64 platform, however I cannot find the shared library for libclang_rt.asan-x86_64-android.so, can anyone tell me where I can find this library? Best Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170321/36eda3f1/attachment.html>
Kostya Serebryany via llvm-dev
2017-Mar-21 20:21 UTC
[llvm-dev] why there is no libclang_rt.asan-x86_64-android.so
+eugenis@ On Tue, Mar 21, 2017 at 1:48 AM, Ji, Zhenlong Z via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hi all, > > I want to do fuzzing test on Intel x86_64 platform, > however I cannot find the shared library for libclang_rt.asan-x86_64- > android.so, can anyone tell me where I can find this library? > > > > Best Regards > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170321/f25699b3/attachment.html>
Evgenii Stepanov via llvm-dev
2017-Mar-22 20:53 UTC
[llvm-dev] why there is no libclang_rt.asan-x86_64-android.so
Compiler-rt libraries for android are not built automatically because they need a target toolchain and a sysroot. The usual approach is 1. Build standalone ndk toolchain 2. Configure a build tree for compiler-rt with freshly built clang as the compiler, -B and --sysroot in CMAKE_C_FLAGS and CMAKE_CXX_FLAGS pointing to the ndk toolchain. Optionally, -DCOMPILER_RT_OUTPUT_DIR=$LLVMBIN/../lib/clang/5.0.0 would put the new library directly where clang can find it. 3. ninja asan in the compiler-rt tree Having said that, this configuration (x86_64 android) is completely untested, but I've just checked that it at least builds. On Tue, Mar 21, 2017 at 1:21 PM, Kostya Serebryany <kcc at google.com> wrote:> +eugenis@ > > On Tue, Mar 21, 2017 at 1:48 AM, Ji, Zhenlong Z via llvm-dev > <llvm-dev at lists.llvm.org> wrote: >> >> Hi all, >> >> I want to do fuzzing test on Intel x86_64 platform, >> however I cannot find the shared library for >> libclang_rt.asan-x86_64-android.so, can anyone tell me where I can find this >> library? >> >> >> >> Best Regards >> >> >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> >