"ghci -package hpc" gives me unknown symbol `hs_hpc_rootModule'

Mads Lindstrøm mads_lindstroem at yahoo.dk
Mon Aug 13 17:29:35 EDT 2007


Hi

I have downloaded, build, and installed GHC. When I do:

  ghci

it works fine. Bug when I do:

  ghci -package hpc

I get:

  GHCi, version 6.7.20070812: http://www.haskell.org/ghc/  :? for help
  Loading package base ... linking ... done.
  Loading package old-locale-1.0 ... linking ... done.
  Loading package old-time-1.0 ... linking ... done.
  Loading package filepath-1.0 ... linking ... done.
  Loading package directory-1.0 ... linking ... done.
  Loading package array-0.1 ... linking ... done.
  Loading package containers-0.1 ... linking ... done.
  ghc-6.7.20070812: /home/ghctest/lib/ghc-6.7.20070812/lib/hpc-0.5/HShpc-0.5.o:
unknown symbol `hs_hpc_rootModule'
  Loading package hpc-0.5 ... linking ... ghc-6.7.20070812: unable to load
package `hpc-0.5'

What I really wanted to do was to use the GHC-package (GHC as a library
package). But, for some reason, it loads the HPC package and thus fails (as seen
above).

Can anybody explain what I do wrong or if this is a bug in GHC?

I am running on Debian stable on x86 hardware. I used the following build script:

  #!/bin/bash
  
  rm -rf $HOME/ghc
  darcs get --partial http://darcs.haskell.org/ghc
  cd ghc
  chmod +x darcs-all
  ./darcs-all get
  ./darcs-all --extra get
  sh boot
  ./configure --prefix=$HOME
  make
  make install

If anybody is interested I can provide the complete output of the build.


Greetings,

Mads Lindstrøm



More information about the Cvs-ghc mailing list