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,311
    • Issues 4,311
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 382
    • Merge Requests 382
  • 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
  • #10374

Closed
Open
Opened May 02, 2015 by jessicah@trac-jessicah

Can't build GHC with a dynamic only GHC installation

When an installation of GHC doesn't include the vanilla "way", GHC cannot be built from this existing installation of GHC:

make[1]: *** No rule to make target /packages/ghc_x86-7.8.3-10/.self/lib/x86/ghc-7.8.3/base-4.7.0.1/Prelude.hi', needed by utils/hsc2hs/dist/build/Main.o'. Stop.

E.g. using the following mk/build.mk:

    V = 0
    GhcLibWays = dyn
    SRC_HC_OPTS = -O -H64m
    GhcStage1HcOpts = -O -fasm
    GhcStage2HcOpts = -O2 -fasm
    GhcHcOpts = -Rghc-timing
    GhcLibHcOpts = -O2

    DYNAMIC_BY_DEFAULT = YES

    NoFibWays =
    STRIP_CMD = :

Steps to reproduce:

  1. build & install GHC using above configuration
  2. rebuild GHC using above configuration, --with-ghc pointing to the installation created in step 1
Edited Mar 10, 2019 by jessicah
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#10374