相关文章推荐
聪明的作业本  ·  Win8.1,Win10,Windows ...·  1 年前    · 
不拘小节的皮带  ·  AIX Open Source: ...·  1 年前    · 
乖乖的芹菜  ·  python ...·  1 年前    · 

编译Android源码7.1.2出错:

Starting build with ninja
ninja: Entering directory `.'
[  0% 34/46696] Yacc: checkpolicy <= external/selinux/checkpolicy/policy_parse.y
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/bison/bison -d -v --defines=out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h -o out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.c external/selinux/checkpolicy/policy_parse.y"
/bin/bash: prebuilts/misc/linux-x86/bison/bison: No such file or directory
[  0% 34/46696] Lex: checkpolicy <= external/selinux/checkpolicy/policy_scan.l
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.c external/selinux/checkpolicy/policy_scan.l"
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)
[  0% 34/46696] Lex: checkpolicy <= external/selinux/libsepol/cil/src/cil_lexer.l
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/cil/src/cil_lexer.c external/selinux/libsepol/cil/src/cil_lexer.l"
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

在build/envsetup.sh脚本中最后添加

export LC_ALL=C
编译Android源码7.1.2出错:Starting build with ninjaninja: Entering directory `.'[  0% 34/46696] Yacc: checkpolicy &amp;lt;= external/selinux/checkpolicy/policy_parse.yFAILED: /bin/bash -c &quot;prebuilts/misc/li... ninja : build stopped: subcommand failed . build / core / ninja . mk :142: re cipe for target ' ninja _ wrapper ' failed make: *** [ ninja _ wrapper ] Error 1 本文主要介绍如何 android 7.0编译源码的时候报 build / core / ninja . mk : 148 : re cipe for target ' ninja _ wrapper ' failed 错误,修改方法 二、详细介绍 编译过程中报错: 解决方法: 1.修改envsetup.sh 在 build /envsetup.sh脚本中最后添加 export LC_ALL=C ninja : Entering directory `.' [ 0% 33/48163] Lex: aidl <= system/tools/aidl/aidl_language_l.ll FAILED : /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/host/l...
编译环境:Ubuntu 16.04 镜像文件:清华大学AOSP镜像 Android 7.0一、源码下载1 镜像地址清华大学AOSP( Android Open Source Project) https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/2 过程摘录下载Repo 工具 mk dir ~/bin PATH=~/bin:$PATH curl https://st
Android 源码编译时,经常会遇到jack通信失败问题,导致无法编译 Android 源码。 [100% 1/1] Ensure Jack server is installed and started FAILED : /bin/bash -c "(prebuilts/sdk/tools/jack-admin install-server prebuilts/sdk/tools/jack-launcher.jar prebuilts/sdk/tools/jack-server-4.8.ALPHA.jar
意思是目标’…'缺少配方,也就是缺少依赖。 我在二次编译riscv-gnu-tools的时候就出现了re cipe for target ‘configure-gcc’ failed ,第一次编译没毛病。 我的解决办法 #首先是--prefex选择与之前不同的路径, #然后由于默认编译64位交叉编译器,因此把后缀删掉,严格按照github上readme的命令就没有报错了 ./configure --prefix=/opt/ri ninja : build stopped: subcommand failed . build / core / ninja . mk : 148 : re cipe for target ninja _ wrapper failed make: *** [ ninja _ wrapper ] Error 解决办法: 1、打开prebuilts/sdk/tools/jack-adm...