ubuntu18编译安卓8 `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))‘ failed.

一、ubuntu18.04.6 编译Android8 错误提示

[  5% 4559/82824] Lex: applypatch <= bootable/recovery/edify/lexer.ll
FAILED: out/target/product/px30_evb/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp 
/bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/target/product/px30_evb/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.

二、解决方案,可以将export LC_ALL=C添加到~/.bashrc文件。LC_ALL=C 是为了去除所有本地化的设置,让命令能正确执行。或者在build/envsetup.sh的最后一行添加:

export LC_ALL=C

三、参考文章

android - AOSP build stopped: subcommand failed - Stack Overflow

猜你喜欢

转载自blog.csdn.net/qq_37858386/article/details/128544083