gpt4 book ai didi

android - AOSP 在 ssfilter.c 上构建失败

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:05:53 25 4
gpt4 key购买 nike

我正在尝试在 Ubuntu 17.04 上构建 AOSP。我正在阅读嵌入式 Android 书中的教程。到目前为止一切正常:

root@mh2-K55VD:/bin/repo_work_directory# make -j16
============================================
PLATFORM_VERSION_CODENAME=P
PLATFORM_VERSION=P
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.10.0-37-generic-x86_64-Ubuntu-17.04
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OC
OUT_DIR=out
============================================
ninja: no work to do.
ninja: no work to do.
No need to regenerate ninja file
No need to regenerate ninja file
[ 0% 1/60175] Yacc: ss <= external/iproute2/misc/ssfilter.y
FAILED: out/target/product/generic/obj/EXECUTABLES/ss_intermediates/ssfilter.c
/bin/bash -c "prebuilts/misc/linux-x86/bison/bison -d --defines=out/target/product/generic/obj/EXECUTABLES/ss_intermediates/ssfilter.h -o out/target/product/generic/obj/EXECUTABLES/ss_intermediates/ssfilter.c external/iproute2/misc/ssfilter.y"
external/iproute2/misc/ssfilter.y: 31 conflitti shift/riduzione
prebuilts/misc/linux-x86/bison/bison: Sotto-processo m4 non riuscito: File o directory non esistente
[ 0% 16/60175] target thumb C++: libvkjson <= external/vulkan-validation-layers/libs/vkjson/vkjson.cc
ninja: build stopped: subcommand failed.
13:24:39 ninja failed with: exit status 1

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

我做错了什么?我该如何解决这个问题?请帮忙。提前致谢。

最佳答案

不要编译 master 分支,因为它们经常有损坏的构建。切换到您要构建的 AOSP 的最新官方分支,例如 oreo-release,然后重试。

关于android - AOSP 在 ssfilter.c 上构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46828969/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com