IntersectMBO / plutus

The Plutus language implementation and tools
Apache License 2.0
1.56k stars 477 forks source link

Building on macOS Monterey Fails #4577

Closed jfischoff closed 1 year ago

jfischoff commented 2 years ago

Summary

When trying to build with nix of macOS Monterey with an M1 the following error occurs:

error: Desired GHC (8.8.4) is older than the bootstrap GHC (8.10.7) for this platform (aarch64-apple-darwin).

Steps to reproduce the behavior

nix build -f default.nix plutus.haskell.packages.plutus-core.components.exes.traceToStacks 

Actual Result

error: Desired GHC (8.8.4) is older than the bootstrap GHC (8.10.7) for this platform (aarch64-apple-darwin).

Expected Result

Build succeeds

Describe the approach you would take to fix this

I think the minimum bootstrap GHC for aarch64-apple-darwin must be 8.10.7

System info

OS: macOS Monterey 12.1 Arch: aarch64-apple-darwin

effectfully commented 1 year ago

Got a response from @michaelpj on slack, quoting verbatim:

Historically we haven't had any builders for aarch64-darwin, so we had no way of either a) caching the builds, or b) making sure that they worked. So we de-facto did not support it, and the answer was to use Rosetta. However, we're now on Moritz's hydra, which does have some aarch64-darwin builders, so we could consider adding support.

For now we're going to consider this a low priority issue.

michaelpj commented 1 year ago

We have working aarch64-darwin CI now.

effectfully commented 1 year ago

@jfischoff feel free to reopen if your issue persists.