构建android源代码时出现编译错误

发布于 2024-12-26 11:44:20 字数 1923 浏览 1 评论 0原文

我正在尝试按照 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

仅一夜美梦 2025-01-02 11:44:20

尝试运行ma​​ke clean,然后运行ma​​ke

Try running make clean and then run make

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文