Skip to content

on 9.2.3 and now 9.6.1 can't compile with ghc -prof -fprof-auto -rtsopts , gets error Could not find module ‘Prelude’ Perhaps you haven't installed the "p_dyn" libraries

Summary

can't compile with ghc -prof -fprof-auto -rtsopts , gets error Could not find module ‘Prelude’ Perhaps you haven't installed the "p_dyn" libraries for package ‘base-4.16.2.0’? Similarly for 9.6.1

Steps to reproduce

Create a file bug.hs that has a line

main = print "bug"

Compile with

ghc -prof -fprof-auto -rtsopts bug.hs

Expected behavior

I expect it to compile without errors.

Environment

  • GHC version used: 9.2.3

Optional:

  • Operating System: MacOS 12.4
  • System Architecture: Intel
Edited by george.colpitts
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information