Skip to content

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

Closed
@fintelia

Description

@fintelia
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.

Activity

gnzlbg

gnzlbg commented on Jun 28, 2019

@gnzlbg
Contributor

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.

added this to the someday milestone on Aug 29, 2024
tgross35

tgross35 commented on Aug 29, 2024

@tgross35
Contributor

It seems like this may have been addressed by #1684. Please feel free to reopen or refile if that isn't the case.

removed this from the someday milestone on Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @gnzlbg@fintelia@tgross35@JohnTitor

        Issue actions

          Support future riscv64-unknown-linux-elf target · Issue #1415 · rust-lang/libc