<div dir="ltr"><div><div><div>I don't think it's overly simple to guess what might actually happen, or work.<br><br></div>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.<br><br></div>The automatic fallback to other supported arches (eg arm64 -> x86_64) part of macports base remains opaque to me  and I would suspect many. I guess I should go find and read the relevant TCL to see what it is trying to do and how. <br><br></div>K<br></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Fri, Aug 13, 2021 at 8:58 AM Steven Smith <<a href="mailto:steve.t.smith@gmail.com">steve.t.smith@gmail.com</a>> wrote:<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div dir="auto"><div dir="ltr">If the Macports-compiled stack runs on arm64, then the prebuilt download will too.</div><div dir="ltr"><br></div><div dir="ltr">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. <a target="_blank" href="https://www.haskell.org/ghc/blog/20200515-ghc-on-arm.html">https://www.haskell.org/ghc/blog/20200515-ghc-on-arm.html</a></div><div dir="ltr"><br></div><div dir="ltr">These x86_64 binaries should run on an M1.</div><div dir="ltr"><br></div><div dir="ltr">If so, is the best approach to remove the supported_archs line from the stack Portfile, or add arm64?</div><div dir="ltr"><br></div><div dir="ltr"><br><blockquote type="cite">On Aug 13, 2021, at 09:21, Ryan Schmidt <<a target="_blank" href="mailto:ryandesign@macports.org">ryandesign@macports.org</a>> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>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.</span><br><span></span><br><span></span><br><blockquote type="cite"><span>On Aug 13, 2021, at 07:59, Christopher Jones <<a target="_blank" href="mailto:jonesc@hep.phy.cam.ac.uk">jonesc@hep.phy.cam.ac.uk</a>> wrote:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>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.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Chris</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><blockquote type="cite"><span>On 13 Aug 2021, at 1:55 pm, Steven Smith <<a target="_blank" href="mailto:steve.t.smith@gmail.com">steve.t.smith@gmail.com</a>> wrote:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>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.</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>supported_archs     x86_64</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span><a target="_blank" href="https://github.com/macports/macports-ports/blob/4cccce94528cf34ba0ac86ee26d8f33b43351214/lang/stack/Portfile#L31">https://github.com/macports/macports-ports/blob/4cccce94528cf34ba0ac86ee26d8f33b43351214/lang/stack/Portfile#L31</a></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>On Aug 13, 2021, at 5:27 AM, Ryan Schmidt <<a target="_blank" href="mailto:ryandesign@macports.org">ryandesign@macports.org</a>> wrote:</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span>As far as I could tell, this applies to individual ports, but not to a port's dependencies. See:</span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span><a target="_blank" href="https://trac.macports.org/ticket/63092">https://trac.macports.org/ticket/63092</a></span><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><span></span><br></blockquote><span></span><br></div></blockquote></div></blockquote></div>