[OnePlus 3T ROMs, Kernels, Recoveries, & Other Deve] :
This is your error:

FAILED: /bin/bash -c "prebuilts/misc/linux-x86/ccache/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ /home/t-shock/cm14/out/host/linux-x86/obj32/EXECUTABLES/backtrace_test_intermediates/backtrace_offline_test.o /home/t-shock/cm14/out/host/linux-x86/obj32/EXECUTABLES/backtrace_test_intermediates/backtrace_test.o /home/t-shock/cm14/out/host/linux-x86/obj32/EXECUTABLES/backtrace_test_intermediates/GetPss.o /home/t-shock/cm14/out/host/linux-x86/obj32/EXECUTABLES/backtrace_test_intermediates/thread_utils.o -Wl,--whole-archive -Wl,--no-whole-archive /home/t-shock/cm14/out/host/linux-x86/obj32/STATIC_LIBRARIES/libbacktrace_offline_intermediates/libbacktrace_offline.a /home/t-shock/cm14/out/host/linux-x86/obj32/STATIC_LIBRARIES/libziparchive-host_intermediates/libziparchive-host.a /home/t-shock/cm14/out/host/linux-x86/obj32/STATIC_LIBRARIES/libz_intermediates/libz.a /home/t-shock/cm14/out/host/linux-x86/obj32/STATIC_LIBRARIES/libutils_intermediates/libutils.a /home/t-shock/cm14/out/host/linux-x86/obj32/STATIC_LIBRARIES/libLLVMObject_intermediates/libLLVMObject.a /home/t-shock/cm14/out/host/linux-x86/obj32/STATIC_LIBRARIES/libLLVMBitReader_intermediates/libLLVMBitReader.a /home/t-shock/cm14/out/host/linux-x86/obj32/STATIC_LIBRARIES/libLLVMMC_intermediates/libLLVMMC.a /home/t-shock/cm14/out/host/linux-x86/obj32/STATIC_LIBRARIES/libLLVMMCParser_intermediates/libLLVMMCParser.a /home/t-shock/cm14/out/host/linux-x86/obj32/STATIC_LIBRARIES/libLLVMCore_intermediates/libLLVMCore.a /home/t-shock/cm14/out/host/linux-x86/obj32/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a /home/t-shock/cm14/out/host/linux-x86/obj32/STATIC_LIBRARIES/libgtest_main_host_intermediates/libgtest_main_host.a /home/t-shock/cm14/out/host/linux-x86/obj32/STATIC_LIBRARIES/libgtest_host_intermediates/libgtest_host.a /home/t-shock/cm14/out/host/linux-x86/obj32/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a -lbacktrace_test -lbacktrace -lbase -lcutils -llog -lunwind -lc++ -Wl,-rpath-link=/home/t-shock/cm14/out/host/linux-x86/obj32/lib -Wl,-rpath,\\\$ORIGIN/../lib -Wl,-rpath,\\\$ORIGIN/lib -L/home/t-shock/cm14/out/host/linux-x86/obj32/lib -m32 -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--no-undefined-version --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/lib/gcc/x86_64-linux/4.8/32 -Lprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/lib/gcc/x86_64-linux/4.8/32 -Lprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/lib32/ -target i686-linux-gnu -pie -nodefaultlibs -o /home/t-shock/cm14/out/host/linux-x86/obj32/EXECUTABLES/backtrace_test_intermediates/backtrace_test32 -lpthread -lrt -ldl -lncurses -lgcc_s -lpthread -lpthread -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc"
external/llvm/lib/Object/Binary.cpp:68: error: undefined reference to 'llvm::object::MachOUniversalBinary::create(llvm::MemoryBufferRef)'
external/llvm/lib/Object/SymbolicFile.cpp:38: error: undefined reference to 'llvm::object::IRObjectFile::create(llvm::MemoryBufferRef, llvm::LLVMContext&)'
external/llvm/lib/Object/SymbolicFile.cpp:72: error: undefined reference to 'llvm::object::IRObjectFile::findBitcodeInObject(llvm::object::eek:bjectFile const&)'
external/llvm/lib/Object/SymbolicFile.cpp:76: error: undefined reference to 'llvm::object::IRObjectFile::create(llvm::MemoryBufferRef, llvm::LLVMContext&)'
external/llvm/lib/Object/ObjectFile.cpp:96: error: undefined reference to 'llvm::object::eek:bjectFile::createCOFFObjectFile(llvm::MemoryBufferRef)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

I assume you use the script and this happens when doing a clean build? Try clearing ccache (export CCACHE_DIR to the same dir, the script doesmbefore).