dfinity / dfinity/sdk

Building DFX on aarch64-linux

Open
#3,910 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
204
Forks
98
PR merge metrics
No merged PRs in 30d

Description

Dear SDK team, is there a good reason for restricting the supported builds for linux and windows to x86_64 only?

https://github.com/dfinity/sdk/blob/master/src/dfx/assets/build.rs#L102

I'm trying to build in a Ubuntu VM hosted on macOS and get the panic on line 103 of the linked file because the OS cannot be recognized. But simply changing the line 102 to this, produces a working build:

("x86_64" | "aarch64", "linux" | "windows") => sources.x86_64_linux,

Please consider relaxing the architecture matching 🙏

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/dfx/assets/build.rs around lines 102–103 and reproduce the aarch64-linux build in the Ubuntu VM described in the issue. Check how the supported architecture and OS are matched, then verify that the relaxed matching produces a working build without breaking existing x86_64 Linux and Windows builds.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.