Skip to content

Profiling libraries are not installed

When building GHC from source, profiling libraries are created as requested, but are not installed.

I followed the README's instructions, doing "sh boot; ./configure; make; make install". No custom build.mk was used.

Attempting to compile programs with the "-prof" option fails, with a message like:

Could not find module System.Random': Perhaps you haven't installed the profiling libraries for package random-1.0.0.1'?

Use -v to see a list of the files searched for.

When using the inplace/bin/ghc-stage2 compiler, instead of the installed version, profiled applications can be built without error.

Running "make show VALUE=GhcLibWays" in the build directory confirms that it is set to "v p". Inspection of the library directory confirms that "_p.a" library files exist.

Trac metadata
Trac field Value
Version 6.11
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system MacOS X
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information