-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
"Unexpected" error building project with dependencies #23187
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
Comments
Likely a duplicate of #17342 If so, then iCloud syncing is interfering with filesystem operations. Some potential workarounds are mentioned in #17342 (comment) and later comments. |
It didn't seem likely that this was related to that ticket in particular — I've had this issue on two separate machines, including a VM without an associated Apple account, and neither of which had done anything to enable any non-default backup behaviors. I did go to the extent of building a Stage 2 Zig compiler, in order to try and produce some better debugging tools, with the result being this:
According to the manpage:
If there's anything more I can do to help debug this problem, please let me know. I had previously been able to work around this by manually moving the directory, but that no longer seems to be a viable option as of |
As a work-around, you might try setting the |
@rootbeer Running with fully local values (e.g. |
One more stab in the dark here ... over in #23110 there is some suggestion that a corrupted cache can trigger subsequent, persistent problems with cache files. So if you haven't tried Can you share more details about the project you're building? If its not public, have you had any luck making a minimal repro? Is this project one you're building just once and it fails, or are you doing active development in it, and it eventually gets stuck? |
@rootbeer I've definitely blown the cache files away multiple times (and, in the case of the The project in question is private, but a good chunk of it is just building public C/++ libraries. The failures have happened pretty consistently since I first put together the build scripts, but I could previously ( For what it's worth, the project is broadly structured like this:
After verifying that it wasn't the obvious dependency name conflict (conclusion: it wasn't), I checked the next most obvious thing, which is that the |
Zig Version
0.14.0
Steps to Reproduce and Observed Behavior
Preconditions:
project/build.zig.zon
, which points toproject/child/build.zig.zon
by.path
project/child/build.zig.zon
, which points to additional dependencies by.url
Run:
zig build
Result:
(Running
mv ${source} ${dest}
in the terminal succeeds without issue.)Expected Behavior
I ideally would expect Zig to build the project successfully, or not fail a simple rename, or to at least provide an actionable error.
The text was updated successfully, but these errors were encountered: