-
Notifications
You must be signed in to change notification settings - Fork 891
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
No init build against musl libc #354
Comments
Building |
Alright then, my bad. This issue isn't really relevant to rustup then, so I'll close it. Thanks anyway! |
Using https://github.com/emk/rust-musl-builder I've just built what appears to be a perfectly good |
It's still not possible to build a rustc that works on musl distros like Alpine. PR rust-lang/rust#40113 is one of the requirements to build such rustc. |
That’s not entirely correct. It is possible (see APKBUILD), I did it in August 2016 (with your help), but it requires cross-compiling rustc against musl on GNU-based system and applying some hacks. It’d like to also note that there’s no problem with musl itself, just in Rust build system. 😿 |
Oy, the cargo package on alpine:edge fails to access the cargo index, due to linking against a broken libgit2... Could someone fix the Alpine rust & cargo packages plz |
Rust and Cargo in Alpine testing are currently broken. We’ve updated Rust to the latest version, with better patches that allow both dynamic and static linking on Alpine. Initially it seemed that everything is okay, but then we found many breakages. Still hard working on it, fixing Rust build system… |
Now that rust-lang/rust#40113 has closed can't this be reopened? |
@japaric WDYT? |
The same thing as almost two years ago:
Is rust-lang/rust producing rustc binaries for x86_64-unknown-linux-musl? I'm no longer involved with infrastructure stuff so I don't know. Producing rustc binaries is a rust-lang/rust issue that the infra team is in charge of so you should ask them. P.S. Also, I'm not a rustup developer so I can't reopen issues in this repo. |
Thanks I will ping them then. This is super important for things like building rocket services into a docker container |
No, they still do not. 😞 However, it is possible to build rustc on and for x86_64-unknown-linux-musl system with fully working both static and dynamic compilation, but it still requires some patches (see here). We in Alpine Linux do it since rust 1.17.0 (package rust). About half of the patches has been already upstreamed, somewhere between 1.19.0 and 1.21.0. |
@corbinu @japaric Not sure if this is helpful, but it is possible to run I've got my fingers crossed that |
@raphaelcohn Your amazing! After only a little playing it looks like you don't even need the patches
However it does appear that if I try to compile anything with a C/C++ dep then it implodes on jemalloc. I will have to look into other solutions there. |
@raphaelcohn actually it looks like this may finally be coming anyway! rust-lang/rust#55163 |
There's no build of
rustup-init
against musl libc, which means that rustup cannot be installed on Alpine Linux, for example, without buildingrustup
yourself.The text was updated successfully, but these errors were encountered: