LOCAL_FILTER_ASM with CLANG issue

50 views
Skip to first unread message

robinh00d...@gmail.com

unread,
Jul 12, 2017, 10:10:24 AM7/12/17
to android-ndk
when i set LOCAL_FILTER_ASM := cp option in Android.mk and set NDK_TOOLCHAIN_VERSION := clang in Application.mk, it make errors like this:
./obj/local/arm64-v8a/objs/hello/hello.filtered.s:3:26: error: expected comdat type such as 'discard' or 'largest' after protection bits
        .section        .debug_info,"",@progbits
                                       ^
./obj/local/arm64-v8a/objs/hello/hello.filtered.s:5:28: error: expected comdat type such as 'discard' or 'largest' after protection bits
        .section        .debug_abbrev,"",@progbits
...

but use gcc it works fine.
why?

Android.mk

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_CFLAGS = -save-temps
LOCAL_MODULE    := hello
LOCAL_SRC_FILES := hello.c
LOCAL_ARM_MODE := arm
LOCAL_FILTER_ASM := cp
include $(BUILD_EXECUTABLE)

Application.mk
APP_ABI :=  arm64-v8a
NDK_TOOLCHAIN_VERSION := clang

Reply all
Reply to author
Forward
0 new messages