-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
compile errors occur when the global cache is cleaned/wiped/deleted but the local cache is not because it has dangling references to global cache files #10158
Comments
Duplicate of #9439. |
btw what is going on here?
zig is relying on flock() for correctness; is there some reason it's unable to call flock()? |
Sorry @andrewrk, please ignore that warning. This is generated by the shell script wrapper as part of the Zig CC rules for Bazel. |
I've just been playing with
|
Possibly a shot in the dark, but you may be missing |
This fix is possibly related to this issue: 77836e0 |
I imagine the original issue for this is probably resolved. I haven't seen it in a long time, but also have been using a caching strategy where each invocation of Zig CC starts from scratch. I am still seeing the error mentioned in #10158 (comment) though.
I'll do some testing with a shared cache again and see how things go 😄 |
This looks like trying to cross compile something that depends on the symbol The only improvement to make here on zig's end would be:
...and then stop there, instead of mentioning undefined symbols. However since you mentioned that your host and target are both x86_64-macos, I have to ask, what |
Ahhh you know what I bet I know what happened for the original issue that you reported. |
Hmm, I'm not so sure that conclusion is correct. The |
If `-framework` is requested, but not found, the linker will err instead of creating a strange executable. ziglang#10299 (comment) Refs ziglang#9542 Refs ziglang#10299 Refs ziglang#10158
Looks like this issue still shows up occasionally. Version Example:
|
Zig Version
0.9.0-dev.1414+cde3dd365
Steps to Reproduce
Using bazel-zig-cc@361fc42b, build a cgo project with
zig cc
andpure = off
.Expected Behavior
It should build.
Actual Behavior
The text was updated successfully, but these errors were encountered: