Question about packages and GHCi

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Wed Feb 2 06:17:26 EST 2005


"Simon Marlow" <simonmar at microsoft.com> writes:

> > (1) When I try to add a package to ghc, I receive the
> > error message that a GHCi lib file 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
> > kept (/usr/local/lib/ghc-6.2/).
> 
> ghc-pkg is looking in the directories specified in the library_dirs
> field in fgl.pkg.  HSfgl.o should be in one of those directories.

This has puzzled me for a long time as well.  I /always/ get this
warning message, even when the HSfoo.o file is in the correct place,
as listed in library_dirs.

Regards,
    Malcolm


More information about the Libraries mailing list