GHCi Package problem?
Martin Erwig
erwig at cs.orst.edu
Thu Feb 3 11:26:17 EST 2005
On Feb 3, 2005, at 8:21 AM, Simon Marlow wrote:
> On 03 February 2005 16:11, Martin Erwig wrote:
>
>> On Feb 3, 2005, at 2:13 AM, Simon Marlow wrote:
>>
>>>>
>>>> Prelude> Data.Graph.Inductive.Example.clr486
>>>>
>>>> GHCi runtime linker: fatal error: I found a duplicate definition
>>>> for symbol
>>>> _DataziGraphziInductiveziInternalziFiniteMap_Empty_closure
>>>> whilst processing object file
>>>> ./Data/Graph/Inductive/Internal/FiniteMap.o 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 loaded twice. GHCi cannot safely continue in this
>>>> situation. Exiting now. Sorry.
>>>>
>>>> I don't know what to do about this.
>>>
>>> Looks like GHCi is trying to load an object file for a module that is
>>> already present in the package. If
>>> Data.Graph.Inductive.Internal.FiniteMap is present in the fgl
>>> package, then you shouldn't also have it in the current directory,
>>
>> I don't.
>>
>> There is another FiniteMap.hi (and FiniteMap.p_hi) in
>>
>> /usr/local/lib/ghc-6.2/imports/Data
>>
>> Could this be the offender?
>
> No. The error message says that it is trying to load
> ./Data/Graph/Inductive/Internal/FiniteMap.o. but that module is
> already
> part of the fgl package isn't it? (when I said current directory, I
> really meant "relative to the current directory").
Now I see. You are right! After a simple "cd .." the error
disappears.
Thanks a lot,
Martin
More information about the Glasgow-haskell-bugs
mailing list