account arrowhead-down arrowhead-up mobile-menu search sm-bold-x x-skinny-rounded x-skinny arrowhead-right social-facebook social-googleplus social-instagram social-linkedin social-pinterest social-qzone social-renren social-tencent social-twitter social-vkontakt social-weibo social-youku social-youtube

Please help us improve our website

Take our customer survey to evaluate your visit.

It should only take a few minutes to answer five quick questions. Just click the Launch survey button at the end of your visit to begin.

Showing results for 
Search instead for 
Did you mean: 
Welcome to the Open Devices community!

This is where we discuss open source and development related questions on our Open Devices initiative.

prebuilt flex too old to build

Message 1 of 1
Message 1 of 1

prebuilt flex too old to build

I'm trying to build AOSP for H8266 (tama) on Fedora 30 Linux, but I got an error like this:

[ 10% 11052/106210] //external/one-true-awk:awk yacc awkgram.y
external/one-true-awk/awkgram.y: conflicts: 43 shift/reduce, 85 reduce/reduce
[ 10% 11128/106210] //external/selinux...policy lex policy_scan.l [linux_glibc]
FAILED: out/soong/.intermediates/external/selinux/checkpolicy/checkpolicy/linux_glibc_x86_64/gen/lex/external/selinux/checkpolicy/policy_scan.c 
prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/soong/.intermediates/external/selinux/checkpolicy/checkpolicy/linux_glibc_x86_64/gen/lex/external/selinux/checkpolicy/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.
[ 10% 11137/106210] //art/tools/cpp-de...tor-data clang++ [linux_glibc]
ninja: build stopped: subcommand failed.
19:55:24 ninja failed with: exit status 1

Apparently flex-2.5.39 is too old.   So I renamed it and made a symlink to my own /usr/bin/flex (version 2.6.4) and it seems ok.


I searched a fix for this, on github, but I couldn't find one there.  Is it in google?


EDIT: BTW flex is in prebuildts/misc/(system name)/flex/flex-2.5.39

Luckiest in the world. Salt of the earth.