Kristian Sørdal commented on issue #23300 at Glasgow Haskell Compiler / GHC

Kristian Sørdal
2023-04-26T07:34:11Z

As per usual when I post an issue, I find the solution shortly after. Weird how that works.

On OSX the standard C/C++ compiler is clang, which ghcup doesn't like. This was solved by changing the CC environment variable during installation. I solved it by running

ghcup install ghc 9.4.2 CC=/opt/homebrew/opt/g++-12.