Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Support for aarch64-linux #10

Closed
koxu1996 opened this issue Feb 7, 2024 · 2 comments · Fixed by #13
Closed

Support for aarch64-linux #10

koxu1996 opened this issue Feb 7, 2024 · 2 comments · Fixed by #13

Comments

@koxu1996
Copy link

koxu1996 commented Feb 7, 2024

By default rustc0 is released for the following platforms:

  • aarch64-apple-darwin
  • x86_64-apple-darwin
  • x86_64-unknown-linux-gnu

In risc0pkgs, x86_64-unknown-linux-gnu is used for all Linux machines:

if stdenv.hostPlatform.isLinux
then
builtins.fetchurl
{
url = "https://github.com/risc0/rust/releases/download/test-release-2/rust-toolchain-x86_64-unknown-linux-gnu.tar.gz";
sha256 = "sha256-ilCDZk+YY8lUFqdITR1w1OxBsjNVfUlYUTQDzk2/D9s=";
}
else if stdenv.hostPlatform.system == "x86_64-darwin"

I would like to make it compatible with aarch64-linux.

@koxu1996
Copy link
Author

koxu1996 commented Feb 7, 2024

I was able to compile toolchain for aarch64-linux, by running the following commands on my Asahi M2 machine:

$ cargo install cargo-binstall
$ cargo binstall cargo-risczero
$ sudo pacman -S cmake
$ cargo risczero build-toolchain
$ cd ~/.risc0/rust/build/aarch64-unknown-linux-gnu/stage2/
$ GZIP=-9 tar -czvf /tmp/rust-toolchain-aarch64-unknown-linux-gnu.tar.gz .

Here is rust-toolchain-aarch64-unknown-linux-gnu.tar.gz (393 MiB, sha256: d9c6a874994adc3dbd5af275d0a4a4672792c099a8bc6358406da0073dc95297).

koxu1996 added a commit that referenced this issue Feb 7, 2024
Stored in LFS.

NOTE: Toolchain built as part of:
- #10 (comment)
@marijanp marijanp linked a pull request Apr 18, 2024 that will close this issue
@marijanp
Copy link
Contributor

Added in #13

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants