Publish Homebrew bottle for Apple Silicon Architecture
There are some homebrew bottles that depend on the ghc bottle (e.g. shellcheck), but can't be installed with
brew because there's no
ghc bottle for Apple Silicon architecture. So compiling and publishing a Homebrew Bottle for
ghc on Apple Silicon would enable a lot of these projects to support the new architecture.
Publish an Apple Silicon architecture bottle for
ghc. I was able to install ghc via
ghcup, and then compile a downstream project from source with it, on an M1-powered laptop, so that makes me think it should be possible to do this, but I'm not very familiar with how
ghcup works or what's involved in compiling and publishing a homebrew bottle.
This is the output I get when I try to install
ghc via homebrew, in case that's helpful:
> brew install ghc Updating Homebrew... ==> Auto-updated Homebrew! Updated 1 tap (homebrew/core). ==> New Formulae tomcat@9 ==> Updated Formulae Updated 61 formulae. Error: ghc: no bottle available! You can try to install from source with: brew install --build-from-source ghc Please note building from source is unsupported. You will encounter build failures with some formulae. If you experience any issues please create pull requests instead of asking for help on Homebrew's GitHub, Twitter or any other official channels.
and installing from source
> brew install --build-from-source ghc <a bunch of downloading stuff redacted> ==> ./configure --prefix=/opt/homebrew/Cellar/ghc/8.10.4/libexec/integer-gmp --with-pic --disable-shared --build=arm_vortex_tempest-apple-darwin20 Last 15 lines from /Users/hoylemd/Library/Logs/Homebrew/ghc/01.configure: 2021-03-09 11:29:43 -0500 ./configure --prefix=/opt/homebrew/Cellar/ghc/8.10.4/libexec/integer-gmp --with-pic --disable-shared --build=arm_vortex_tempest-apple-darwin20 checking build system type... Invalid configuration `arm_vortex_tempest-apple-darwin20': machine `arm_vortex_tempest-apple' not recognized configure: error: /bin/sh ./config.sub arm_vortex_tempest-apple-darwin20 failed Do not report this issue to Homebrew/brew or Homebrew/core!