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
clock fails to build on aarch64 Darwin #70
Comments
I also ran into this problem while trying to install clock-0.8.2 on an M1 Mac with GHC 9.2.1. How did you solve this problem? |
I've also had this same issue, I realise it might not be strictly related to 'clock', but what was the solution? |
Ah, found it. @tfausak, this appears to be https://gitlab.haskell.org/ghc/ghc/-/issues/20592 (Definitely not clock here!) The fix mentioned in that ticket works for me. |
Thanks for connecting the dots there @arafangion! I can confirm that the solution proposed in this comment fixed the problem for me. To make that concrete, here's what was failing for me: uname -a
# Darwin TayMini.local 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:24 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T8101 arm64
ghcup --version
# The GHCup Haskell installer, version v0.1.17.4
~/.ghcup/bin/ghc-9.2.1 --version
# The Glorious Glasgow Haskell Compilation System, version 9.2.1
~/.ghcup/bin/cabal-3.6.2.0 --version
# cabal-install version 3.6.2.0
# compiled using version 3.6.2.0 of the Cabal library
~/.ghcup/bin/cabal-3.6.2.0 build --with-compiler ~/.ghcup/bin/ghc-9.2.1 And doing this instead succeeded: # note this is fish shell
env C_INCLUDE_PATH=(xcrun --show-sdk-path)/usr/include/ffi \
~/.ghcup/bin/cabal-3.6.2.0 build --with-compiler ~/.ghcup/bin/ghc-9.2.1 |
The text was updated successfully, but these errors were encountered: