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.

Reply via email to