[Moto Maxx Android Development] darkghost568:
Wow, thanks so much, that was really helpful! It's now able to start building! However, in the middle of the build I'm getting this error, and I'm not sure how to interpret it. Any idea what it might be?

[ 10% 8038/77571] //frameworks/av/media/ndk:libmediandk.ndk generate stubs libmediandk.map.txt
[ 10% 8039/77571] target Unpacked: libmediandk.ndk.current (/home/david/source_oreo/out/target/product/quark/obj/SHARED_LIBRARIES/libmediandk.ndk.current_intermediates/PACKED/libmediandk.so)
[ 10% 8040/77571] //frameworks/av/media/ndk:libmediandk.ndk clang .intermediates/frameworks/av/media/ndk/libmediandk.ndk/android_arm_armv7-a-neon_krait_shared_core_25/gen/stub.c
[ 10% 8041/77571] //frameworks/av/media/mtp:libmtp clang++ MtpDataPacket.cpp
[ 10% 8042/77571] //frameworks/av/media/ndk:libmediandk.ndk clang .intermediates/frameworks/av/media/ndk/libmediandk.ndk/android_arm_armv7-a-neon_krait_shared_core_22/gen/stub.c
[ 10% 8043/77571] //frameworks/compile/mclinker/lib/Script:libmcldScript yacc ScriptParser.yy
FAILED: /home/david/source_oreo/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/android_arm_armv7-a-neon_krait_static_core/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.cpp /home/david/source_oreo/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/android_arm_armv7-a-neon_krait_static_core/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.h
BISON_PKGDATADIR=external/bison/data prebuilts/misc/linux-x86/bison/bison -d --defines=/home/david/source_oreo/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/android_arm_armv7-a-neon_krait_static_core/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.h -o /home/david/source_oreo/out/soong/.intermediates/frameworks/compile/mclinker/lib/Script/libmcldScript/android_arm_armv7-a-neon_krait_static_core/gen/yacc/frameworks/compile/mclinker/lib/Script/ScriptParser.cpp frameworks/compile/mclinker/lib/Script/ScriptParser.yy
/bin/sh: 1: prebuilts/misc/linux-x86/bison/bison: Exec format error
[ 10% 8044/77571] //frameworks/compile/mclinker/lib/Script:libmcldScript lex ScriptScanner.ll
[ 10% 8045/77571] target Symbolic: libmediandk.ndk.current (/home/david/source_oreo/out/target/product/quark/symbols//home/david/source_oreo/out/soong/ndk/platforms/android-current/arch-arm/usr/lib/libmediandk.so)
[ 10% 8046/77571] //frameworks/av/media/ndk:libmediandk.ndk clang .intermediates/frameworks/av/media/ndk/libmediandk.ndk/android_arm_armv7-a-neon_krait_shared_core_REL/gen/stub.c
[ 10% 8047/77571] //frameworks/av/media/ndk:libmediandk.ndk generate stubs libmediandk.map.txt
[ 10% 8048/77571] //frameworks/av/media/ndk:libmediandk.ndk link libmediandk.so
[ 10% 8049/77571] //frameworks/av/media/libstagefright/codecs/amrnb/dec:libstagefright_amrnbdec clang++ src/d_gain_p.cpp
[ 10% 8050/77571] //external/libmpeg2:libmpeg2dec header-abi-dumper decoder/impeg2d_api_main.c
ninja: build stopped: subcommand failed.
00:34:33 ninja failed with: exit status 1

#### failed to build some targets (21:07 (mm:ss)) ####

real 21m7.276s
user 44m14.188s
sys 65m34.422s
david@DESKTOP-5AEHSUV:~/source_oreo$