错误提示:
[ 0% 438/72411] //external/one-true-awk:awk yacc awkgram.y
FAILED: out/soong/.intermediates/external/one-true-awk/awk/android_arm64_armv8-a_core/gen/yacc/external/one-true-awk/awkgram.c out/soong/.intermediates/external/one-true-awk/awk/android_arm64_armv8-a_core/gen/yacc/external/one-true-awk/awkgram.h
BISON_PKGDATADIR=external/bison/data prebuilts/misc/darwin-x86/bison/bison -d --defines=out/soong/.intermediates/external/one-true-awk/awk/android_arm64_armv8-a_core/gen/yacc/external/one-true-awk/awkgram.h -o out/soong/.intermediates/external/one-true-awk/awk/android_arm64_armv8-a_core/gen/yacc/external/one-true-awk/awkgram.c external/one-true-awk/awkgram.y
[ 0% 441/72411] //system/libvintf:ass...tf clang++ assemble_vintf.cpp [darwin]
ninja: build stopped: subcommand failed.
11:01:56 ninja failed with: exit status 1
解决方法:
1、brew install bison
如果已经安装bison,则执行which bison查找bison位置为如下路径
/usr/bin/bison
2、rm /<andorid_code_paht>/prebuilts/misc/darwin-x86/bison/bison
3、建立软连接
sudo ln -s /usr/bin/bison prebuilts/misc/darwin-x86/bison/