Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,268
    • Issues 4,268
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 408
    • Merge Requests 408
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #5021

Closed
Open
Opened Mar 13, 2011 by Lemming@trac-Lemming

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

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.

Trac metadata
Trac field Value
Version 7.0.2
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component None
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#5021