Skip to content
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

Support future riscv64-unknown-linux-elf target #1415

Open
fintelia opened this issue Jun 28, 2019 · 1 comment
Open

Support future riscv64-unknown-linux-elf target #1415

fintelia opened this issue Jun 28, 2019 · 1 comment
Labels

Comments

@fintelia
Copy link
Contributor

Rust currently has support for bare metal RISC-V targets, but cannot compile for RISC-V Linux ones because it lacks standard library support. This is partially blocked because the libc crate does not recognize target_arch = "riscv64" and thus does not export symbols like c_int, c_void, and uintptr_t for it.

@gnzlbg
Copy link
Contributor

gnzlbg commented Jun 28, 2019

A good place to start would be by adding a docker container for the target, e.g., that install gcc-riscv64-linux-gnu libc6-dev-riscv64-cross qemu-system-riscv64, and compiles libc for the target. That should not be blocked by anything.

If compilation fails, that container can be added to allow_failures: in the .travis.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants