构建android源代码时出现编译错误
我正在尝试按照 android 开发网站上的指南构建 android 源代码。当我到达“make”部分时,我得到以下输出。谁能帮我解决这个错误?
谢谢, 弗兰斯
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.
Iam trying to build the android source code following the guide on the android dev website. When I get to the "make" part, I get the follow output. Can anyone help me to resolve this error?
Thx,
Frans
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试运行make clean,然后运行make
Try running make clean and then run make