Closed Vexu closed 2 years ago
Trying to follow https://github.com/ziglang/zig/wiki/Building-Zig-From-Source#instructions-1 to the best of my understanding with:
../zig-bootstrap/out/host/bin/zig build -Dstatic-llvm --search-prefix ../zig-bootstrap/out/host --zig-lib-dir lib
Results in a bunch of errors in the form of:
error(compilation): clang failed with stderr: ./zig/src/zig_llvm.cpp:1426:1: error: static assertion failed due to requirement '(llvm::Triple::ArchType)ZigLLVM_hexagon == Triple::hexagon': ./zig/src/zig_llvm.cpp:1427:1: error: static assertion failed due to requirement '(llvm::Triple::ArchType)ZigLLVM_m68k == Triple::m68k': ./zig/src/zig_llvm.cpp:1428:1: error: static assertion failed due to requirement '(llvm::Triple::ArchType)ZigLLVM_mips == Triple::mips': ./zig/src/zig_llvm.cpp:1429:1: error: static assertion failed due to requirement '(llvm::Triple::ArchType)ZigLLVM_mipsel == Triple::mipsel': ./zig/src/zig_llvm.cpp:1430:1: error: static assertion failed due to requirement '(llvm::Triple::ArchType)ZigLLVM_mips64 == Triple::mips64': ./zig/src/zig_llvm.cpp:1431:1: error: static assertion failed due to requirement '(llvm::Triple::ArchType)ZigLLVM_mips64el == Triple::mips64el': ./zig/src/zig_llvm.cpp:1432:1: error: static assertion failed due to requirement '(llvm::Triple::ArchType)ZigLLVM_msp430 == Triple::msp430': ...
Applying #12898 changes those compilation errors into linking errors:
... ld.lld: error: undefined symbol: llvm::sys::getDefaultTargetTriple() >>> referenced by zig_clang_driver.cpp:475 (src/zig_clang_driver.cpp:475) >>> ./zig/zig-cache/o/bac3b51e9033a9abf8b2e98f63986fc9/zig_clang_driver.o:(ZigClang_main) >>> referenced by zig_clang_cc1as_main.cpp:227 (src/zig_clang_cc1as_main.cpp:227) >>> ./zig/zig-cache/o/3cb3ed9e9bdb8df032c4aa5e0322e7c5/zig_clang_cc1as_main.o:((anonymous namespace)::AssemblerInvocation::CreateFromArgs((anonymous namespace)::AssemblerInvocation&, llvm::ArrayRef<char const*>, clang::DiagnosticsEngine&)) ld.lld: error: undefined symbol: clang::driver::Driver::Driver(llvm::StringRef, llvm::StringRef, clang::DiagnosticsEngine&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) >>> referenced by zig_clang_driver.cpp:475 (src/zig_clang_driver.cpp:475) >>> ./zig/zig-cache/o/bac3b51e9033a9abf8b2e98f63986fc9/zig_clang_driver.o:(ZigClang_main) ...
was this perchance fixed by 0b47e69b7c0aedbc142400305cda86ef58b41656?
Using 0.10.0-dev.4423+5127dae7a the first issue is solved but I still get the linking errors
0.10.0-dev.4423+5127dae7a
Trying to follow https://github.com/ziglang/zig/wiki/Building-Zig-From-Source#instructions-1 to the best of my understanding with:
Results in a bunch of errors in the form of:
Applying #12898 changes those compilation errors into linking errors: