[General Questions and Answers] phpbb3:
Building android in a working environment, then, after a repo sync, this happened when trying to build

FAILED: TARGET_KERNEL_BINARIES
/bin/bash -c "(rm -rf /home/phpbb3/android/aicp/out/target/product/mata/vendor/lib/modules ) && (mkdir -p /home/phpbb3/android/aicp/out/target/product/mata/vendor/lib/modules ) && (rm -rf /home/phpbb3/android/aicp/out/target/product/mata/obj/PACKAGING/depmod_vendor_intermediates ) && (make -j2 CFLAGS_MODULE=\"-fno-pic\" -C kernel/essential/msm8998 O=/home/phpbb3/android/aicp/out/target/product/mata/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"aarch64-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\"/bin/ccache /home/phpbb3/android/aicp/prebuilts/clang/host/linux-x86/dtc-7.0/bin/clang\" Image.gz-dtb ) && (if grep -q '^CONFIG_OF=y' /home/phpbb3/android/aicp/out/target/product/mata/obj/KERNEL_OBJ/.config; then echo \"Building DTBs\"; make -j2 CFLAGS_MODULE=\"-fno-pic\" -C kernel/essential/msm8998 O=/home/phpbb3/android/aicp/out/target/product/mata/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"aarch64-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\"/bin/ccache /home/phpbb3/android/aicp/prebuilts/clang/host/linux-x86/dtc-7.0/bin/clang\" dtbs; fi ) && (if grep -q '^CONFIG_MODULES=y' /home/phpbb3/android/aicp/out/target/product/mata/obj/KERNEL_OBJ/.config; then echo \"Building Kernel Modules\"; make -j2 CFLAGS_MODULE=\"-fno-pic\" -C kernel/essential/msm8998 O=/home/phpbb3/android/aicp/out/target/product/mata/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"aarch64-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\"/bin/ccache /home/phpbb3/android/aicp/prebuilts/clang/host/linux-x86/dtc-7.0/bin/clang\" modules; fi )"
make: Entering directory '/home/phpbb3/android/aicp/kernel/essential/msm8998'
make[1]: Entering directory '/home/phpbb3/android/aicp/out/target/product/mata/obj/KERNEL_OBJ'
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config/kernel.release
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
Using /home/phpbb3/android/aicp/kernel/essential/msm8998 as source for kernel
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL /home/phpbb3/android/aicp/kernel/essential/msm8998/scripts/checksyscalls.sh
make[2]: 'include/generated/vdso-offsets.h' is up to date.
which: no arm-linux-androideabi-ld in (./prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin)
VDSOC32 arch/arm64/kernel/vdso32/vgettimeofday.o
VDSOA32 arch/arm64/kernel/vdso32/sigreturn.o
/..//bin/as: unrecognized option '-mfloat-abi=soft'
clang-7: error: assembler command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/home/phpbb3/android/aicp/kernel/essential/msm8998/arch/arm64/kernel/vdso32/Makefile:150: arch/arm64/kernel/vdso32/sigreturn.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/..//bin/as: unrecognized option '-mfloat-abi=soft'
clang-7: error: assembler command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/home/phpbb3/android/aicp/kernel/essential/msm8998/arch/arm64/kernel/vdso32/Makefile:148: arch/arm64/kernel/vdso32/vgettimeofday.o] Error 1
make[1]: *** [arch/arm64/Makefile:209: vdso_prepare] Error 2
make[1]: Leaving directory '/home/phpbb3/android/aicp/out/target/product/mata/obj/KERNEL_OBJ'
make: *** [Makefile:152: sub-make] Error 2
make: Leaving directory '/home/phpbb3/android/aicp/kernel/essential/msm8998'
ninja: build stopped: subcommand failed.
16:42:18 ninja failed with: exit status 1

I have done some googling, and tried linking the compiler to /usr/bin as well as setting the PATH and building the modules, nothing has had any effect. I'm building AICP 13.1 Oreo for Essential PH-1 (mata) arm64. building from the same local source for himaul (HTC One M9, also arm64) still works fine. I am building on Manjaro Linux using virtualenv2 for python2 and export JAVA_HOME for java-8-openjdk.

What can I do to resolve this issue, has anyone else had a similar problem?