Haskell Stack Ports on Apple Silicon

Steven Smith steve.t.smith at gmail.com
Mon Aug 16 22:04:40 UTC 2021


Please see https://github.com/macports/macports-ports/pull/11897 <https://github.com/macports/macports-ports/pull/11897> for a working approach on both x86_64 and arm64.


> On Aug 15, 2021, at 8:16 AM, Steven Smith <steve.t.smith at gmail.com> wrote:
> 
> I confirm that this approach does not work on an M1 Mac.
> 
> Trying to install a stack portion an M1—whether or not `supported_archs x86_64` is set—throws this architecture mismatch error when trying to install on the M1:
> 
>> Cannot install shellcheck for the arch 'arm64' because
>> It’s dependency stack is only installed for the arch 'x86_64'
>> and does not have a universal variant.
>> Unable to execute port: architecture mismatch
> 
> This appears to be a functional bug in MacPorts that prevents installation of working x86_64 binaries on the M1.
> 
> If it is “correct” to specify `supported_archs x86_64` in the Portfile, there must be a way to avoid the error above.
> 
> 
>> On Aug 15, 2021, at 00:37, Joshua Root <jmr at macports.org> wrote:
>> 
>> On 2021-8-15 14:11 , Ken Cunningham wrote:
>>> IF pandoc set it’s supported_archs to x86_64 (which then matches stack) — would that now install properly on an M1 Mac, using the fallback archs?
>> 
>> Yes.
>> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20210816/0fb027c0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3898 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20210816/0fb027c0/attachment.bin>


More information about the macports-dev mailing list