Question about packages and GHCi
erwig at cs.orst.edu
Tue Feb 1 20:51:46 EST 2005
I apologize if this is the wrong mailing list to turn to,
but I would be grateful for any help with two problems
I have when trying to add a package to GHCi. (I wasn't able
to find sufficient information in the documentation for packages
(1) When I try to add a package to ghc, I receive the
error message that a GHCi lib fil cannot be found.
> ghc-pkg -u -i fgl.pkg
Reading package info from "fgl.pkg"done.
Expanding embedded variables... done.
warning: can't find GHCi lib `HSfgl.o'
Saving old package config file... done.
Writing new package config file... done.
The missing file `HSfgl.o' is located on the
current directory as well as in the directory
where all other .o and .a files for GHC are
(2) Maybe related to the previous problem is the
following. When I start "ghci -package fgl", I receive
the following error message:
Loading package base ... linking ... done.
Loading package haskell98 ... linking ... done.
Loading package haskell-src ... linking ... done.
Loading package fgl ...
GHCi runtime linker: fatal error: I found a duplicate definition for
whilst processing object file
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
GHCi cannot safely continue in this situation. Exiting now. Sorry.
Any help is greatly appreciated.
More information about the Libraries