zig-bootstrap icon indicating copy to clipboard operation
zig-bootstrap copied to clipboard

x86_64-linux-musl

Open BearzRobotics opened this issue 8 months ago • 1 comments

Building against the latest git clone in the final step of installing zig it errors out with undefined symbols. I don't understand how it can build all three stages and then on the finial step error out.

For context I'm on chimera linux which is a clang/musl based distro.

zbuild_02_UP.log

Attached is the full log of the build. There are 61 errors along this line.

[ 94%] Built target zig2 [100%] Building stage3 install +- install zig +- zig build-exe zig ReleaseFast native 61 errors error: ld.lld: undefined symbol: operator new(unsigned long, std::align_val_t) note: referenced by MemAlloc.cpp note: MemAlloc.cpp.o:(llvm::allocate_buffer(unsigned long, unsigned long)) in archive /data/git/zig-bootstrap/out/host/lib/libLLVMSupport.a error: ld.lld: undefined symbol: operator delete(void*, unsigned long, std::align_val_t) note: referenced by MemAlloc.cpp note: MemAlloc.cpp.o:(llvm::deallocate_buffer(void*, unsigned long, unsigned long)) in archive /data/git/zig-bootstrap/out/host/lib/libLLVMSupport.a error: ld.lld: undefined symbol: operator new[](unsigned long) note: referenced by raw_ostream.cpp note: raw_ostream.cpp.o:(llvm::raw_ostream::SetBuffered()) in archive /data/git/zig-bootstrap/out/host/lib/libLLVMSupport.a note: referenced by ios.instantiations.cpp.o:(std::__1::basic_filebuf<char, std::__1::char_traits>::setbuf(char*, long)) in archive /usr/lib64/libc++.a note: referenced by ios.instantiations.cpp.o:(std::__1::basic_filebuf<char, std::__1::char_traits>::setbuf(char*, long)) in archive /usr/lib64/libc++.a note: referenced 572 more times error: ld.lld: undefined symbol: operator delete

BearzRobotics avatar Feb 27 '25 00:02 BearzRobotics