The error is earlier in the log:
[ 2% 1512/62475] Yacc: applypat...ootable/recovery/edify/parser.yy
FAILED: out/target/product/generic/obj/STATIC_LIBRARIES/libedify_intermediates/parser.cpp
/bin/bash -c "prebuilts/misc/linux-x86/bison/bison -d --defines=out/target/product/generic/obj/STATIC_LIBRARIES/libedify_intermediates/parser.h -o out/target/product/generic/obj/STATIC_LIBRARIES/libedify_intermediates/parser.cpp bootable/recovery/edify/parser.yy"
/bin/bash: prebuilts/misc/linux-x86/bison/bison: No such file or directory
This likely means that the shared libraries needed by the bison executable are missing. Bison is one of the few 32-bit executables we use, so you may be missing the 32-bit libc and libstdc++. On ubuntu you would install them with:
sudo apt-get install libc6:i386 libstdc++6:i386