ghc options " -prof -fprof-auto" get an error in 9.6.1 on MacOS
Summary
ghc options " -prof -fprof-auto" get an error in 9.6.1 on MacOS
Steps to reproduce
ghc -prof -fprof-auto hello.hs
Loaded package environment from /Users/gcolpitts/.ghc/x86_64-darwin-9.6.1/environments/default
[1 of 2] Compiling Main ( hello.hs, hello.o )
hello.hs:1:1: error:
Could not find module ‘Prelude’
Perhaps you haven't installed the "p_dyn" libraries for package ‘base-4.18.0.0’?
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
1 | main = print "hello"
| ^
where hello.hs consists of the line
| main = print "hello
If I add "-v" to the ghc command I get
Could not find module ‘Prelude’
Perhaps you haven't installed the "p_dyn" libraries for package ‘base-4.18.0.0’?
Locations searched:
Prelude.hs
Prelude.lhs
Prelude.hsig
Prelude.lhsig
/usr/local/lib/ghc-9.6.1/lib/../lib/x86_64-osx-ghc-9.6.1/base-4.18.0.0/Prelude.p_dyn_hi
|
This suggests the file Prelude.p_dyn_hi should be in the directory /usr/local/lib/ghc-9.6.1/lib/../lib/x86_64-osx-ghc-9.6.1/base-4.18.0.0 but it isn't.
Expected behavior
I expect the above to compile without error.
Environment
- GHC version used: 9.6.1
Optional:
- Operating System: MacOS Ventura 13.3
- System Architecture: