-
Notifications
You must be signed in to change notification settings - Fork 214
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
Compiling buck2 with buck2's remote execution #395
Comments
For zstd/lib/decompress/../common/xxhash.h: I do see "zstd/lib/common/xxhash.h" here but it's commented out. Hard to tell why. It's worth trying with that uncommented and see what happens. For serde: this shouldn't happen with a newer serde version. |
I think my larger concern is why it is different from building locally vs remote? The setup on the workers vs local machine are near identical, so there shouldn't be any code version differences. |
Local isn't sandboxed and so it may be succeeding by accessing things that it shouldn't be. There's more discussion about supporting sandboxing locally here: #358 |
@allada - if the two fixes @dtolnay proposes works, it would be great to know and we can apply them. As @cjhopman says, this probably fails remotely because we haven't declared all the dependencies. Internally we use remote as a solid check that we haven't accidentally done that, but both the two areas you mention are things we do differently internally, so don't have that safety net with. |
I am the author of TurboCache and I was checking the compatibility of buck2 with TurboCache. Usually for these kinds of projects my "does it work" test is to try and compile the project itself with my tools. In this case it mostly worked, but was getting some
rustc
specific errors. It appears the errors are around buck2 possibly not setting the assets in the remote execution digests.After looking into it a bit, I kept thinking it was a problem with maybe not setting up the environment properly, so I decided to do the same test with BuildBarn, but it ended up giving the same errors.
For reference it does compile properly when not running remote.
rustc
version (on executing host:rustc 1.71.0-nightly (cca7ee581 2023-05-27)
. I tried both inside docker and outside docker, same results.Below are some of the errors returned by
rustc
. My question is, "is buck2 compilable under buck2 with remote execution?"The text was updated successfully, but these errors were encountered: