未能为 AOSIP 构建一些目标

failed to build some targets for AOSIP

我的问题与#### failed to build some targets (1 seconds) ####类似,但没有进一步的更新。

我正在尝试为 OnePlus 7T 编译 AOSIP 分支 10 的图像,我使用了以下命令:

repo init -u git://github.com/AOSiP/platform_manifest.git -b ten

repo sync --force-sync --no-tags --no-clone-bundle

git clone https://github.com/AOSiP-Devices/device_oneplus_hotdogb.git

git clone https://github.com/AOSiP-Devices/device_oneplus_hotdogb.git ./device/oneplus/hotdogb

source build/envsetup.sh

lunch aosip_hotdogb-userdebug

make api-stubs-docs-update-current-api

最初,当我吃午饭时,我意识到 /prebuilts/go/darwin-x86 不见了,所以我做了“git 克隆 https://android.googlesource.com/platform/prebuilts/go/darwin-x86"”。这让我成功吃午饭。但是,当我 运行 make 命令时,我遇到了构建失败并显示以下消息。

/bin/bash: nproc: command not found
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
AOSIP_VERSION=10-Quiche-hotdogb-20201220
TARGET_PRODUCT=aosip_hotdogb
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-2a
TARGET_CPU_VARIANT=generic
BUILD_ID=QQ3A.200805.001
============================================
[ 29% 50/170] link out/soong/.bootstrap/gotestrunner/obj/a.out
FAILED: out/soong/.bootstrap/gotestrunner/obj/a.out
GOROOT='prebuilts/go/darwin-x86' prebuilts/go/darwin-x86/pkg/tool/darwin_amd64/link -o out/soong/.bootstrap/gotestrunner/obj/a.out.tmp  out/soong/.bootstrap/gotestrunner/obj/gotestrunner.a && if cmp --quiet out/soong/.bootstrap/gotestrunner/obj/a.out.tmp out/soong/.bootstrap/gotestrunner/obj/a.out; then rm out/soong/.bootstrap/gotestrunner/obj/a.out.tmp; else mv -f out/soong/.bootstrap/gotestrunner/obj/a.out.tmp out/soong/.bootstrap/gotestrunner/obj/a.out; fi
runtime.main_main·f: function main is undeclared in the main package
[ 30% 51/170] link out/soong/.bootstrap/soong_env/obj/a.out
FAILED: out/soong/.bootstrap/soong_env/obj/a.out
GOROOT='prebuilts/go/darwin-x86' prebuilts/go/darwin-x86/pkg/tool/darwin_amd64/link -o out/soong/.bootstrap/soong_env/obj/a.out.tmp -L out/soong/.bootstrap/soong-env/pkg out/soong/.bootstrap/soong_env/obj/soong_env.a && if cmp --quiet out/soong/.bootstrap/soong_env/obj/a.out.tmp out/soong/.bootstrap/soong_env/obj/a.out; then rm out/soong/.bootstrap/soong_env/obj/a.out.tmp; else mv -f out/soong/.bootstrap/soong_env/obj/a.out.tmp out/soong/.bootstrap/soong_env/obj/a.out; fi
runtime.main_main·f: function main is undeclared in the main package
[ 30% 52/170] link out/soong/.bootstrap/loadplugins/obj/a.out
FAILED: out/soong/.bootstrap/loadplugins/obj/a.out
GOROOT='prebuilts/go/darwin-x86' prebuilts/go/darwin-x86/pkg/tool/darwin_amd64/link -o out/soong/.bootstrap/loadplugins/obj/a.out.tmp  out/soong/.bootstrap/loadplugins/obj/loadplugins.a && if cmp --quiet out/soong/.bootstrap/loadplugins/obj/a.out.tmp out/soong/.bootstrap/loadplugins/obj/a.out; then rm out/soong/.bootstrap/loadplugins/obj/a.out.tmp; else mv -f out/soong/.bootstrap/loadplugins/obj/a.out.tmp out/soong/.bootstrap/loadplugins/obj/a.out; fi
runtime.main_main·f: function main is undeclared in the main package
[ 31% 53/170] link out/soong/.bootstrap/gotestmain/obj/a.out
FAILED: out/soong/.bootstrap/gotestmain/obj/a.out
GOROOT='prebuilts/go/darwin-x86' prebuilts/go/darwin-x86/pkg/tool/darwin_amd64/link -o out/soong/.bootstrap/gotestmain/obj/a.out.tmp  out/soong/.bootstrap/gotestmain/obj/gotestmain.a && if cmp --quiet out/soong/.bootstrap/gotestmain/obj/a.out.tmp out/soong/.bootstrap/gotestmain/obj/a.out; then rm out/soong/.bootstrap/gotestmain/obj/a.out.tmp; else mv -f out/soong/.bootstrap/gotestmain/obj/a.out.tmp out/soong/.bootstrap/gotestmain/obj/a.out; fi
runtime.main_main·f: function main is undeclared in the main package
22:33:57 soong bootstrap failed with: exit status 1

#### failed to build some targets (2 seconds) ####

谢谢。

您能否说明您正在构建它的系统,此外,每当您从 https://android.googlesource.com/ 克隆任何内容时,请始终使用 -b 指定分支名称,否则您最终将克隆 repo 的默认分支。例如,如果您正在为 Android Q/10 Rom 克隆达尔文,请将其克隆为 git 克隆 https://android.googlesource.com/platform/prebuilts/go/darwin-x86 -b android-security-10.0.0_r49

您可以在网站的左下角找到分店名称。