Unable to install ghc-9.2.2 on MacOS M1
$ ghcup install ghc 9.2.2
[ Info ] downloading: https://downloads.haskell.org/~ghc/9.2.2/ghc-9.2.2-aarch64-apple-darwin.tar.xz as file /private/var/folders/zf/9mr65kcd2yd08hgsq20sccz40000gn/T/ghcup-ba4ff9584c62d69d/ghc-9.2.2-aarch64-apple-darwin.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 178M 100 178M 0 0 9801k 0 0:00:18 0:00:18 --:--:-- 11.8M
[ Info ] verifying digest of: ghc-9.2.2-aarch64-apple-darwin.tar.xz
[ Info ] Unpacking: ghc-9.2.2-aarch64-apple-darwin.tar.xz to /private/var/folders/zf/9mr65kcd2yd08hgsq20sccz40000gn/T/ghcup-86aaccdec08048e7
[ Info ] Installing GHC (this may take a while)
[ ghc-configure ] checking for strings.h... yes
[ ghc-configure ] checking for sys/stat.h... yes
[ ghc-configure ] checking for sys/types.h... yes
[ ghc-configure ] checking for unistd.h... yes
[ ghc-configure ] checking size of void *... 0
[ ghc-configure ] configure: error: Failed to determine machine word size. Does your toolchain actually work?
[ Error ] (Process "sh" with arguments ["./configure",
[ ... ] "--prefix=/Users/jky/.ghcup/ghc/9.2.2"] failed with exit code 1.,
[ ... ] ())
[ Error ] Also check the logs in /Users/jky/.ghcup/logs