原文: https://balalals.cn/archives/...


aosp 编译过程中有着数不清的问题,好在大多数问题能在网络上失去答案,刚遇到一个这样的问题,起因也说不清楚,只晓得在终端中输出export LC_ALL=C即可解决问题。

[  4% 4191/89759] Lex: applypatch <= bootable/recovery/edify/lexer.llFAILED: out/target/product/bullhead/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/target/product/bullhead/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp bootable/recovery/edify/lexer.ll"flex-2.5.39: loadlocale.c:130:_nl_intern_locale_data: ?? 'cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' ???Aborted (core dumped)[  4% 4220/89759] build out/target/common/obj/JAVA_LIBRARIES/sdk_v25_intermediates/classes.jackninja: build stopped: subcommand failed.14:27:46 ninja failed with: exit status 1