-
Notifications
You must be signed in to change notification settings - Fork 211
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
riscv64gc-unknown-linux-gnu: undefined reference to __bswapsi2'; undefined reference to
__ctzdi2'
#350
Comments
Similar issue on riscv64-gn-unknown-linux-musl with
Any pointer? |
This seems to be the place we need to add RISC-V compiler support to: https://github.com/rust-lang/rust/blob/master/src/ci/docker/host-x86_64/dist-various-1/Dockerfile#L108 |
alistair23
added a commit
to alistair23/rust
that referenced
this issue
Nov 7, 2023
The compiler-builtins for RISC-V are missing some key functions, such as __bswapsi2 [1]. We can't just pull in the LLVM compiler-rt builtins as the rust-lang/rust distribution container doesn't have a C compiler [2]. This patch adds RISC-V C compilers to the CI Dockerfile as the first step towards enabling LLVM compiler-rt builtins for RISC-V Rust. 1: rust-lang/compiler-builtins#350 2: rust-lang/compiler-builtins@e4f46b9 Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
bors
pushed a commit
to rust-lang-ci/rust
that referenced
this issue
Dec 19, 2023
The compiler-builtins for RISC-V are missing some key functions, such as __bswapsi2 [1]. We can't just pull in the LLVM compiler-rt builtins as the rust-lang/rust distribution container doesn't have a C compiler [2]. This patch adds RISC-V C compilers to the CI Dockerfile as the first step towards enabling LLVM compiler-rt builtins for RISC-V Rust. 1: rust-lang/compiler-builtins#350 2: rust-lang/compiler-builtins@e4f46b9 Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Dec 19, 2023
…Mark-Simulacrum ci: docker: dist-various-1: Include RISC-V C compilers The compiler-builtins for RISC-V are missing some key functions, such as __bswapsi2 [1]. We can't just pull in the LLVM compiler-rt builtins as the rust-lang/rust distribution container doesn't have a C compiler [2]. This patch adds RISC-V C compilers to the CI Dockerfile as the first step towards enabling LLVM compiler-rt builtins for RISC-V Rust. 1: rust-lang/compiler-builtins#350 2: rust-lang/compiler-builtins@e4f46b9
alistair23
added a commit
to alistair23/compiler-builtins
that referenced
this issue
Dec 19, 2023
Now that rust-lang/rust#117654 has been merged the rust-lang/rust distribution containers contain RISC-V C compilers. This means that we can now enable the "c" feature fallback. Resolves: rust-lang#350 Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
alistair23
added a commit
to alistair23/compiler-builtins
that referenced
this issue
Dec 19, 2023
Now that rust-lang/rust#117654 has been merged the rust-lang/rust distribution containers contain RISC-V C compilers. This means that we can now enable the "c" feature fallback. Resolves: rust-lang#350 Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
RalfJung
pushed a commit
to RalfJung/miri
that referenced
this issue
Dec 21, 2023
…lacrum ci: docker: dist-various-1: Include RISC-V C compilers The compiler-builtins for RISC-V are missing some key functions, such as __bswapsi2 [1]. We can't just pull in the LLVM compiler-rt builtins as the rust-lang/rust distribution container doesn't have a C compiler [2]. This patch adds RISC-V C compilers to the CI Dockerfile as the first step towards enabling LLVM compiler-rt builtins for RISC-V Rust. 1: rust-lang/compiler-builtins#350 2: rust-lang/compiler-builtins@e4f46b9
lnicola
pushed a commit
to lnicola/rust-analyzer
that referenced
this issue
Apr 7, 2024
…lacrum ci: docker: dist-various-1: Include RISC-V C compilers The compiler-builtins for RISC-V are missing some key functions, such as __bswapsi2 [1]. We can't just pull in the LLVM compiler-rt builtins as the rust-lang/rust distribution container doesn't have a C compiler [2]. This patch adds RISC-V C compilers to the CI Dockerfile as the first step towards enabling LLVM compiler-rt builtins for RISC-V Rust. 1: rust-lang/compiler-builtins#350 2: rust-lang/compiler-builtins@e4f46b9
RalfJung
pushed a commit
to RalfJung/rust-analyzer
that referenced
this issue
Apr 27, 2024
…lacrum ci: docker: dist-various-1: Include RISC-V C compilers The compiler-builtins for RISC-V are missing some key functions, such as __bswapsi2 [1]. We can't just pull in the LLVM compiler-rt builtins as the rust-lang/rust distribution container doesn't have a C compiler [2]. This patch adds RISC-V C compilers to the CI Dockerfile as the first step towards enabling LLVM compiler-rt builtins for RISC-V Rust. 1: rust-lang/compiler-builtins#350 2: rust-lang/compiler-builtins@e4f46b9
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was trying to bootstrap Rust beta (1.43.0) for Linux/riscv64 on Ubuntu 20.04 host. I have done that before successfully with 1.42.0 (stable). This time I also added llvm-libuwnind to config.
This failed:
Do we need something like this but also for riscv64?
#341
The text was updated successfully, but these errors were encountered: