Question about packages and GHCi
Simon Marlow
simonmar at microsoft.com
Wed Feb 2 06:37:02 EST 2005
On 02 February 2005 11:17, Malcolm Wallace wrote:
> "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.
Strange. I just tried a simple example, and didn't get the warning, so
at least it's not completely broken.
Can someone who is getting this warning send me: the package config
being fed into ghc-pkg, and an ls -l of each directory in library_dirs.
Cheers,
Simon
More information about the Libraries
mailing list