当我尝试运行mm
,make
甚至make clobber
时,我收到以下错误消息。我已按照Google的说明进行了搜索,并在互联网上搜索了该问题。我没有找到任何有助于解决我的问题。有谁可以建议这里可能出现什么问题?
源于2016年11月23日下载。我正在运行Ubtuntu 14.04.5。我已经安装了OpenJDK 8.我已经下载了Android的Nexus 6P(钓鱼者)二进制文件(3429405)并从根目录运行它们。我做了3.81。当我按照建议here运行“make clobber
”时,会产生以下错误。我已将问题缩小到go文件(module.go
),但我看不出如何修复它。
x@x-VirtualBox:~/WORKING_DIRECTORY$ make clobber
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.0
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-31-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NYC
OUT_DIR=out
AUX_OS_VARIANT_LIST=
============================================
ninja: no work to do.
[1/27] compile out/soong/.bootstrap/soong-android/pkg/android/soong/android.a
FAILED: out/soong/.bootstrap/soong-android/pkg/android/soong/android.a
GOROOT='./prebuilts/go/linux-x86' ./prebuilts/go/linux-x86/pkg/tool/linux_amd64/compile -o out/soong/.bootstrap/soong-android/pkg/android/soong/android.a -p android/soong/android -complete -I out/soong/.bootstrap/blueprint-parser/pkg -I out/soong/.bootstrap/blueprint-deptools/pkg -I out/soong/.bootstrap/blueprint-pathtools/pkg -I out/soong/.bootstrap/blueprint-proptools/pkg -I out/soong/.bootstrap/blueprint/pkg -I out/soong/.bootstrap/blueprint-bootstrap-bpdoc/pkg -I out/soong/.bootstrap/blueprint-bootstrap/pkg -I out/soong/.bootstrap/soong/pkg -I out/soong/.bootstrap/soong-env/pkg -pack build/soong/android/androidmk.go build/soong/android/arch.go build/soong/android/config.go build/soong/android/defaults.go build/soong/android/defs.go build/soong/android/expand.go build/soong/android/hooks.go build/soong/android/makevars.go build/soong/android/module.go build/soong/android/mutator.go build/soong/android/onceper.go build/soong/android/package_ctx.go build/soong/android/paths.go build/soong/android/prebuilt.go build/soong/android/register.go build/soong/android/util.go build/soong/android/variable.go build/soong/android/env.go
build/soong/android/module.go:526: unknown blueprint.BuildParams field 'Deps' in struct literal
[2/27] compile out/soong/.bootstrap/so...g-android/test/android/soong/android.a
FAILED: out/soong/.bootstrap/soong-android/test/android/soong/android.a
GOROOT='./prebuilts/go/linux-x86' ./prebuilts/go/linux-x86/pkg/tool/linux_amd64/compile -o out/soong/.bootstrap/soong-android/test/android/soong/android.a -p android/soong/android -complete -I out/soong/.bootstrap/blueprint-parser/pkg -I out/soong/.bootstrap/blueprint-deptools/pkg -I out/soong/.bootstrap/blueprint-pathtools/pkg -I out/soong/.bootstrap/blueprint-proptools/pkg -I out/soong/.bootstrap/blueprint/pkg -I out/soong/.bootstrap/blueprint-bootstrap-bpdoc/pkg -I out/soong/.bootstrap/blueprint-bootstrap/pkg -I out/soong/.bootstrap/soong/pkg -I out/soong/.bootstrap/soong-env/pkg -pack build/soong/android/androidmk.go build/soong/android/arch.go build/soong/android/config.go build/soong/android/defaults.go build/soong/android/defs.go build/soong/android/expand.go build/soong/android/hooks.go build/soong/android/makevars.go build/soong/android/module.go build/soong/android/mutator.go build/soong/android/onceper.go build/soong/android/package_ctx.go build/soong/android/paths.go build/soong/android/prebuilt.go build/soong/android/register.go build/soong/android/util.go build/soong/android/variable.go build/soong/android/env.go build/soong/android/expand_test.go build/soong/android/paths_test.go build/soong/android/prebuilt_test.go
build/soong/android/module.go:526: unknown blueprint.BuildParams field 'Deps' in struct literal
ninja: build stopped: subcommand failed.
make: *** [run_soong] Error 1
#### make failed to build some targets (1 seconds) ####
答案 0 :(得分:0)
struct literal
中的unknown blueprint.BuildParams字段Deps
根据aa873e1
commit (PR: #135),Deps
和Depfile
字段已于2016年11月22日添加到BuildParams
struct(ninja_defs.go
文件)中,因此我相信您的Blueprint sources已过时。尝试更新它,验证ninja_defs.go
文件的内容并重新尝试。