-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Linking error with stage2 #11506
Comments
see Troubleshooting in wiki entry I added for the meantime https://github.com/ziglang/zig/wiki/Troubleshooting-Build-Issues#building-stage2-and-stage3 |
Hi, Thanks for Your help. I have tried these, but got no luck. I've forgotten to mention that I have to create a symlink, to fix the following error (missing cc in PATH):
When I link to |
I've just tried this with #12508 (cmake-stage3 branch) and stage3 build gives this very same error. |
I'm not really sure, if the Zig build system handles symlinks in all places yet or will ever support that due to the many corner cases and easy potential to wracking havoc with sandboxing (if unhandled). |
Zig Version
0.10.0-dev.1853+9c2cbe39c
Steps to Reproduce
I have followed these steps: https://github.com/ziglang/zig/wiki/Building-Zig-From-Source
The output below is after building stage1 with cmake, but I even tried using a prebuilt zig version (1/b step), got similar error message.
I use the following guix.scm manifest file to install dependencies: (
guix shell -m guix.scm
)I can reproduce this error on a rpi4 and x86_64 too. The base system is alpine on aarch64 and manjaro on x86_64. Build deps came from guix in both case.
Expected Behavior
There should be no linking issue.
Actual Behavior
Running
build/zig -p stage2 -Denable-llvm
gives the following error:The text was updated successfully, but these errors were encountered: