[Hackage] #768: Cabal cannot find GHC when using relative path in -w flag

Hackage cvs-ghc at haskell.org
Fri Nov 19 08:30:41 EST 2010

#768: Cabal cannot find GHC when using relative path in -w flag
  Reporter:  tibbe          |        Owner:         
      Type:  defect         |       Status:  new    
  Priority:  normal         |    Milestone:         
 Component:  Cabal library  |      Version:
  Severity:  normal         |     Keywords:         
Difficulty:  unknown        |   Ghcversion:         
  Platform:                 |  
 Trying to build the network package while standing at the root of a GHC
 build tree fails to find GHC:

 $ cabal install -w inplace/bin/ghc-stage2 network -v2
 inplace/bin/ghc-stage2 --numeric-version
 looking for package tool: ghc-pkg near compiler in inplace/bin
 found package tool in inplace/bin/ghc-pkg
 inplace/bin/ghc-pkg --version
 inplace/bin/ghc-stage2 --supported-languages
 Reading installed packages...
 inplace/bin/ghc-pkg dump --global
 inplace/bin/ghc-pkg dump --user
 inplace/bin/ghc-stage2 --print-libdir
 Reading available packages...
 Resolving dependencies...
 selecting network-2.3 (hackage) and discarding network-2.0,,,, 2.2.1,,,,,,,,,,, 2.2.3 and
 selecting base- (installed)
 selecting ffi-1.0 (installed)
 selecting ghc-prim- (installed)
 selecting integer-gmp- (installed)
 selecting rts-1.0 (installed)
 selecting parsec- (hackage) and discarding parsec-2.0,,
 3.0.1 and 3.1.0
 selecting unix- (installed) and discarding unix-2.0,,,,,, and
 selecting bytestring- (installed) and discarding bytestring-0.9,,,,,,,,,,, and
 In order, the following would be installed:
 parsec- (new package)
 network-2.3 (new package)
 parsec- has already been downloaded.
 to /tmp/parsec-
 Configuring parsec-
 cabal: Cannot find the program 'ghc' at 'inplace/bin/ghc-stage2' or on the
 cabal: Error: some packages failed to install:
 network-2.3 depends on parsec- which failed to install.
 parsec- failed during the configure step. The exception was:
 ExitFailure 1

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/768>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list