-
Notifications
You must be signed in to change notification settings - Fork 42
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
macos: missing resolv.h #131
Comments
Looking at ziglang/zig#17152, looks like Today's zig source (ziglang/zig@7c5d01b) shows that there is no MacOS-related
|
Also, ziglang/zig#12628 is linux-specific and is only linking step, so unrelated here. |
We were using v2.1.2 of this repo, so we are only on Zig v0.11.0 and not yet affected by the change in I am not sure if #10 is the only solution but it might be one solution. > fd resolv.h /Library/Developer/CommandLineTools
/Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/resolv.h
/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include/resolv.h
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/resolv.h |
Same with 0.11.0:
|
I can into this as well. As near as I can tell there is no easy way to cross compile Go programs for macos because of this. It always fails with the error:
It would definitely be nice to be able to use the Zig compiler to handle the CGo cross compile duties. |
One thing I tried here was to use native Go network stack:
|
I guess we need to wait out until |
See https://buildbuddy.buildbuddy.io/invocation/c6420695-476d-426b-8a7d-579220dc612f?actionDigest=648cda0569553603f5dec696187ed931ff0c521bad72caa9cfbf3c32dab687a5%2F183&actionResultDigest=dfac351eeb1fd8186001dcf2088eec77d38f8b39576bdcf5f9d895c6cca643a0%2F183#action for detail of failing action.
Possibly related to ziglang/zig#16674 and/or ziglang/zig#12628
The text was updated successfully, but these errors were encountered: