ghc-9.10.0.20240313 (alpha1) does not install on macOS
Issue #21506 (closed) is back for 9.10-alpha1. Same description, same symptoms, probably same cure.
Spelling it out:
- macOS Monterey 12.7.1
- download https://downloads.haskell.org/~ghc/9.10.0.20240313/ghc-9.10.0.20240313-x86_64-apple-darwin.tar.xz
tar xf ...; cd ghc-...; ./configure
- Produces pop-ups stating that "
libHS...
was blocked, not from an identified developer"
Here is some detailed error, but this is probably not interesting, since it is really a reprise of #21506 (closed) only:
./configure: line 13507: 8575 Killed: 9 "$GHC_TOOLCHAIN_BIN" -v2 "$@"
dyld[8606]: Library not loaded: '@rpath/libHSghc-toolchain-0.1.0.0-ff5c-ghc9.10.0.20240313.dylib'
Referenced from: '/Users/abel/bin/soft/ghc-9.10.0.20240313-x86_64-apple-darwin/bin/ghc-toolchain-bin-ghc-9.10.0.20240313'
Reason: tried: '/Users/abel/bin/soft/ghc-9.10.0.20240313-x86_64-apple-darwin/bin/../lib/x86_64-osx-ghc-9.10.0.20240313/libHSghc-toolchain-0.1.0.0-ff5c-ghc9.10.0.20240313.dylib' (code signature in <665593BF-2381-30B1-A621-5A18BB60B521> '/Users/abel/bin/soft/ghc-9.10.0.20240313-x86_64-apple-darwin/lib/x86_64-osx-ghc-9.10.0.20240313/libHSghc-toolchain-0.1.0.0-ff5c-ghc9.10.0.20240313.dylib' not valid for use in process: library load disallowed by system policy), '$ORIGIN/../../../lib/x86_64-osx-ghc-9.10.0.20240313/libHSghc-toolchain-0.1.0.0-ff5c-ghc9.10.0.20240313.dylib' (no such file), '/Users/abel/bin/soft/ghc-9.10.0.20240313-x86_64-apple-darwin/bin/../lib/x86_64-osx-ghc-9.10.0.20240313/libHSghc-toolchain-0.1.0.0-ff5c-ghc9.10.0.20240313.dylib' (code signature in <665593BF-2381-30B1-A621-5A18BB60B521> '/Users/abel/bin/soft/ghc-9.10.0.20240313-x86_64-apple-darwin/lib/x86_64-osx-ghc-9.10.0.20240313/libHSghc-toolchain-0.1.0.0-ff5c-ghc9.10.0.20240313.dylib' not valid for use in process: library load disallowed by system policy), '$ORIGIN/../../../lib/x86_64-osx-ghc-9.10.0.20240313/libHSghc-toolchain-0.1.0.0-ff5c-ghc9.10.0.20240313.dylib' (no such file), '/usr/local/lib/libHSghc-toolchain-0.1.0.0-ff5c-ghc9.10.0.20240313.dylib' (no such file), '/usr/lib/libHSghc-toolchain-0.1.0.0-ff5c-ghc9.10.0.20240313.dylib' (no such file)
I would assume it is a packaging error.
See also #23009 (closed).
P.S.: Installation succeeds via ghcup
, thus, not many will bump into this problem.
I dimly remember that ghcup
implements a work-around (patching the file tree permissions before running installation).