在构建android源代码时编译错误

时间:2012-01-12 16:36:40

标签: android compiler-errors makefile android-source

我试图按照android开发网站上的指南构建android源代码。当我到达“make”部分时,我得到了跟随输出。有人可以帮我解决这个错误吗?

THX, 反

frans@frans-laptop:~/android-platform$ sudo make
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=4.0.3.0.2.0.1.0
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_BUILD_TYPE=release
BUILD_ID=OPENMASTER
OUT_DIR=out
============================================
cts/bionic/libc/Android.mk:570: warning: overriding commands for target `out/target        /product/generic/obj/lib/crtbegin_so.o'
bionic/libc/Android.mk:570: warning: ignoring old commands for target `out/target/product/generic/obj/lib/crtbegin_so.o'
cts/bionic/libc/Android.mk:576: warning: overriding commands for target `out/target/product/generic/obj/lib/crtend_so.o'
bionic/libc/Android.mk:576: warning: ignoring old commands for target `out/target/product/generic/obj/lib/crtend_so.o'
cts/bionic/libc/Android.mk:584: warning: overriding commands for target `out/target/product/generic/obj/lib/crtbegin_static.o'
bionic/libc/Android.mk:584: warning: ignoring old commands for target `out/target/product/generic/obj/lib/crtbegin_static.o'
cts/bionic/libc/Android.mk:590: warning: overriding commands for target `out/target/product/generic/obj/lib/crtbegin_dynamic.o'
bionic/libc/Android.mk:590: warning: ignoring old commands for target `out/target/product/generic/obj/lib/crtbegin_dynamic.o'
cts/bionic/libc/Android.mk:599: warning: overriding commands for target `out/target/product/generic/obj/lib/crtend_android.o'
bionic/libc/Android.mk:599: warning: ignoring old commands for target `out/target/product/generic/obj/lib/crtend_android.o'
build/core/base_rules.mk:166: *** cts/bionic/libc: MODULE.TARGET.STATIC_LIBRARIES.libc_common already defined by bionic/libc.  Stop.

1 个答案:

答案 0 :(得分:3)

尝试运行 make clean ,然后运行 make