-
Notifications
You must be signed in to change notification settings - Fork 255
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
Build error: thread 'main' panicked, No such file or directory #3369
Comments
This means that the following line in the build script failed: built::write_built_file().expect("Failed to acquire build-time information");
|
Do you know where it would be trying to write to? Is there a way to control that? |
Also, is this an error in writing an error message, in which case we still need to solve the "Failed to acquire build-time information" message? |
No, the error is "Failed to acquire build-time information". The message after that is the inner error message, which tells us why it failed to acquire build-time information: IO error
It tries to write to a temporary directory created for the build. It's the
The out dir is inside the |
Okay, apparently our docker images have no read-only partitions, so that shouldn't be an issue. I'm still not sure what build-time information it failed to acquire though. Is it possible there is a missing dependency? If I'm able to reproduce locally with docker, what steps can I take to debug this? The error message doesn't even tell me what file it's trying to read/write... |
Possibly related to lukaslueg/built#14, I wish the error message was a little more helpful... |
Found a fix. If I build rust with developer tools (clippy, rustdoc, rustfmt, rust-analyzer) then the build succeeds. Does that sound right? |
Ah. It's probably rustdoc then. I think |
Thanks, that clears that up! I'm new to the rust build system so I'm not sure if/where the dependency on rustdoc is listed. I'll chalk this one up to rust needing better error messages. Thanks again for the help! |
Does this need a bump in |
I'm afraid so |
@lu-zero, bumped to |
Describe the bug
I'm trying to build kornia-rs, which uses maturin and cargo to build a bunch of dependencies, including rav1e. The rav1e build in particular fails for me on our CI.
To Reproduce
I'm unable to reproduce the issue locally, I can only reproduce it on a bare-bones CI image. The Linux and macOS logs can be found at these links. It should be possible to reproduce this issue using docker with the instructions at the bottom of the log.
Expected behavior
I would expect rav1e to build without issue. This happens locally but not in CI, so maybe I'm missing some dependency?
Required Information
This is in CI, so running custom commands is a little tricky, but here is what I know at least:
Toolchain:
Version:
Operating system:
Console Output
P.S. I know next to nothing about rust/cargo/rav1e, I'm just an ignorant Python user 😄
@edgarriba
@ducha-aiki
@lferraz
@shijianjian
@cjpurackal
@johnnv1
The text was updated successfully, but these errors were encountered: