AOSP构建停止:子命令失败

时间:2018-07-13 11:36:32

标签: android android-source

尝试构建AOSP版本时出现此错误

repo init -u https://android.googlesource.com/platform/manifest -b android-8.0.0_r33 --depth=1

我找不到任何经历过的人。

[  5% 3232/63193] Lex: applypatch <= bootable/recovery/edify/lexer.ll
FAILED: out/target/product/generic/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp 
/bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/target/product/generic/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp bootable/recovery/edify/lexer.ll"
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)
[  5% 3239/63193] target StaticLib: li...IES/libv8src_intermediates/libv8src.a)
ninja: build stopped: subcommand failed.
14:04:56 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1

这使我明白问题可能会在环境中发生。

VirtualBox,8GB RAM,160GB空间,Ubuntu 18.04

有人建议吗,这里可能出什么问题?

2 个答案:

答案 0 :(得分:7)

尝试在构建之前运行export LC_ALL=C

在Ubuntu 18.04上构建时,我遇到了类似的错误。

答案 1 :(得分:0)

我遇到了同样的问题。 在构建之前运行export LC_ALL = C。 它对我有用