Haskell链接故障冲突包

时间:2015-04-28 00:07:07

标签: haskell ghc

由于运行时链接失败,我有一个ghci会话在运行时崩溃。 错误如下:

GHCi runtime linker: fatal error: I found a duplicate definition for symbol
   __hs_text_memcpy
whilst processing object file
   C:\Users\trbauer\AppData\Roaming\cabal\i386-windows-ghc-7.8.3\text-1.2.0.4\HStext-1.2.0.4.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.

加载的软件包列表如下:

...
Loading package text-1.2.0.0 ... linking ... done.
Loading package parsec-3.1.7 ... linking ... done.
Loading package process-1.2.0.0 ... linking ... done.
Loading package text-1.2.0.4 ...
...

似乎文本正在绊倒(1.2.0.0和1.2.0.4都被加载)。

我的问题:如何调试?那我该如何确定哪个包加载每个版本的文本? cabal info似乎没有列出直接或间接依赖关系。关于推断包依赖性我唯一能找到的问题没有易处理的解决方案。因此,我怀疑其他人对此的看法不同。

一旦我弄清楚谁可以使用像this这样的解决方案(在普通文本版本上重建家属)。

谢谢!

0 个答案:

没有答案