-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Cargo error after installing last nightly on aarch64-unknown-linux-musl (Alpine 3.15 based docker container) #121980
Comments
Please include the version of the toolchain via |
Steps to reproduce:
|
Transferred to rust-lang/rust, since this was a change via #121666. cc @ChrisDenton |
I believe the issue is that |
Hm I thought our minimum support was for 1.2.3? E.g. /~https://github.com/rust-lang/rust/blob/7606c13961ddc1174b70638e934df0439b7dc515/src/ci/docker/scripts/musl-toolchain.sh#L48C53-L48C58 Edit: Ah rust-lang/compiler-team#572 |
Ah. Yea, the minimum requirements were updated to musl 1.2.3 in Rust 1.71. Should the minimum version be specified in https://doc.rust-lang.org/nightly/rustc/platform-support.html? cc @wesleywiser if you had a reason to not document that? |
Unless someone knows of a way for the binary to produce a better error message when a too-old environment is used for the |
I'm not aware of an option here either so I'm going to close this. The proper solution is probably to have musl's loader detect the situation and offer a better error message. |
Just want to make sure I properly understand the resolution of this thread since I'm getting the same error. Does this mean that musl 1.1 and earlier 1.2.x versions are no longer supported by Rust and it's now expected that it's not possible to build on these versions? |
Hi @rochdev, Alpine uses a different numbering scheme than musl does. You are correct that Rust expects at least musl 1.2.3 to operate which is available in Alpine 3.16 and newer (Alpine 3.15 and older are EOL). |
if you don't need to rely on the default thread name and don't want to edit libstd you can put this somewhere in your code to stub out the missing function. use std::{ffi::{c_int, c_char}, os::unix::thread::RawPthread};
#[no_mangle]
pub extern "C" fn pthread_getname_np(_thread: RawPthread, _name: *mut c_char, _len: usize) -> c_int {
13 // EACCES
} BTW if we are serious about dropping rust/library/std/src/thread/tests.rs Lines 41 to 42 in 3cbb932
|
Problem
After upgrading to the last nightly
rustup update nightly
, I have an error when trying to usecargo
:Same issue with
rustc
Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
No response
The text was updated successfully, but these errors were encountered: