-- The C compiler identification is GNU 9.2.0 -- The CXX compiler identification is Clang 9.0.0 -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/clang++ -- Check for working CXX compiler: /usr/bin/clang++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done Configuring zig version 0.5.0+bd46f9f1b1 -- Found LLVM: -lLLVM-9 -- Could NOT find CLANG (missing: CLANG_LIBRARIES) -- Could NOT find LLD (missing: LLD_LIBRARIES) -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Configuring done -- Generating done -- Build files have been written to: /home/mps/aports/testing/zig/src/zig-0.5.0/build Scanning dependencies of target opt_c_util Scanning dependencies of target zig_cpp Scanning dependencies of target embedded_softfloat [ 0%] Building C object CMakeFiles/opt_c_util.dir/src/blake2b.c.o [ 1%] Building C object CMakeFiles/opt_c_util.dir/src/parse_f128.c.o [ 2%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/f128M_isSignalingNaN.c.o [ 3%] Building CXX object CMakeFiles/zig_cpp.dir/src/zig_llvm.cpp.o [ 4%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_commonNaNToF128M.c.o [ 4%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_commonNaNToF16UI.c.o [ 5%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_commonNaNToF32UI.c.o [ 5%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_commonNaNToF64UI.c.o [ 6%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_f128MToCommonNaN.c.o [ 7%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_f16UIToCommonNaN.c.o [ 7%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_f32UIToCommonNaN.c.o [ 8%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_f64UIToCommonNaN.c.o [ 8%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_propagateNaNF128M.c.o [ 9%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/s_propagateNaNF16UI.c.o [ 10%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/8086/softfloat_raiseFlags.c.o [ 10%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_add.c.o [ 11%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_div.c.o [ 11%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_eq.c.o [ 11%] Linking C static library zig_cpp/libopt_c_util.a [ 12%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_eq_signaling.c.o [ 12%] Built target opt_c_util [ 13%] Building CXX object CMakeFiles/zig_cpp.dir/src/zig_clang.cpp.o [ 13%] Building CXX object CMakeFiles/zig_cpp.dir/src/zig_clang_driver.cpp.o [ 14%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_le.c.o [ 14%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_le_quiet.c.o [ 15%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_lt.c.o [ 15%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_lt_quiet.c.o [ 16%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_mul.c.o [ 17%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_mulAdd.c.o [ 17%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_rem.c.o [ 18%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_roundToInt.c.o [ 18%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_sqrt.c.o [ 19%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_sub.c.o [ 20%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_f16.c.o [ 20%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_f32.c.o [ 21%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_f64.c.o [ 21%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_i32.c.o [ 22%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_i32_r_minMag.c.o [ 23%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_i64.c.o [ 23%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_i64_r_minMag.c.o [ 24%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_ui32.c.o [ 24%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_ui32_r_minMag.c.o [ 25%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_ui64.c.o [ 26%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f128M_to_ui64_r_minMag.c.o [ 26%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_add.c.o [ 27%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_div.c.o [ 27%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_eq.c.o [ 28%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_isSignalingNaN.c.o [ 29%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_lt.c.o [ 29%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_mul.c.o [ 30%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_rem.c.o [ 30%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_roundToInt.c.o [ 31%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_sqrt.c.o [ 32%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_sub.c.o [ 32%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_to_f128M.c.o [ 33%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_to_f64.c.o [ 33%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f32_to_f128M.c.o [ 34%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f64_to_f128M.c.o [ 35%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f64_to_f16.c.o [ 35%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/i32_to_f128M.c.o [ 36%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_add256M.c.o [ 36%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addCarryM.c.o [ 37%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addComplCarryM.c.o [ 38%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addF128M.c.o [ 38%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addM.c.o [ 39%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addMagsF16.c.o [ 39%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addMagsF32.c.o [ 40%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_addMagsF64.c.o [ 41%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_approxRecip32_1.c.o [ 41%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_approxRecipSqrt32_1.c.o [ 42%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_approxRecipSqrt_1Ks.c.o [ 42%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_approxRecip_1Ks.c.o [ 43%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_compare128M.c.o [ 44%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_compare96M.c.o [ 44%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_countLeadingZeros16.c.o [ 45%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_countLeadingZeros32.c.o [ 45%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_countLeadingZeros64.c.o [ 46%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_countLeadingZeros8.c.o [ 47%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_eq128.c.o [ 47%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_invalidF128M.c.o [ 48%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_isNaNF128M.c.o [ 48%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_le128.c.o [ 49%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_lt128.c.o [ 50%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mul128MTo256M.c.o [ 50%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mul64To128M.c.o [ 51%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mulAddF128M.c.o [ 51%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mulAddF16.c.o [ 52%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mulAddF32.c.o [ 53%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_mulAddF64.c.o [ 53%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_negXM.c.o [ 54%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normRoundPackMToF128M.c.o [ 54%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normRoundPackToF16.c.o [ 55%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normRoundPackToF32.c.o [ 56%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normRoundPackToF64.c.o [ 56%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normSubnormalF128SigM.c.o [ 57%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normSubnormalF16Sig.c.o [ 57%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normSubnormalF32Sig.c.o [ 58%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_normSubnormalF64Sig.c.o [ 59%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_remStepMBy32.c.o [ 59%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundMToI64.c.o [ 60%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundMToUI64.c.o [ 60%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundPackMToF128M.c.o [ 61%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundPackToF16.c.o [ 62%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundPackToF32.c.o [ 62%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundPackToF64.c.o [ 63%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundToI32.c.o [ 63%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundToI64.c.o [ 64%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundToUI32.c.o [ 65%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_roundToUI64.c.o [ 65%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftLeftM.c.o [ 66%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftNormSigF128M.c.o [ 66%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftRightJam256M.c.o [ 67%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftRightJam32.c.o [ 68%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftRightJam64.c.o [ 68%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftRightJamM.c.o [ 69%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shiftRightM.c.o [ 69%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftLeft64To96M.c.o [ 70%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftLeftM.c.o [ 71%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftRightExtendM.c.o [ 71%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftRightJam64.c.o [ 72%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftRightJamM.c.o [ 72%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_shortShiftRightM.c.o [ 73%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_sub1XM.c.o [ 74%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_sub256M.c.o [ 74%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_subM.c.o [ 75%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_subMagsF16.c.o [ 75%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_subMagsF32.c.o [ 76%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_subMagsF64.c.o [ 77%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/s_tryPropagateNaNF128M.c.o [ 77%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/f16_mulAdd.c.o [ 78%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/softfloat_state.c.o [ 78%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/ui32_to_f128M.c.o [ 79%] Building C object CMakeFiles/embedded_softfloat.dir/deps/SoftFloat-3e/source/ui64_to_f128M.c.o [ 80%] Linking C static library zig_cpp/libembedded_softfloat.a [ 80%] Built target embedded_softfloat [ 81%] Building CXX object CMakeFiles/zig_cpp.dir/src/zig_clang_cc1_main.cpp.o [ 81%] Building CXX object CMakeFiles/zig_cpp.dir/src/zig_clang_cc1as_main.cpp.o [ 82%] Building CXX object CMakeFiles/zig_cpp.dir/src/windows_sdk.cpp.o [ 83%] Linking CXX static library zig_cpp/libzig_cpp.a [ 83%] Built target zig_cpp Scanning dependencies of target compiler [ 84%] Building CXX object CMakeFiles/compiler.dir/src/analyze.cpp.o [ 84%] Building CXX object CMakeFiles/compiler.dir/src/ast_render.cpp.o [ 84%] Building CXX object CMakeFiles/compiler.dir/src/bigfloat.cpp.o [ 85%] Building CXX object CMakeFiles/compiler.dir/src/bigint.cpp.o [ 85%] Building CXX object CMakeFiles/compiler.dir/src/buffer.cpp.o [ 86%] Building CXX object CMakeFiles/compiler.dir/src/c_tokenizer.cpp.o [ 87%] Building CXX object CMakeFiles/compiler.dir/src/cache_hash.cpp.o [ 87%] Building CXX object CMakeFiles/compiler.dir/src/codegen.cpp.o [ 88%] Building CXX object CMakeFiles/compiler.dir/src/compiler.cpp.o [ 88%] Building CXX object CMakeFiles/compiler.dir/src/errmsg.cpp.o [ 89%] Building CXX object CMakeFiles/compiler.dir/src/error.cpp.o [ 90%] Building CXX object CMakeFiles/compiler.dir/src/glibc.cpp.o [ 90%] Building CXX object CMakeFiles/compiler.dir/src/ir.cpp.o [ 91%] Building CXX object CMakeFiles/compiler.dir/src/ir_print.cpp.o [ 91%] Building CXX object CMakeFiles/compiler.dir/src/libc_installation.cpp.o [ 92%] Building CXX object CMakeFiles/compiler.dir/src/link.cpp.o [ 93%] Building CXX object CMakeFiles/compiler.dir/src/os.cpp.o [ 93%] Building CXX object CMakeFiles/compiler.dir/src/parser.cpp.o [ 94%] Building CXX object CMakeFiles/compiler.dir/src/range_set.cpp.o [ 94%] Building CXX object CMakeFiles/compiler.dir/src/stack_report.cpp.o [ 95%] Building CXX object CMakeFiles/compiler.dir/src/target.cpp.o [ 96%] Building CXX object CMakeFiles/compiler.dir/src/tokenizer.cpp.o [ 96%] Building CXX object CMakeFiles/compiler.dir/src/translate_c.cpp.o [ 97%] Building CXX object CMakeFiles/compiler.dir/src/util.cpp.o [ 97%] Linking CXX static library zig_cpp/libcompiler.a [ 97%] Built target compiler Scanning dependencies of target zig0 [ 98%] Building CXX object CMakeFiles/zig0.dir/src/main.cpp.o [ 98%] Building CXX object CMakeFiles/zig0.dir/src/userland.cpp.o [ 98%] Linking CXX executable zig0 /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang_cc1_main.cpp.o): in function `cc1_main(llvm::ArrayRef, char const*, void*)': zig_clang_cc1_main.cpp:(.text+0xe5): undefined reference to `clang::PCHContainerOperations::PCHContainerOperations()' /usr/bin/ld: zig_clang_cc1_main.cpp:(.text+0x101): undefined reference to `clang::CompilerInstance::CompilerInstance(std::shared_ptr, clang::InMemoryModuleCache*)' /usr/bin/ld: zig_clang_cc1_main.cpp:(.text+0x13d): undefined reference to `clang::DiagnosticIDs::DiagnosticIDs()' /usr/bin/ld: zig_clang_cc1_main.cpp:(.text+0x16a): undefined reference to `vtable for clang::ObjectFilePCHContainerWriter' /usr/bin/ld: zig_clang_cc1_main.cpp:(.text+0x1b9): undefined reference to `vtable for clang::ObjectFilePCHContainerReader' /usr/bin/ld: zig_clang_cc1_main.cpp:(.text+0x385): undefined reference to `vtable for clang::TextDiagnosticBuffer' /usr/bin/ld: zig_clang_cc1_main.cpp:(.text+0x3ec): undefined reference to `clang::DiagnosticsEngine::DiagnosticsEngine(llvm::IntrusiveRefCntPtr, llvm::IntrusiveRefCntPtr, clang::DiagnosticConsumer*, bool)' /usr/bin/ld: zig_clang_cc1_main.cpp:(.text+0x43e): undefined reference to `clang::CompilerInvocation::CreateFromArgs(clang::CompilerInvocation&, char const* const*, char const* const*, clang::DiagnosticsEngine&)' /usr/bin/ld: zig_clang_cc1_main.cpp:(.text+0x498): undefined reference to `clang::CompilerInvocation::GetResourcesPath[abi:cxx11](char const*, void*)' /usr/bin/ld: zig_clang_cc1_main.cpp:(.text+0x4d7): undefined reference to `clang::CompilerInstance::createDiagnostics(clang::DiagnosticConsumer*, bool)' /usr/bin/ld: zig_clang_cc1_main.cpp:(.text+0x507): undefined reference to `clang::TextDiagnosticBuffer::FlushDiagnostics(clang::DiagnosticsEngine&) const' /usr/bin/ld: zig_clang_cc1_main.cpp:(.text+0x544): undefined reference to `clang::ExecuteCompilerInvocation(clang::CompilerInstance*)' /usr/bin/ld: zig_clang_cc1_main.cpp:(.text+0x632): undefined reference to `clang::CompilerInstance::createOutputFile(llvm::StringRef, bool, bool, llvm::StringRef, llvm::StringRef, bool, bool)' /usr/bin/ld: zig_clang_cc1_main.cpp:(.text+0x896): undefined reference to `clang::DiagnosticsEngine::~DiagnosticsEngine()' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang_cc1_main.cpp.o): in function `clang::DiagnosticBuilder::Emit()': zig_clang_cc1_main.cpp:(.text._ZN5clang17DiagnosticBuilder4EmitEv[_ZN5clang17DiagnosticBuilder4EmitEv]+0x1b): undefined reference to `clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool)' /usr/bin/ld: zig_cpp/libcompiler.a(translate_c.cpp.o): in function `parse_h_file(CodeGen*, AstNode**, Stage2ErrorMsg**, unsigned long*, char const**, char const**, Stage2TranslateMode, char const*)': translate_c.cpp:(.text+0x2d4): undefined reference to `clang::ASTUnit::getLocalPreprocessingEntities() const' /usr/bin/ld: zig_cpp/libcompiler.a(translate_c.cpp.o): in function `decl_visitor(void*, ZigClangDecl const*)': translate_c.cpp:(.text+0xacb): undefined reference to `clang::VarDecl::getTLSKind() const' /usr/bin/ld: translate_c.cpp:(.text+0xbc2): undefined reference to `clang::VarDecl::hasInit() const' /usr/bin/ld: translate_c.cpp:(.text+0xbd2): undefined reference to `clang::VarDecl::evaluateValue() const' /usr/bin/ld: zig_cpp/libcompiler.a(translate_c.cpp.o): in function `resolve_record_decl(Context*, ZigClangRecordDecl const*)': translate_c.cpp:(.text+0x1e75): undefined reference to `clang::RecordDecl::field_begin() const' /usr/bin/ld: translate_c.cpp:(.text+0x1fd5): undefined reference to `clang::RecordDecl::field_begin() const' /usr/bin/ld: zig_cpp/libcompiler.a(translate_c.cpp.o): in function `type_is_opaque(Context*, ZigClangType const*, ZigClangSourceLocation)': translate_c.cpp:(.text+0x2ec3): undefined reference to `clang::RecordDecl::field_begin() const' /usr/bin/ld: zig_cpp/libcompiler.a(translate_c.cpp.o): in function `trans_stmt_extra(Context*, TransScope*, ZigClangStmt const*, ResultUsed, TransLRValue, AstNode**, TransScope**, TransScope**)': translate_c.cpp:(.text+0x3765): undefined reference to `clang::Stmt::getBeginLoc() const' /usr/bin/ld: translate_c.cpp:(.text+0x3a96): undefined reference to `clang::Expr::EvaluateAsFloat(llvm::APFloat&, clang::ASTContext const&, clang::Expr::SideEffectsKind, bool) const' /usr/bin/ld: translate_c.cpp:(.text+0x3cab): undefined reference to `clang::VarDecl::hasInit() const' /usr/bin/ld: translate_c.cpp:(.text+0x3cb7): undefined reference to `clang::VarDecl::getInit()' /usr/bin/ld: translate_c.cpp:(.text+0x3f8c): undefined reference to `clang::Expr::EvaluateAsInt(clang::Expr::EvalResult&, clang::ASTContext const&, clang::Expr::SideEffectsKind, bool) const' /usr/bin/ld: translate_c.cpp:(.text+0x4bbe): undefined reference to `clang::Expr::EvaluateAsConstantExpr(clang::Expr::EvalResult&, clang::Expr::ConstExprUsage, clang::ASTContext const&) const' /usr/bin/ld: translate_c.cpp:(.text+0x4be3): undefined reference to `clang::Stmt::getBeginLoc() const' /usr/bin/ld: translate_c.cpp:(.text+0x4c9e): undefined reference to `clang::Stmt::getBeginLoc() const' /usr/bin/ld: translate_c.cpp:(.text+0x54da): undefined reference to `clang::APValue::DestroyDataAndMakeUninit()' /usr/bin/ld: translate_c.cpp:(.text+0x56e3): undefined reference to `clang::Stmt::getBeginLoc() const' /usr/bin/ld: translate_c.cpp:(.text+0x570f): undefined reference to `clang::APValue::DestroyDataAndMakeUninit()' /usr/bin/ld: translate_c.cpp:(.text+0x5b0d): undefined reference to `clang::Stmt::getBeginLoc() const' /usr/bin/ld: translate_c.cpp:(.text+0x5b29): undefined reference to `clang::Stmt::getBeginLoc() const' /usr/bin/ld: translate_c.cpp:(.text+0x625a): undefined reference to `clang::Stmt::getBeginLoc() const' /usr/bin/ld: translate_c.cpp:(.text+0x6328): undefined reference to `clang::Stmt::getBeginLoc() const' /usr/bin/ld: translate_c.cpp:(.text+0x6728): undefined reference to `clang::Stmt::getBeginLoc() const' /usr/bin/ld: zig_cpp/libcompiler.a(translate_c.cpp.o):translate_c.cpp:(.text+0x673c): more undefined references to `clang::Stmt::getBeginLoc() const' follow /usr/bin/ld: zig_cpp/libcompiler.a(translate_c.cpp.o): in function `trans_stmt_extra(Context*, TransScope*, ZigClangStmt const*, ResultUsed, TransLRValue, AstNode**, TransScope**, TransScope**)': translate_c.cpp:(.text+0x69b2): undefined reference to `clang::Expr::EvaluateAsBooleanCondition(bool&, clang::ASTContext const&, bool) const' /usr/bin/ld: translate_c.cpp:(.text+0x7084): undefined reference to `clang::Expr::getExprLoc() const' /usr/bin/ld: translate_c.cpp:(.text+0x7734): undefined reference to `clang::Stmt::getBeginLoc() const' /usr/bin/ld: zig_cpp/libcompiler.a(translate_c.cpp.o): in function `trans_create_compound_assign_shift(Context*, ResultUsed, TransScope*, clang::CompoundAssignOperator const*, BinOpType, BinOpType)': translate_c.cpp:(.text+0x8e95): undefined reference to `clang::Stmt::getBeginLoc() const' /usr/bin/ld: zig_cpp/libcompiler.a(translate_c.cpp.o): in function `trans_ap_value(Context*, ZigClangAPValue const*, ZigClangQualType, ZigClangSourceLocation)': translate_c.cpp:(.text+0xa064): undefined reference to `clang::Type::getUnqualifiedDesugaredType() const' /usr/bin/ld: zig_cpp/libcompiler.a(translate_c.cpp.o): in function `clang::ImplicitCastExpr::getBeginLoc() const': translate_c.cpp:(.text._ZNK5clang16ImplicitCastExpr11getBeginLocEv[_ZNK5clang16ImplicitCastExpr11getBeginLocEv]+0x18): undefined reference to `clang::Stmt::getBeginLoc() const' /usr/bin/ld: zig_cpp/libcompiler.a(translate_c.cpp.o): in function `clang::Type::isIntegerType() const': translate_c.cpp:(.text._ZNK5clang4Type13isIntegerTypeEv[_ZNK5clang4Type13isIntegerTypeEv]+0x82): undefined reference to `clang::TagType::getDecl() const' /usr/bin/ld: translate_c.cpp:(.text._ZNK5clang4Type13isIntegerTypeEv[_ZNK5clang4Type13isIntegerTypeEv]+0xa7): undefined reference to `clang::TagType::getDecl() const' /usr/bin/ld: zig_cpp/libcompiler.a(translate_c.cpp.o): in function `clang::EnumDecl::enumerator_begin() const': translate_c.cpp:(.text._ZNK5clang8EnumDecl16enumerator_beginEv[_ZNK5clang8EnumDecl16enumerator_beginEv]+0x18): undefined reference to `clang::DeclContext::decls_begin() const' /usr/bin/ld: zig_cpp/libcompiler.a(translate_c.cpp.o): in function `clang::EnumDecl::getDefinition() const': translate_c.cpp:(.text._ZNK5clang8EnumDecl13getDefinitionEv[_ZNK5clang8EnumDecl13getDefinitionEv]+0x2): undefined reference to `clang::TagDecl::getDefinition() const' /usr/bin/ld: zig_cpp/libcompiler.a(translate_c.cpp.o): in function `clang::VarDecl::isFileVarDecl() const': translate_c.cpp:(.text._ZNK5clang7VarDecl13isFileVarDeclEv[_ZNK5clang7VarDecl13isFileVarDeclEv]+0x2a): undefined reference to `clang::DeclContext::getRedeclContext()' /usr/bin/ld: zig_cpp/libcompiler.a(translate_c.cpp.o): in function `clang::PreprocessingRecord::iterator::operator*() const': translate_c.cpp:(.text._ZNK5clang19PreprocessingRecord8iteratordeEv[_ZNK5clang19PreprocessingRecord8iteratordeEv]+0x35): undefined reference to `clang::PreprocessingRecord::getPreprocessedEntity(clang::PreprocessingRecord::PPEntityID)' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_llvm.cpp.o): in function `ZigLLDLink': zig_llvm.cpp:(.text+0x2641): undefined reference to `lld::coff::link(llvm::ArrayRef, bool, llvm::raw_ostream&)' /usr/bin/ld: zig_llvm.cpp:(.text+0x2656): undefined reference to `lld::mach_o::link(llvm::ArrayRef, bool, llvm::raw_ostream&)' /usr/bin/ld: zig_llvm.cpp:(.text+0x266b): undefined reference to `lld::elf::link(llvm::ArrayRef, bool, llvm::raw_ostream&)' /usr/bin/ld: zig_llvm.cpp:(.text+0x2680): undefined reference to `lld::wasm::link(llvm::ArrayRef, bool, llvm::raw_ostream&)' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangSourceManager_getSpellingLoc': zig_clang.cpp:(.text+0x10): undefined reference to `clang::SourceManager::getSpellingLocSlowCase(clang::SourceLocation) const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangSourceManager_getSpellingLineNumber': zig_clang.cpp:(.text+0x1f): undefined reference to `clang::SourceManager::getSpellingLineNumber(clang::SourceLocation, bool*) const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangSourceManager_getSpellingColumnNumber': zig_clang.cpp:(.text+0x26): undefined reference to `clang::SourceManager::getSpellingColumnNumber(clang::SourceLocation, bool*) const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangSourceManager_getCharacterData': zig_clang.cpp:(.text+0x2d): undefined reference to `clang::SourceManager::getCharacterData(clang::SourceLocation, bool*) const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangASTContext_getPointerType': zig_clang.cpp:(.text+0x32): undefined reference to `clang::ASTContext::getPointerType(clang::QualType) const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangASTUnit_visitLocalTopLevelDecls': zig_clang.cpp:(.text+0x4c): undefined reference to `clang::ASTUnit::visitLocalTopLevelDecls(void*, bool (*)(void*, clang::Decl const*))' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangRecordType_getDecl': zig_clang.cpp:(.text+0x51): undefined reference to `clang::TagType::getDecl() const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangEnumType_getDecl': zig_clang.cpp:(.text+0x56): undefined reference to `clang::TagType::getDecl() const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangRecordDecl_getDefinition': zig_clang.cpp:(.text+0x6d): undefined reference to `clang::TagDecl::getDefinition() const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangEnumDecl_getDefinition': zig_clang.cpp:(.text+0xa9): undefined reference to `clang::TagDecl::getDefinition() const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangDecl_getDeclKindName': zig_clang.cpp:(.text+0x116): undefined reference to `clang::Decl::getDeclKindName() const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangType_getPointeeType': zig_clang.cpp:(.text+0x42c): undefined reference to `clang::Type::getPointeeType() const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangType_getTypeClassName': zig_clang.cpp:(.text+0x4bb): undefined reference to `clang::Type::getTypeClassName() const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangStmt_getBeginLoc': zig_clang.cpp:(.text+0x4c0): undefined reference to `clang::Stmt::getBeginLoc() const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangExpr_getBeginLoc': zig_clang.cpp:(.text+0x4e0): undefined reference to `clang::Stmt::getBeginLoc() const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangAPValue_getLValueBase': zig_clang.cpp:(.text+0x686): undefined reference to `clang::APValue::getLValueBase() const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangLoadFromCommandLine': zig_clang.cpp:(.text+0x77b): undefined reference to `clang::CompilerInstance::createDiagnostics(clang::DiagnosticOptions*, clang::DiagnosticConsumer*, bool, clang::CodeGenOptions const*)' /usr/bin/ld: zig_clang.cpp:(.text+0x7b4): undefined reference to `clang::PCHContainerOperations::PCHContainerOperations()' /usr/bin/ld: zig_clang.cpp:(.text+0x8c8): undefined reference to `clang::ASTUnit::LoadFromCommandLine(char const**, char const**, std::shared_ptr, llvm::IntrusiveRefCntPtr, llvm::StringRef, bool, clang::CaptureDiagsKind, llvm::ArrayRef, std::allocator >, llvm::MemoryBuffer*> >, bool, unsigned int, clang::TranslationUnitKind, bool, bool, bool, clang::SkipFunctionBodiesScope, bool, bool, bool, llvm::Optional, std::unique_ptr >*, llvm::IntrusiveRefCntPtr)' /usr/bin/ld: zig_clang.cpp:(.text+0xa76): undefined reference to `clang::FullSourceLoc::getFileID() const' /usr/bin/ld: zig_clang.cpp:(.text+0xadd): undefined reference to `clang::SourceManager::getBufferData(clang::FileID, bool*) const' /usr/bin/ld: zig_clang.cpp:(.text+0xaf4): undefined reference to `clang::FullSourceLoc::getSpellingLineNumber(bool*) const' /usr/bin/ld: zig_clang.cpp:(.text+0xb0c): undefined reference to `clang::FullSourceLoc::getSpellingColumnNumber(bool*) const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangASTUnit_delete': zig_clang.cpp:(.text+0xc4e): undefined reference to `clang::ASTUnit::~ASTUnit()' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangVarDecl_getInit': zig_clang.cpp:(.text+0xc62): undefined reference to `clang::VarDecl::getInit()' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangVarDecl_getTLSKind': zig_clang.cpp:(.text+0xc67): undefined reference to `clang::VarDecl::getTLSKind() const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangImplicitCastExpr_getBeginLoc': zig_clang.cpp:(.text+0xd43): undefined reference to `clang::Stmt::getBeginLoc() const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangIntegerLiteral_EvaluateAsInt': zig_clang.cpp:(.text+0xea3): undefined reference to `clang::Expr::EvaluateAsInt(clang::Expr::EvalResult&, clang::ASTContext const&, clang::Expr::SideEffectsKind, bool) const' /usr/bin/ld: zig_clang.cpp:(.text+0xecb): undefined reference to `clang::APValue::APValue(clang::APValue const&)' /usr/bin/ld: zig_clang.cpp:(.text+0xeec): undefined reference to `clang::APValue::DestroyDataAndMakeUninit()' /usr/bin/ld: zig_clang.cpp:(.text+0xefd): undefined reference to `clang::APValue::DestroyDataAndMakeUninit()' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `ZigClangBinaryOperator_getBeginLoc': zig_clang.cpp:(.text+0xf55): undefined reference to `clang::Stmt::getBeginLoc() const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `clang::EnumDecl::getIntegerType() const': zig_clang.cpp:(.text._ZNK5clang8EnumDecl14getIntegerTypeEv[_ZNK5clang8EnumDecl14getIntegerTypeEv]+0x6a): undefined reference to `clang::QualType::getSplitUnqualifiedTypeImpl(clang::QualType)' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `clang::FunctionDecl::getParamDecl(unsigned int) const': zig_clang.cpp:(.text._ZNK5clang12FunctionDecl12getParamDeclEj[_ZNK5clang12FunctionDecl12getParamDeclEj]+0x9): undefined reference to `clang::FunctionDecl::getNumParams() const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `clang::SourceManager::getFileID(clang::SourceLocation) const': zig_clang.cpp:(.text._ZNK5clang13SourceManager9getFileIDENS_14SourceLocationE[_ZNK5clang13SourceManager9getFileIDENS_14SourceLocationE]+0x3a): undefined reference to `clang::SourceManager::getFileIDSlow(unsigned int) const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `clang::SourceManager::getLoadedSLocEntry(unsigned int, bool*) const': zig_clang.cpp:(.text._ZNK5clang13SourceManager18getLoadedSLocEntryEjPb[_ZNK5clang13SourceManager18getLoadedSLocEntryEjPb]+0x4f): undefined reference to `clang::SourceManager::loadSLocEntry(unsigned int, bool*) const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `clang::ASTContext::getTypeInfo(clang::QualType) const': zig_clang.cpp:(.text._ZNK5clang10ASTContext11getTypeInfoENS_8QualTypeE[_ZNK5clang10ASTContext11getTypeInfoENS_8QualTypeE]+0x10): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `llvm::RefCountedBase::Release() const': zig_clang.cpp:(.text._ZNK4llvm14RefCountedBaseIN5clang17DiagnosticsEngineEE7ReleaseEv[_ZNK4llvm14RefCountedBaseIN5clang17DiagnosticsEngineEE7ReleaseEv]+0x16): undefined reference to `clang::DiagnosticsEngine::~DiagnosticsEngine()' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang.cpp.o): in function `std::unique_ptr >::reset(clang::ASTUnit*)': zig_clang.cpp:(.text._ZNSt10unique_ptrIN5clang7ASTUnitESt14default_deleteIS1_EE5resetEPS1_[_ZNSt10unique_ptrIN5clang7ASTUnitESt14default_deleteIS1_EE5resetEPS1_]+0x10): undefined reference to `clang::ASTUnit::~ASTUnit()' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang_driver.cpp.o): in function `ZigClang_main': zig_clang_driver.cpp:(.text+0x276): undefined reference to `clang::driver::ToolChain::getTargetAndModeFromProgramName(llvm::StringRef)' /usr/bin/ld: zig_clang_driver.cpp:(.text+0x155c): undefined reference to `clang::driver::createDriverOptTable()' /usr/bin/ld: zig_clang_driver.cpp:(.text+0x15aa): undefined reference to `clang::ParseDiagnosticArgs(clang::DiagnosticOptions&, llvm::opt::ArgList&, clang::DiagnosticsEngine*, bool, bool)' /usr/bin/ld: zig_clang_driver.cpp:(.text+0x15f0): undefined reference to `clang::TextDiagnosticPrinter::TextDiagnosticPrinter(llvm::raw_ostream&, clang::DiagnosticOptions*, bool)' /usr/bin/ld: zig_clang_driver.cpp:(.text+0x16e2): undefined reference to `clang::DiagnosticIDs::DiagnosticIDs()' /usr/bin/ld: zig_clang_driver.cpp:(.text+0x171b): undefined reference to `clang::DiagnosticsEngine::DiagnosticsEngine(llvm::IntrusiveRefCntPtr, llvm::IntrusiveRefCntPtr, clang::DiagnosticConsumer*, bool)' /usr/bin/ld: zig_clang_driver.cpp:(.text+0x175d): undefined reference to `clang::serialized_diags::create(llvm::StringRef, clang::DiagnosticOptions*, bool)' /usr/bin/ld: zig_clang_driver.cpp:(.text+0x178a): undefined reference to `vtable for clang::ChainedDiagnosticConsumer' /usr/bin/ld: zig_clang_driver.cpp:(.text+0x17aa): undefined reference to `clang::DiagnosticsEngine::setClient(clang::DiagnosticConsumer*, bool)' /usr/bin/ld: zig_clang_driver.cpp:(.text+0x17cd): undefined reference to `clang::ProcessWarningOptions(clang::DiagnosticsEngine&, clang::DiagnosticOptions const&, bool)' /usr/bin/ld: zig_clang_driver.cpp:(.text+0x181a): undefined reference to `clang::driver::Driver::Driver(llvm::StringRef, llvm::StringRef, clang::DiagnosticsEngine&, llvm::IntrusiveRefCntPtr)' /usr/bin/ld: zig_clang_driver.cpp:(.text+0x1bad): undefined reference to `clang::driver::Driver::BuildCompilation(llvm::ArrayRef)' /usr/bin/ld: zig_clang_driver.cpp:(.text+0x1c04): undefined reference to `clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl >&)' /usr/bin/ld: zig_clang_driver.cpp:(.text+0x1d0c): undefined reference to `clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool)' /usr/bin/ld: zig_clang_driver.cpp:(.text+0x1eb0): undefined reference to `clang::driver::Driver::generateCompilationDiagnostics(clang::driver::Compilation&, clang::driver::Command const&, llvm::StringRef, clang::driver::Driver::CompilationDiagnosticReport*)' /usr/bin/ld: zig_clang_driver.cpp:(.text+0x1ef2): undefined reference to `clang::driver::Compilation::~Compilation()' /usr/bin/ld: zig_clang_driver.cpp:(.text+0x1f14): undefined reference to `clang::DiagnosticsEngine::~DiagnosticsEngine()' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang_driver.cpp.o): in function `llvm::RefCountedBase::Release() const': zig_clang_driver.cpp:(.text._ZNK4llvm14RefCountedBaseIN5clang13DiagnosticIDsEE7ReleaseEv[_ZNK4llvm14RefCountedBaseIN5clang13DiagnosticIDsEE7ReleaseEv]+0x16): undefined reference to `clang::DiagnosticIDs::~DiagnosticIDs()' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang_cc1as_main.cpp.o): in function `cc1as_main(llvm::ArrayRef, char const*, void*)': zig_clang_cc1as_main.cpp:(.text+0x1c8): undefined reference to `clang::TextDiagnosticPrinter::TextDiagnosticPrinter(llvm::raw_ostream&, clang::DiagnosticOptions*, bool)' /usr/bin/ld: zig_clang_cc1as_main.cpp:(.text+0x225): undefined reference to `clang::DiagnosticIDs::DiagnosticIDs()' /usr/bin/ld: zig_clang_cc1as_main.cpp:(.text+0x264): undefined reference to `clang::DiagnosticsEngine::DiagnosticsEngine(llvm::IntrusiveRefCntPtr, llvm::IntrusiveRefCntPtr, clang::DiagnosticConsumer*, bool)' /usr/bin/ld: zig_clang_cc1as_main.cpp:(.text+0x429): undefined reference to `clang::driver::createDriverOptTable()' /usr/bin/ld: zig_clang_cc1as_main.cpp:(.text+0x579): undefined reference to `clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool)' /usr/bin/ld: zig_clang_cc1as_main.cpp:(.text+0x83b): undefined reference to `clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool)' /usr/bin/ld: zig_clang_cc1as_main.cpp:(.text+0xdfa): undefined reference to `clang::getLastArgIntValue(llvm::opt::ArgList const&, llvm::opt::OptSpecifier, int, clang::DiagnosticsEngine*)' /usr/bin/ld: zig_clang_cc1as_main.cpp:(.text+0x14ac): undefined reference to `clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool)' /usr/bin/ld: zig_clang_cc1as_main.cpp:(.text+0x1a36): undefined reference to `clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool)' /usr/bin/ld: zig_clang_cc1as_main.cpp:(.text+0x1ae9): undefined reference to `clang::getLastArgIntValue(llvm::opt::ArgList const&, llvm::opt::OptSpecifier, int, clang::DiagnosticsEngine*)' /usr/bin/ld: zig_clang_cc1as_main.cpp:(.text+0x228a): undefined reference to `clang::driver::createDriverOptTable()' /usr/bin/ld: zig_clang_cc1as_main.cpp:(.text+0x23d3): undefined reference to `clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool)' /usr/bin/ld: zig_clang_cc1as_main.cpp:(.text+0x2adb): undefined reference to `clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool)' /usr/bin/ld: zig_clang_cc1as_main.cpp:(.text+0x2fe4): undefined reference to `clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool)' /usr/bin/ld: zig_clang_cc1as_main.cpp:(.text+0x3479): undefined reference to `clang::DiagnosticsEngine::~DiagnosticsEngine()' /usr/bin/ld: zig_cpp/libzig_cpp.a(zig_clang_cc1as_main.cpp.o): in function `getOutputStream(llvm::StringRef, clang::DiagnosticsEngine&, bool)': zig_clang_cc1as_main.cpp:(.text+0x3789): undefined reference to `clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool)' clang-9: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [CMakeFiles/zig0.dir/build.make:103: zig0] Error 1 make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/zig0.dir/all] Error 2 make: *** [Makefile:130: all] Error 2 >>> ERROR: zig: build failed