Fails to build android-4.2.2_r1 on Fedora 24

36 views
Skip to first unread message

Eran

unread,
Aug 9, 2016, 12:21:30 PM8/9/16
to Android Building
I'm trying to build clean AOSP from branch android-4.2.2_r1, and make fails quite early with the following 

eran > ~ > source > android-4.2.2_r1 > make showcommands

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.6.5-300.fc24.x86_64-x86_64-with-fedora-24-Twenty_Four
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39E
OUT_DIR=out
============================================

...

host C: acp <= build/tools/acp/acp.c
prebuilts/misc/linux-x86/ccache/ccache prebuilts/tools/gcc-sdk/gcc -I build/libs/host/include -I build/tools/acp -I out/host/linux-x86/obj/EXECUTABLES/acp_intermediates -I libnativehelper/include/nativehelper  -isystem system/core/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem hardware/ril/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem frameworks/base/opengl/include -isystem external/skia/include -isystem tools/include -isystem out/host/linux-x86/obj/include -c  -fno-exceptions -Wno-multichar -m32 -fPIC -include build/core/combo/include/arch/linux-x86/AndroidConfig.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG       -MD -MF out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.d -o out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o build/tools/acp/acp.c
cc1: error: to generate dependencies you must specify either -M or -MM
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1

What is going on?
Reply all
Reply to author
Forward
0 new messages