-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
can't compile std for riscv64gc-unknown-linux-musl #93975
Comments
rust-lang/libc#2664 |
Cool I'll wait for that to merge then. |
@12101111, does that pave the way for full std availability on riscv musl? |
Just #94052 is actually not sufficient. rust-lang/libc#2784 is also needed. Furthermore, to have the latest Rust release (1.6.0 at the time of writing) compile on riscv64 musl it is also necessary to update the vendored libc creates accordingly. Furthermore, I ran into the following issue when attempting to bootstrap a stage2 rustc on Alpine Linux (which uses musl libc):
Not sure what this is about as my binutils does seem to support With those outlined changes I was able to compile a stage2 rustc 1.6.0 for riscv64 on Alpine Linux. While compiling simple programs with this rustc works, compiling rust itself sadly seems to trigger compiler bugs. |
I tried to reproduce this bug, and eventually succeeded in cross-compiling code, building rustc from source yesterday (commit 2eaeb1e ). I picked a random project ( https://github.com/rust-lang/regex ) and did:
and this command succeeded. (I used a So either the issue has been fixed, or it's specific to the project @blackdragon2447 was trying to build.
(I'm a little confused about the Unless the OP provides more information, I think it would be safe to close this bug. @nmeum 's comment seems to point to different issues from the original bug, which may still exist. |
Actually @nmeum, could you clarify what you mean by "With those outlined changes I was able to compile a stage2 rustc 1.6.0 for riscv64 on Alpine Linux. While compiling simple programs with this rustc works, compiling rust itself sadly seems to trigger compiler bugs"? Do you mean that compiling stage3 doesn't work? |
I seem to be able to compile my project now, so I guess the issue on rusts side is gone. This issue should be safe to close then. |
trying to compile a project for
riscv64gc-unknown-linux-musl
usingcargo build --target riscv64gc-unknown-linux-musl -Zbuild-std=core,std,panic_abort
will result in cargo reporting not being able to find valueSYS_clone3
while building the std:i do have rustflags setup specifying the correct c toolchain for the target in
~/.cargo/config.toml
:Meta
rustc --version --verbose
:rustup show
The text was updated successfully, but these errors were encountered: