[GHC] #10374: Can't build GHC with a dynamic only GHC installation

GHC ghc-devs at haskell.org
Sat May 2 04:57:50 UTC 2015


#10374: Can't build GHC with a dynamic only GHC installation
-------------------------------------+-------------------------------------
        Reporter:  jessicah          |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Build System      |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  Building GHC      |  Unknown/Multiple
  failed                             |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------
Description changed by jessicah:

Old description:

> When an installation of GHC doesn't include the vanilla "way", GHC cannot
> be built from this existing installation of GHC.
>
> 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

New description:

 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

--

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10374#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list