Hi,

check if the build file under prebuilts/clang/host/linux-x86 mentions
libclang_rt.asan-i686-android.so
It might have not been there yet. If that's the case, you can try to
engage in software archaeology and figure out how to build the missing
library at the matching version (it needs to be more or less in sync
with clang), but that's a long story. The short answer is: Android N
is probably too old and does not support asan/x86.

On Wed, Feb 6, 2019 at 6:12 AM Harinath Maddela
<[email protected]> wrote:
>
> Hi,
>
> I'm working on AOSP, Android-N code for x86 platform.
> I would like to integrate Address Sanitizer(ASan) into this. When i tried to 
> follow the steps mentioned in Developers forum in Sanitizing shared libraries 
> with ASan(by adding LOCAL_SANITIZE:=address in Android.mk), i get some build 
> errors as follows
>
> ninja: error: 
> 'out/target/product/x86/obj/STATIC_LIBRARIES/libasan_intermediates/export_includes',
>  needed by 'out/target/product/x86/obj/EXECUTABLES/templib/import_includes', 
> missing and no known rule to make it
>
> So i tried to follow the section, SANITIZE_TARGET, by following command
>
> $ SANITIZE_TARGET=address make -j42
>
> Still i get similar errors. I have seen some forums where it was suggested to 
> build ASan individually by using mm command, but still similar errors were 
> observed
>
> ninja: error: 
> 'out/target/product/x86/obj_x86/SHARED_LIBRARIES/libclang_rt.asan-i686-android_intermediates/export_includes',
>  needed by 
> 'out/target/product/x86/obj_x86/EXECUTABLES/asan_test_intermediates/import_includes',
>  missing and no known rule to make it
>
> I tried building libasan from the android source with command
> $ make libasan
> I got the libasan_intermediates for host, but not for target, even the 
> makefile mentions that these are generated for host.
>
> Can anyone please suggest me how to build the asan for target. Thanks in 
> advance.
>
> Thanks,
> Harinath
>
> --
> You received this message because you are subscribed to the Google Groups 
> "address-sanitizer" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to