-
Notifications
You must be signed in to change notification settings - Fork 211
Cannot compile with rust 1.70 and x86_64-unknown-linux-musl target #363
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
I can not reproduce it. Can you clear your Cargo cache and try again? I am using the following code for testing: fn main() {
let mut buf = [0u8; 32];
getrandom::getrandom(&mut buf).unwrap();
println!("{buf:?}");
} If the error persists, then I think you should create an issue in the rust-lang/rust repository, since it looks like a compiler regression. After a cursory search I was unable to find a similar issue.
|
The problem seems related to |
The snippet was compiled with Please provide a minimal reproducible example. |
I am sure it is not Cargo cache related, since I build it in a Docker container, I will try to provide an example |
I suffer from the same issue, i may also approve that he issue is not related to cargo since i'm also building in Docker container |
I see exactly the same issue. https://github.com/facebook/buck2/actions/runs/5174587176/jobs/9321086346 for our public link to the failing job. I confirm that pinning |
Ah, the issue is triggered only with cfg_if! {
if #[cfg(any(target_os = "linux", target_os = "emscripten"))] {
use libc::open64 as open;
} else {
use libc::open;
}
} IIUC before v0.2.145 As a side note: you probably should nudge the dependencies which pull |
Actually, it fails as well with 1.69, it was just random hasard that it failed when I upgraded to 1.70. I will try to nudge the dependencies as advised. |
I have created |
Thanks, let's see if that solves it for the time being : walking back the dependency tree to update everything to 0.2 will take some time... |
As a temporary workaround it should be sufficient to downgrade |
I will do that. Thanks a lot ! |
For those not well versed in cargo update -p libc --precise 0.2.144 Thank you for debugging it ❤️ |
libc v0.2.145 got yanked, so this issue should be resolved. |
Thanks for the information, and for your help ! |
…ose_edit` API Endpoint (#508) * implemented the basics of an extendible feedback architecture * bumped the package.json * downgrade of libc to 0.2.144 due to rust-random/getrandom#363
Summary: Per the discussion in rust-random/getrandom#363, libc-0.2.145 (the version that was causing issues with musl) was yanked. Let's bump to the latest available patch version. Reviewed By: get9 Differential Revision: D47425239 fbshipit-source-id: ba029b3d23dd49b7ba10e60d49f1779177cff8fc
Hello,
I get the following error :
It works fine with 1.69 .
The text was updated successfully, but these errors were encountered: