Opened 7 years ago

Closed 7 years ago

#5021 closed feature request (wontfix)

How to get shared base libraries with profiling when installing from ghc-7.0.2-i386-unknown-linux.tar.bz2

Reported by: Lemming Owned by:
Priority: normal Milestone:
Component: None Version: 7.0.2
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


I have installed GHC-7.0.2 from ghc-7.0.2-i386-unknown-linux.tar.bz2 and like to build my packages with cabal --enable-library-profiling --enable-shared . However I cannot build executables, since there are no shared profiling libraries installed.

$ cabal install -fbuildExample --enable-library-profiling --enable-executable-profiling --enable-shared --ghc-option=-dynamic gnuplot
[19 of 21] Compiling Data.Record.HT   ( src/Data/Record/HT.hs, dist/build/Data/Record/HT.o )
[20 of 21] Compiling Data.String.HT   ( src/Data/String/HT.hs, dist/build/Data/String/HT.o )
[21 of 21] Compiling Data.List.Match  ( src/Data/List/Match.hs, dist/build/Data/List/Match.o )

Implicit import declaration:
    Could not find module `Prelude':
      Perhaps you haven't installed the "p_dyn" libraries for package `base'?
      Use -v to see a list of the files searched for.

Could GHC be shipped with shared profiling libraries? Since this would considerably increase the size of the GHC package it would also be fine for me if I would be able to build these libraries myself, preferably with cabal.

Change History (1)

comment:1 Changed 7 years ago by simonmar

Resolution: wontfix
Status: newclosed

I don't think we'll do this, because as you say it would increase the size of the distributions a lot. You can build GHC yourself with these libraries if you want (add GhcLibWays = v p dyn p_dyn to your mk/

I don't think we ever test p_dyn, so you might be in store for some unpleasant surprises - in which case feel free to file further tickets.

Note: See TracTickets for help on using tickets.