Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x86_64-linux-musl #208

Open
BearzRobotics opened this issue Feb 27, 2025 · 0 comments
Open

x86_64-linux-musl #208

BearzRobotics opened this issue Feb 27, 2025 · 0 comments

Comments

@BearzRobotics
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant