[GHC] #6133: ghc dies when I use a package.conf in $GHC_PACKAGE_PATH

GHC cvs-ghc at haskell.org
Tue May 29 14:09:27 CEST 2012


#6133: ghc dies when I use a package.conf in $GHC_PACKAGE_PATH
--------------------------------+-------------------------------------------
 Reporter:  gfxmonk             |          Owner:                  
     Type:  bug                 |         Status:  new             
 Priority:  normal              |      Component:  ghc-pkg         
  Version:  7.0.4               |       Keywords:                  
       Os:  Unknown/Multiple    |   Architecture:  Unknown/Multiple
  Failure:  Compile-time crash  |       Testcase:                  
Blockedby:                      |       Blocking:                  
  Related:                      |  
--------------------------------+-------------------------------------------
 I built a standalone package using cabal, and then ran:

 {{{
 cabal register --gen-pkg-config="$BUILDDIR/package.conf"
 --builddir="$BUILDDIR"
 }}}


 When I tried to compile or run a haskell file (using ghc or runghc), with
 GHC_PACKAGE_PATH="$BUILDDIR/package.conf", I get:


 {{{
 ghc: panic! (the 'impossible' happened)
   (GHC version 7.0.4 for x86_64-unknown-linux):
         Prelude.read: no parse

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
 }}}


 Curiosity and exploration reveals (I think - I am largely guessing) that
 the thing that's supposed to be in GHC_PACKAGE_PATH is the haskell-syntax
 "package.conf.inplace", not "package.conf". This took me a while and a lot
 of frustration however, so a better error would be appreciated for next
 time I forget how this works.

 I'm also not entirely sure where package.conf.inplace comes from, it seems
 to be a side process of the registration but I can't find any
 documentation or instructions on building one speicifically (rather than
 accidentally).

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6133>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list