-
Notifications
You must be signed in to change notification settings - Fork 518
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
Building with prost-build 0.10 fails on Windows #626
Comments
This seems like some permissions issue with yalls runner? CI for windows on prost seems to work and I am not a windows/cmake expert enough to understand why its failing here. I would suggest two things though:
|
I was able to build successfully after getting this error by using VS2017 build tools; I'm very unfamiliar with tooling like this but it seems that VS2019 build tools and newer get this error. |
I solved it by getting the protoc and added it to the env path, as @LucioFranco said :) |
Indeed, pulling in protoc has solved it for us as well, thanks for the pointer. Too bad the errors obscure this issue. |
I am encountering this exact same issue as well. Looks like a race condition, as the file name is not always the same. |
FYI. I've now got this happening on two computers that were building fine a few days ago (always been VS2022). Definitely not a "closed" issue. |
The failure is definitely transient and does not always happen. Tends to happen less on faster machine with 16 cores than slower laptop with 4 cores. Again strongly suspect a race condition (e.g. trying to compile a file that is not fully generated/written/closed yet). Using a prebuilt protoc is relatively easy in a CI/CD environment (esp. GitHub Actions) but manually setting it up for every workstation is a bit of a pain. So would appreciate if this could be fixed. |
Right, though the fix for this issue needs to be done in the |
In my machine (Windows 11), the permission denied error was due to my "PROC" environment variable pointing to a folder, instead of to the "protoc"binary itself. What i did was change the value for the env var, instead of putting the folder where I unzipped protoc, I put the fully qualified path to the binary. Worked right away. The message in windows is misleading. Permission denied. Of course it is denied, Rust was trying to execute a folder. lol. Hope this helps. Spent a bunch of hours trying to figure this out. |
After upgrading prost and prost-build to 0.10 (or 0.10.1), the Windows build of vector reliably fails.
The proximate error appears to be this:
The full log:
https://gist.github.com/bruceg/7b290525da8b7dde4912c1e93baa48bc
(In the error report in the tonic repository, we reported an occasional failure on Linux as well, but I have been unable to reproduce that in more controlled circumstances, so I'm going to assume that's a separate issue)
The text was updated successfully, but these errors were encountered: