ARM Musl target error

Rustup has got some new ARM Musl targets that I'd like to try out, bug I always get the following error:

$ rustup target add armv7-unknown-linux-musleabihf
error: component 'rust-std' for 'armv7-unknown-linux-musleabihf' is unavailable for download

Are those targets not ready yet?

I'm on Mac, using the latest nightly.

These targets have been added to the compiler but we are not yet producing binary releases of std for them. There are some changes that need to be done to rustbuild before we can start producing them.

Ok thanks.
But then they shouldn't be listed with rustup target list.

Yeah, that's definitely wrong. I've filed an issue.

2 Likes

Thanks!

I believe this is a duplicate of https://github.com/rust-lang-nursery/rustup.rs/issues/326.

Does anybody know if the ARM musl targets are now meant to be available and working?

The download size of the standard library is suspiciously small, only 13 MB as opposed to the gnu targets which are 54 MB.

info: downloading component 'rust-std' for 'armv7-unknown-linux-musleabihf'
 13.0 MiB /  13.0 MiB (100 %) 675.2 KiB/s ETA:   0 s                        
info: downloading component 'rust-std' for 'armv7-unknown-linux-gnueabihf'
 54.5 MiB /  54.5 MiB (100 %) 675.2 KiB/s ETA:   0 s                

When I try running my application with the musl version it terminates when I call stat::umask from the nix crate.
Is this expected? It works with the gnu target.
Unfortunately, I don't have the stdout/stderr output as it runs inside a docker container on my NAS, that has apparently disabled logging.