Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homebrew bottle not available anymore #2162

Closed
fharper opened this issue Mar 3, 2021 · 11 comments
Closed

Homebrew bottle not available anymore #2162

fharper opened this issue Mar 3, 2021 · 11 comments

Comments

@fharper
Copy link

fharper commented Mar 3, 2021

When running brew install shellcheck as mentioned in the README, it doesn't work anymore. I got this error

image

@hoylemd
Copy link

hoylemd commented Mar 8, 2021

Same for me. I'm on a new Apple Silicon M1 arch machine though, so I suspect that may be a factor

I tried running with --build-from-source and I got this error:

==> Installing shellcheck dependency: ghc
==> ./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/mikehoyle/Library/Logs/Homebrew/ghc/01.configure:
2021-03-08 14:03:36 -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

I think that's a ghc error specifically though. Will keep digging and update this comment with my findings

trtied installing ghc (glasgow haskell compiler) manually, but it's still trying to install it as a dependency first. I'm focusing on getting ghc to install cleanly right now.

@hoylemd
Copy link

hoylemd commented Mar 8, 2021

Ok, I wasn't able to get it working with brew, but I was able to install from source:

  1. install haskell stuff manually (I did the whole platform, but minimal might work too - you need cabal at least) https://www.haskell.org/downloads/
  2. clone this repo
  3. cd into the repo and do cabal install

So there's a workaround for now, but hopefully the homebrew bottle can be restored before long.

@fharper
Copy link
Author

fharper commented Mar 9, 2021

I'm also on M1 if that can help narrowing down the issue.

@hoylemd
Copy link

hoylemd commented Mar 9, 2021

That makes me think the homebrew bottles for hcl & haskell stuff haven't been updated for apple silicon yet. I'll see if I can find a place to post a request about that.

Hopefully that would resolve this issue, but @koalaman might need to update a homebrew index as well once that's done.

@silverlyra
Copy link

silverlyra commented Mar 11, 2021

I just hit this on a brand-new M1 Mac, and did some digging. The Homebrew formula for shellcheck specifically depends on [email protected], and a discussion in homebrew-core ended with “ghc 8.8 may be a lost cause for Apple Silicon.”

If Shellcheck can be compiled under ghc 8.10 or 9, that seems like the path to getting it bottled again for ARM macOS. (There’s still no [email protected] ARM64 bottle, either, though.)

@hoylemd
Copy link

hoylemd commented Mar 12, 2021

FYI I opened an issue with ghc about it: https://gitlab.haskell.org/ghc/ghc/-/issues/19512. I didn't realize shellcheck was pinned to 8.8 though. that's a complication :(

@silverlyra
Copy link

silverlyra commented Mar 20, 2021

Homebrew’s Shellcheck is now built with ghc (i.e., [email protected]), but ghc still doesn’t support Apple Silicon Macs. It looks like that work is targeted only for ghc@9, too. 😞

@hoylemd I took a look at ghcup from the issue you filed on GHC 🙏, and the instructions for Apple Silicon say to run the installer script with arch -x86_64 /bin/bash. Did you end up running ghc under Rosetta 2, and is the shellcheck you built an arm64 binary or x86_64?

@hoylemd
Copy link

hoylemd commented Mar 22, 2021

@silverlyra It looks like it turned out intel:

➜ file $(which shellcheck)
/Users/hoylemd/.cabal/bin/shellcheck: Mach-O 64-bit executable x86_64

@bhrutledge
Copy link

I was able to brew install shellcheck under Rosetta 2, after setting up a Rosetta installation of Homebrew in /usr/local, using the instructions at: https://www.wisdomgeek.com/development/installing-intel-based-packages-using-homebrew-on-the-m1-mac/.

arch -x86_64 /usr/local/bin/brew install shellcheck

@aduffner
Copy link

aduffner commented Jun 9, 2021

You don't need rosetta anymore. GHC has been updated and so can run shellcheck natively.

@aduffner
Copy link

@koalaman You can close this thread and the other threads:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants