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,320
    • Issues 4,320
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 359
    • Merge Requests 359
  • 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
  • #3882

Closed
Open
Opened Feb 15, 2010 by benl@trac-benl

Adding libraries to an inplace GHC should JustWork(TM)

After building the head I end up with the boot libraries built and working in ./libraries. However, if I add a new darcs checkout to this dir (say ./libraries/parallel) and type make then nothing happens.

The trouble is that the library is missing ghc.mk and GNUmakefile. These files are created by sh boot, but if I do that at top-level it creates a new ghc.mk and GNUmakefile for *all* of the libraries, instead of just the new one. This means that when I type make now it wants to rebuild a bunch of things unrelated to the new library.

There are some instructions at http://hackage.haskell.org/trac/ghc/wiki/Debugging/InstallingPackagesInplace but I am not keen on doing that for each additional package I need. Plan A on that page will also install packages in my local .cabal which will be a problem if I'm doing multiple builds in the same account.

What should happen, is that if I place a new library in ./libraries and type make then this gets built and registered with the inplace compiler, just like the ones already there.

There should also be an easy way to get and update all the libraries needed by the testsuite and nofib -- ie parallel, regex, mtl. I vaguely remember a command like ./darcs-all get --extralibs but that doesn't work anymore. Adding a line for libraries/parallel to ./packages doesn't work either because the darcs-all get script only checks darcs.haskell.org and not hackage.haskell.org\ as well.

Trac metadata
Trac field Value
Version 6.13
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
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#3882