Skip to content

ghc 9.4.1 install fails to create sym links on macOS Catalina

Summary

Downloaded ghc-9.4.1-x86_64-apple-darwin.tar.xz binary distribution. Extracted, done ./configure --prefix=/usr/local/ghc, followed by sudo make install.

After install finished, binaries in /usr/local/ghc/bin are not installed correctly. Links are not created correctly and permissions are wrong. For example:

ls -al /usr/local/ghc/bin
total 288
drwxr-xr-x  20 mariogrgic  staff   680 Aug 12 07:58 .
drwxr-xr-x   5 mariogrgic  staff   170 Aug 12 07:59 ..
-rw-r--r--@  1 mariogrgic  staff    45 Aug 12 07:58 ghc
-rwxr-xr-x   1 mariogrgic  staff   418 Aug 12 07:58 ghc-9.4.1
-rw-r--r--@  1 mariogrgic  staff    97 Aug 12 07:58 ghc-pkg
-rwxr-xr-x   1 mariogrgic  staff   478 Aug 12 07:58 ghc-pkg-9.4.1
-rw-r--r--@  1 mariogrgic  staff    67 Aug 12 07:58 ghci
-rwxr-xr-x   1 mariogrgic  staff   442 Aug 12 07:58 ghci-9.4.1
-rw-r--r--@  1 mariogrgic  staff    57 Aug 12 07:58 haddock
-rwxr-xr-x   1 mariogrgic  staff   446 Aug 12 07:58 haddock-ghc-9.4.1
-rw-r--r--@  1 mariogrgic  staff    33 Aug 12 07:58 hp2ps
-rwxr-xr-x   1 mariogrgic  staff   418 Aug 12 07:58 hp2ps-ghc-9.4.1
-rw-r--r--@  1 mariogrgic  staff    33 Aug 12 07:58 hpc
-rwxr-xr-x   1 mariogrgic  staff   414 Aug 12 07:58 hpc-ghc-9.4.1
-rw-r--r--@  1 mariogrgic  staff   787 Aug 12 07:58 hsc2hs
-rwxr-xr-x   1 mariogrgic  staff  1174 Aug 12 07:58 hsc2hs-ghc-9.4.1
-rw-r--r--@  1 mariogrgic  staff    50 Aug 12 07:58 runghc
-rwxr-xr-x   1 mariogrgic  staff   429 Aug 12 07:58 runghc-9.4.1
-rw-r--r--@  1 mariogrgic  staff    50 Aug 12 07:58 runhaskell
-rwxr-xr-x   1 mariogrgic  staff   437 Aug 12 07:58 runhaskell-9.4.1

Note that say ghc is not executable. Also, content seems wrong:

$ cat ghc
exec "$executablename" -B"$libdir" ${1+"$@"}
$ 

In previous versions ghc was a link to ghc-version

Steps to reproduce

Download binary distribution, configure and install

Expected behavior

Installer should work and produce working installation.

Environment

  • GHC version used: 9.4.1

Optional:

  • Operating System: macOS Catalina 10.15.7
  • System Architecture: x86_64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information