Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android 7.1.2 + ARMv7

I met this problem when I was compiling the Android 7.1.2 source code after I updated my debian. I do not know what is the real problem . It seems problem from the flex. However, how can i solve it?

FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.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

like image 879
Peng Avatar asked Mar 15 '18 14:03

Peng


3 Answers

Same issue for me on Ubuntu 18.04. LC_TIME was set to en_GB.UTF-8.

export LC_ALL=C

Fixed it for me

like image 198
rosterloh Avatar answered Nov 12 '22 04:11

rosterloh


I built AOSP (Android O/P) downloaded from Google on a newly setup 18.04 and it built fine. Did not have to change the locale. Locale was set to en_GB.UTF-8.

Then I had to build Android N, an IMX distro, on the same machine and the build failed with the above error. After changing the locale variable the build worked fine.

like image 45
droidian Avatar answered Nov 12 '22 03:11

droidian


i was also facing the same error and before make i run "export LC_ALL=C" in terminal and Issue is fixed. How to integrate this variable in android source code so that i can avoid to run before compilation .

like image 1
vijay panwar Avatar answered Nov 12 '22 04:11

vijay panwar