<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Please see <a href="https://github.com/macports/macports-ports/pull/11897" class="">https://github.com/macports/macports-ports/pull/11897</a> for a working approach on both x86_64 and arm64.<div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 15, 2021, at 8:16 AM, Steven Smith <<a href="mailto:steve.t.smith@gmail.com" class="">steve.t.smith@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class=""><div dir="ltr" class="">I confirm that this approach does <b class="">not</b> work on an M1 Mac.</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class=""><span style="-webkit-text-size-adjust: auto;" class="">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:</span></div><div dir="ltr" class=""><span style="-webkit-text-size-adjust: auto;" class=""></span><br style="-webkit-text-size-adjust: auto;" class=""><blockquote type="cite" style="" class="">Cannot install shellcheck for the arch 'arm64' because<br class=""></blockquote><blockquote type="cite" style="" class="">It’s dependency stack is only installed for the arch 'x86_64'<br class=""></blockquote><blockquote type="cite" style="" class="">and does not have a universal variant.<br class=""></blockquote><blockquote type="cite" style="" class="">Unable to execute port: architecture mismatch</blockquote><br class=""></div><div dir="ltr" class="">This appears to be a functional bug in MacPorts that prevents installation of working x86_64 binaries on the M1.</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">If it is “correct” to specify `supported_archs x86_64` in the Portfile, there must be a way to avoid the error above.</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class=""><br class=""><blockquote type="cite" class="">On Aug 15, 2021, at 00:37, Joshua Root <<a href="mailto:jmr@macports.org" class="">jmr@macports.org</a>> wrote:<br class=""><br class=""></blockquote></div><blockquote type="cite" class=""><div dir="ltr" class=""><span class="">On 2021-8-15 14:11 , Ken Cunningham wrote:</span><br class=""><blockquote type="cite" class=""><span class="">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?</span><br class=""></blockquote><span class=""></span><br class=""><span class="">Yes.</span><br class=""><span class=""></span><br class=""></div></blockquote></div></div></blockquote></div><br class=""></div></body></html>