Haskell Stack Ports on Apple Silicon

Ken Cunningham ken.cunningham.webuse at gmail.com
Sun Aug 15 18:15:55 UTC 2021

> On Aug 15, 2021, at 5:16 AM, Steven Smith <steve.t.smith at gmail.com> wrote:
>> Cannot install shellcheck for the arch 'arm64’ because

IF shellcheck had supported_archs x86_64 in the Portfile, it should never try to install the arm64 arch in the first place.

So I’m guessing probably that was missing.

It seems to work like this:

1. you try to install a haskell port on arm64
2. there is no supported_archs in the Portfile you are trying to install
3. base will try to build for the native arch (arm64)
3. base then examines all the deps.
4. If the deps don’t support arm64, you get an error.



1. set supported_archs x86_64 in all the haskell ports
2. try to install a haskell port on arm64
3. base sees arm64 is not supported, but x86_64 is a supported_arch
4. base uses x86_64 as a fallback arch
5. base examines all the deps. All build as x86_64.
6. Good to go.

More information about the macports-dev mailing list