【问题标题】:"Failed to build some targets" while Building Android Open Source Project (AOSP) for Dragonboard (Ubuntu 16.04)为 Dragonboard(Ubuntu 16.04)构建 Android 开源项目(AOSP)时“构建某些目标失败”
【发布时间】:2019-02-19 06:56:05
【问题描述】:

我正在尝试在 Ubuntu 16.04 上完成此处提到的过程:https://www.96boards.org/documentation/consumer/dragonboard/guides/aosp/。 由于我面临错误之前的步骤产生了广泛的结果并且我已经成功运行,所以我提到了我面临问题的步骤。请注意本教程占用的存储空间过多。

当我尝试构建 AOSP 的第三步时:

make -j$(nproc)

错误出现在 97% 左右,如下所示:

goroutine 689209 [runnable]:
android/soong/android.(*ModuleBase).computeInstallDeps(0xc058a41000, 0xa87f40, 0xc08bcb6b60, 0x9a51a1, 0x7, 0xc000024467)
    /home/Username/android_top/build/soong/android/module.go:628 +0x7c
android/soong/android.(*ModuleBase).GenerateBuildActions(0xc058a41000, 0xa87f40, 0xc08bcb6b60)
    /home/Username/android_top/build/soong/android/module.go:791 +0xec
github.com/google/blueprint.(*Context).generateModuleBuildActions.func2.1(0xc01a5c5980, 0xc08bcb6b60)
    /home/Username/android_top/build/blueprint/context.go:2303 +0x80
github.com/google/blueprint.(*Context).generateModuleBuildActions.func2(0xc01a5c5980, 0x0)
    /home/Username/android_top/build/blueprint/context.go:2304 +0x335
github.com/google/blueprint.(*Context).parallelVisit.func1.1(0xc0082e1500, 0xc01a5c5980, 0xc00e616360, 0xc00e616120)
    /home/Username/android_top/build/blueprint/context.go:1709 +0x30
created by github.com/google/blueprint.(*Context).parallelVisit.func1
    /home/Username/android_top/build/blueprint/context.go:1708 +0x124
06:38:10 soong bootstrap failed with: exit status 1
ninja: build stopped: subcommand failed.
#### failed to build some targets (06:24 (mm:ss)) ####

我收到此错误的任何可能原因是什么?我也无法在其他地方找到具体的解决方案。

【问题讨论】:

    标签: build ubuntu-16.04 android-source ninja android-soong


    【解决方案1】:

    我找到了答案,是内存不足错误。代码没有错。如果有人遇到类似问题,希望对您有所帮助!

    【讨论】:

    • 又帮到我了,哈哈。
    猜你喜欢
    • 2018-09-24
    • 2018-06-09
    • 2015-07-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-03
    • 1970-01-01
    相关资源
    最近更新 更多