-
Notifications
You must be signed in to change notification settings - Fork 347
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
zig build undefined symbols on ld linking #1486
Labels
A-zig
Area: zig cross-compiler
Comments
This is a know limitation, I don't know how to cross-compile with zig cc + external symbols for a nonnative target |
I think it's probably due to unknown linking path or wrong environment variables, those are properly set in gcc. |
I am not sure if this post can solve the problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
Describe your issue
My rust program with opencv-rs builds fine without zig glibc version assigned.
But when I built with zig, no matter what version I am using, it missed the libraries should be linked in.
What target(s) are you cross-compiling for?
aarch64-unknown-linux-gnu
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.5 (7a2b4e4 2024-04-29)
Example
No response
Additional information / notes
No response
The text was updated successfully, but these errors were encountered: