Re: Haskell Stack Ports on Apple Silicon

2021-08-13 Thread Ryan Schmidt
On Aug 13, 2021, at 10:58, Steven Smith wrote: > > If the Macports-compiled stack runs on arm64, then the prebuilt download will > too. > > The issue as far as I can tell from the internet is that stack will generate > x86_64 binaries, even if running on an M1. > https://www.haskell.org/ghc/bl

Re: Haskell Stack Ports on Apple Silicon

2021-08-13 Thread Ken Cunningham
I don't think it's overly simple to guess what might actually happen, or work. You have to try it various ways, and as Ryan says, I guess also try it when pandoc is pulled in as a dependency rather than directly installed, and see. The automatic fallback to other supported arches (eg arm64 -> x86

Re: Haskell Stack Ports on Apple Silicon

2021-08-13 Thread Steven Smith
If the Macports-compiled stack runs on arm64, then the prebuilt download will too. The issue as far as I can tell from the internet is that stack will generate x86_64 binaries, even if running on an M1. https://www.haskell.org/ghc/blog/20200515-ghc-on-arm.html These x86_64 binaries should run

Re: Haskell Stack Ports on Apple Silicon

2021-08-13 Thread Ryan Schmidt
The stack port's +prebuilt variant installs a prebuilt binary of a particular architecture or architectures. In that variant, the port must declare using supported_archs what the architectures of that prebuilt binary are. > On Aug 13, 2021, at 07:59, Christopher Jones wrote: > > > That line

Re: Haskell Stack Ports on Apple Silicon

2021-08-13 Thread Christopher Jones
That line is indeed limiting support to intel machines. If it works on arm add that to the list, or probably better just remove it and rely on the defaults. Chris > On 13 Aug 2021, at 1:55 pm, Steven Smith wrote: > > Is this line in the stack Portfile the issue? Ports (like pandoc) that are

Re: Haskell Stack Ports on Apple Silicon

2021-08-13 Thread Steven Smith
Is this line in the stack Portfile the issue? Ports (like pandoc) that are built using stack depend on the stack port, and port stack says that x86_64 is supported, but not arm64. However, stack installs and runs just fine on an M1 box. > supported_archs x86_64 https://github.com/macports

Re: Haskell Stack Ports on Apple Silicon

2021-08-13 Thread Ryan Schmidt
On Aug 12, 2021, at 15:28, Ken Cunningham wrote: > It was reverted / replaced though. I was told that MacPorts did this > automatically now (MacPorts would fall back and install the Intel binary on > arm64) so it was not needed to do this any longer. As far as I could tell, this applies to indi