Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 366 by [email protected]: x86 android: no static intermediates
https://code.google.com/p/address-sanitizer/issues/detail?id=366

What steps will reproduce the problem?
1. Checkout KitKat with:
repo init -u https://android.googlesource.com/platform/manifest -b android-4.4.2_r1
repo sync

2. Apply patch to enable asan for stagefright binary (it lives inside frameworks/av/)

diff --git a/cmds/stagefright/Android.mk b/cmds/stagefright/Android.mk
index 561ce02..0721037 100644
--- a/cmds/stagefright/Android.mk
+++ b/cmds/stagefright/Android.mk
@@ -22,6 +22,7 @@ LOCAL_CFLAGS += -Wno-multichar
 LOCAL_MODULE_TAGS := optional

 LOCAL_MODULE:= stagefright
+LOCAL_ADDRESS_SANITIZER:=true

 include $(BUILD_EXECUTABLE)

3. Build for arm:
source build/envsetup.sh
lunch aosp_arm-eng
cd frameworks/av/cmds/stagefright
mm

It will succeed.

4. Now, build for x86:
source build/envsetup.sh
lunch aosp_x86-eng
cd frameworks/av/cmds/stagefright
mm

This will fail with the following error:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=aosp_x86
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=x86
TARGET_ARCH_VARIANT=x86
TARGET_CPU_VARIANT=
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-43-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=out
============================================
make: Entering directory `/usr/local/google/home/krasin/klp-mr1-release'
make: *** No rule to make target `out/target/product/generic_x86/obj/STATIC_LIBRARIES/libasan_intermediates/export_includes', needed by `out /target/product/generic_x86/obj/EXECUTABLES/stagefright_intermediates/import_includes'. Stop.



--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
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