Skip to content

Conversation

@zhaofengli
Copy link
Member

Motivation for this change

Bootstraps Rust native compilation on riscv64. The LLVM test suite needs to be disabled on RISC-V due to several failing tests (see commit message).

This depends on #115406 to actually work but can probably be merged now as it doesn't affect other platforms. Tested by building rustc and cargo on native riscv64.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Added a release notes entry if the change is major or breaking
  • Fits CONTRIBUTING.md.

The test suite leads to nothing but tears, sorrow, and wasted build
time. It probably should be disabled for all of them but doing only
9 (llvmPackages) and 11 (llvmPackages_latest, Rust) for now. Some of
the failures have been fixed in LLVM main:

- https://reviews.llvm.org/D97490
- https://reviews.llvm.org/D91043
@github-actions github-actions bot added the 6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. label May 31, 2021
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels May 31, 2021
@Mic92 Mic92 merged commit 97098e5 into NixOS:master Jun 1, 2021
@zhaofengli zhaofengli deleted the rust-riscv branch June 1, 2021 05:08
@zhaofengli zhaofengli mentioned this pull request Jun 2, 2021
zhaofengli added a commit to zhaofengli/nixpkgs that referenced this pull request Jan 5, 2022
zhaofengli added a commit to zhaofengli/nixpkgs that referenced this pull request Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants