FAILED: /bin/bash -c "prebuilts/misc/darwin-x86/bison/bison -d --defines=out/host/darwin-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.h -o out/host/darwin-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.cpp system/tools/aidl/aidl_language_y.yy"
/bin/bash: prebuilts/misc/darwin-x86/bison/bison: No such file or directory
[ 0% 19/33193] Lex: aidl <= system/tools/aidl/aidl_language_l.ll
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (36 seconds) ####
I tried to follow the instructions of other threads in Google Groups about the same issue.
For example some guys suggested to "export USE_NINJA=false" then I encounter several errors like:
external/libcxx/include/cmath error declaration conflicts with target of using declaration already in scope
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (35 seconds) ####
Other people suggest this steps:
Patch bison fix for High Sierra and build bison:
cd /Volumes/AOSP/external/bisongit cherry-pick c0c852bd6fe462b148475476d9124fd740eba160mmReplace prebuilt bison binary with patched binarycp /Volumes/AOSP/out/host/darwin-x86/bin/bison /Volumes/AOSP/prebuilts/misc/darwin-x86/bison/