为Dragonboard构建Android开源项目(AOSP)时“无法构建一些目标”(Ubuntu 16.04)

问题描述 投票:0回答:1

我正在尝试在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个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.