dapptools icon indicating copy to clipboard operation
dapptools copied to clipboard

`ghc-8.10.4` not supported on `aarch64-darwin` (Apple Silicon)

Open 0x4007 opened this issue 2 years ago • 7 comments

m1:~ $ echo $NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM
1
m1:~ $ curl https://dapp.tools/install | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   857  100   857    0     0   4570      0 --:--:-- --:--:-- --:--:--  4708
Configured https://dapp.cachix.org binary cache in ~/.config/nix/nix.conf
error: Package ‘ghc-8.10.4’ in /nix/store/wgjf744s860krnci5g5qwlcdsrf1d7iy-nixpkgs-release-21.05/pkgs/development/compilers/ghc/8.10.4.nix:254 is not supported on ‘aarch64-darwin’, refusing to evaluate.

a) To temporarily allow packages that are unsupported for this system, you can use an environment variable
   for a single invocation of the nix tools.

     $ export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1

b) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

(use '--show-trace' to show detailed location information)
All set!

I'm on macOS Monterey 12.0 Beta (21A5543b)

0x4007 avatar Oct 27 '21 04:10 0x4007

also having a similar issue after upgrade to monterey and new mbp

stevennevins avatar Oct 27 '21 13:10 stevennevins

also having a similar issue after upgrade to monterey and new mbp

In my case, the setting for terminal opening with rosetta2 didn't carry over when i transferred everything to the new mbp. Enabling terminal to open with rosetta2 and reinstalling solved the issue for me

stevennevins avatar Oct 27 '21 15:10 stevennevins

Yeah we don't support m1 natively atm, you need to run dapptools under rosetta until we upgrade to a new version of ghc.

d-xo avatar Oct 28 '21 09:10 d-xo

+1 on this, any eta on a possible upgrade to a new version of ghc?

aviexk avatar Nov 29 '21 12:11 aviexk

Yeah we don't support m1 natively atm, you need to run dapptools under rosetta until we upgrade to a new version of ghc.

I'm considering to buy a new Apple Silicon MBP, but since I use it to write Solidity, compatibility with dapptool is of importance to me. Can you maybe comment on the difficulty/complexity of supporting a ghc version compatible with e.g. the M1 chip? Thanks

TimDaub avatar Jan 08 '22 12:01 TimDaub

Bump for sadness

Did the { allowUnsupportedSystem = true; } part. Still: error: cannot bootstrap GHC on this platform

Elyx0 avatar Feb 09 '22 23:02 Elyx0

Also getting the same issue here:

error: Package ‘ghc-8.10.4’ in /nix/store/wgjf744s860krnci5g5qwlcdsrf1d7iy-nixpkgs-release-21.05/pkgs/development/compilers/ghc/8.10.4.nix:254 is not supported on ‘aarch64-darwin’, refusing to evaluate.

is there a workaround?

glaksmono avatar Oct 18 '22 07:10 glaksmono