Skip to content

Request: support for riscv64-unknown-linux-musl #1197

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
2 tasks done
walksanatora opened this issue Feb 1, 2023 · 3 comments · Fixed by #1664
Closed
2 tasks done

Request: support for riscv64-unknown-linux-musl #1197

walksanatora opened this issue Feb 1, 2023 · 3 comments · Fixed by #1664
Labels
A-musl Area: musl libc targets A-riscv Area: riscv targets feature-request

Comments

@walksanatora
Copy link

Checklist

Describe your request

Simply support for riscv64-unknown-linux-musl when cross compiling
I tried to make my own docker image by modifying the aarch64 musl image, but i could not get it right

Describe why this would be a good inclusion for cross

some systems use systems like alpine use musl and alpine is used as the basis for many lightweight/embeded llinux and riscv is a small architecture so it (appears to be) easy to emulate
support for riscv64 musl would be very nice for cross compiling (it is also a rust target)

@Emilgardis Emilgardis added A-musl Area: musl libc targets A-riscv Area: riscv targets labels Feb 1, 2023
@Coekjan
Copy link

Coekjan commented Oct 31, 2024

Rust 1.82 Promote riscv64gc-unknown-linux-musl to tier 2. Any progress on this issue?

@karalabe
Copy link

karalabe commented Dec 7, 2024

It doens't seem to work though:

curl -sSf https://sh.rustup.rs | sh -s -- --profile minimal -y

curl: (22) The requested URL returned error: 404
rustup: installer for platform 'riscv64gc-unknown-linux-musl' not found, this may be unsupported

@Emilgardis
Copy link
Member

@karalabe that's related to host tools, we only need target to work, so not an issue

a-wing added a commit to a-wing/cross that referenced this issue Apr 11, 2025
a-wing added a commit to a-wing/cross that referenced this issue Apr 12, 2025
github-merge-queue bot pushed a commit that referenced this issue Apr 12, 2025
Close #1197

* * *

Only use crosstools-ng

If use [musl-cross-make](https://github.com/richfelker/musl-cross-make),
`binutils` version is to low too `ld` cannot link in riscv

I test [musl.cc](http://musl.cc/)
[riscv64-linux-musl-cross.tgz](http://musl.cc/riscv64-linux-musl-cross.tgz),
It's ok `binutils: 2.37`, `ld` can link, It's working

But, `musl-cross-make` is only support `binutils: 2.33.1`, `binutils:
2.33.2` is big changed, The patch is unavailable, migration this patch
is very complex (a lot of conflict). BTW: These patches have nothing to
do with riscv
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-musl Area: musl libc targets A-riscv Area: riscv targets feature-request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants