Skip to content

9.2.1-alpha2 fails to install on OS X

Summary

Attempting to install on a normal OSX machine fails.

Steps to reproduce

Install:

In my case using

$ ghcup install ghc -u file:///Users/ekmett/ghc/ghc-9.2.0.20210422-x86_64-apple-darwin.tar.xz head

leads to

[ ghc-make ] "/Users/ekmett/.ghcup/ghc/head/lib/ghc-9.2.0.20210422/bin/ghc-pkg" --force --global-package-db "/Users/ekmet...
a...         dyld: Library not loaded: /nix/store/wxx8sfsa5x1753r8d1x8dx2927qncwbw-ncurses-6.2/lib/libncursesw.6.dylib
a...c-make ]   Referenced from: /Users/ekmett/.ghcup/ghc/head/lib/ghc-9.2.0.20210422/terminfo-0.4.1.4/libHSterminfo-0.4.1...
[ ghc-make ]   Reason: image not found
[ ghc-make ] make[1]: *** [install_packages] Abort trap: 6
a...         make: *** [install] Error 2

I get the same error if I extract the distribution, xattr -rc and then ./configure and make install as normal.

It appears that the distribution includes fixed path links to nix-darwin specific build paths.

Expected behavior

Installation of ghc 9.2.1-alpha2.

Environment

  • GHC version used: 9.2.1-alpha2

Optional:

  • Operating System: OSX
  • System Architecture: Darwin
Edited by Edward Kmett
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information