Skip to content

cargotest: update xsv libc for RISC-V - #164419

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
HNO3Miracle:fix/cargotest-xsv-riscv-libc
Oct 16, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
HNO3Miracle:fix/cargotest-xsv-riscv-libc

Conversation

@HNO3Miracle

@HNO3Miracle HNO3Miracle commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #164339.

The xsv repository pinned by cargotest has a lockfile from 2018 that uses
libc 0.2.43. That version fails to compile on RISC-V because it does not
define c_char for the target. Add a cargotest lockfile for xsv with only
libc updated to 0.2.190 and use the existing lockfile override mechanism.

This keeps xsv and its other dependencies at their current pinned versions.

Tests:

  • cargo update -p libc --precise 0.2.190 in the pinned xsv checkout
  • cargo check --target riscv64gc-unknown-linux-gnu --tests in xsv
  • cargotest <cargo> <out-dir> xsv (394 selected tests passed on x86_64)

The full test suite has not been run on RISC-V hardware.

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Oct 16, 2026
@rustbot

rustbot commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

r? @jieyouxu

rustbot has assigned @jieyouxu.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Fallback group: @Mark-Simulacrum, @jieyouxu
  • @Mark-Simulacrum, @jieyouxu expanded to Mark-Simulacrum, jieyouxu
  • Random selection from Mark-Simulacrum, jieyouxu

@jieyouxu jieyouxu left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rust-bors

rust-bors Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 19b4d85 has been tentatively approved by jieyouxu

It will be put into the queue for this repository once PR CI succeeds.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 16, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 16, 2026
…uwer

Rollup of 8 pull requests

Successful merges:

 - #162467 (handle trait solver overflow in `codegen_select_candidate`)
 - #164111 (Fix: Construct byte string valtree array type using literal length)
 - #164227 (refine: respect recursion limit in RPITIT collector to prevent stack overflow)
 - #164279 (Make the `documentation` scope a sub-scope of the `object` scope)
 - #164353 (Update LoongArch64 Linux dist builder to LLVM 23)
 - #164365 (Avoid erased region on transmutability)
 - #164419 (cargotest: update xsv libc for RISC-V)
 - #164422 (Implement after-stack-frame-init-hook)
@rust-bors
rust-bors Bot merged commit 04167e0 into rust-lang:main Oct 16, 2026
14 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Oct 16, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 16, 2026
Rollup merge of #164419 - HNO3Miracle:fix/cargotest-xsv-riscv-libc, r=jieyouxu

cargotest: update xsv libc for RISC-V

Fixes #164339.

The xsv repository pinned by `cargotest` has a lockfile from 2018 that uses
`libc 0.2.43`. That version fails to compile on RISC-V because it does not
define `c_char` for the target. Add a `cargotest` lockfile for xsv with only
`libc` updated to `0.2.190` and use the existing lockfile override mechanism.

This keeps xsv and its other dependencies at their current pinned versions.

Tests:

- `cargo update -p libc --precise 0.2.190` in the pinned xsv checkout
- `cargo check --target riscv64gc-unknown-linux-gnu --tests` in xsv
- `cargotest <cargo> <out-dir> xsv` (394 selected tests passed on x86_64)

The full test suite has not been run on RISC-V hardware.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cargotest: xsv test fails to compile on riscv64 due to outdated libc

3 participants