Skip to content

Commit

Permalink
Merge pull request #2785 from reubenmiller/fix-riscv-libc-dep
Browse files Browse the repository at this point in the history
fix(riscv): building using Rust 1.73 to avoid segmentation fault in release mode
  • Loading branch information
reubenmiller authored Mar 16, 2024
2 parents a5671dc + 44abd79 commit adf7ed9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
- armv5te-unknown-linux-musleabi
- x86_64-unknown-linux-musl
- i686-unknown-linux-musl
- riscv64gc-unknown-linux-gnu
- x86_64-apple-darwin
mode:
- --release
Expand Down Expand Up @@ -91,6 +90,13 @@ jobs:
cargo_options: --no-run

- target: riscv64gc-unknown-linux-gnu
mode: '--release'
# Using < 1.73 causes a segmentation fault when running a binary built with the --release flag
# Rust 1.73 includes both an updated llvm version and updated binutils which is like to have improved compatibility
# See: https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1730-2023-10-05
# There is a comment in the https://github.com/rust-lang/rust/pull/114048/ which refers to riscv64 support:
# * "Updated dist-riscv64-linux to use binutils 2.36 in order to recognize the zicsr feature, which is no longer part of the base ISA."
rust_channel: "1.73"
host_os: ubuntu-22.04
cargo_options: --no-run

Expand Down

0 comments on commit adf7ed9

Please sign in to comment.