3

我按照“Yesod 快速入门指南”在 Windows 10 中安装 Yesod。但是,当我发出stack build命令时,它失败了。

环境

  • 视窗 10(64 位)
  • stack-0.1.5(适用于 Windows10 64 位)
  • Haskell 平台 7.10.2-a(来自 HaskellPlatform-7.10.2-a-x86_64-setup.exe)

亚历克斯-3.1.4.log

GHC runtime linker: fatal error: I found a duplicate definition for symbol
   hsprimitive_memcpy
whilst processing object file
   C:\Users\xxxxx\AppData\Roaming\stack\snapshots\x86_64-windows\lts-3.8\7.10.2\lib\x86_64-windows-ghc-7.10.2\primitive-0.6.1.0-5Jnw7oEuYtM9dmKXelGXVb\HSprimitive-0.6.1.0-5Jnw7oEuYtM9dmKXelGXVb.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.
ghc: panic! (the 'impossible' happened)
  (GHC version 7.10.2 for x86_64-unknown-mingw32):
    loadObj "C:\\Users\\xxxxx\\AppData\\Roaming\\stack\\snapshots\\x86_64-windows\\lts-3.8\\7.10.2\\lib\\x86_64-windows-ghc-7.10.2\\primitive-0.6.1.0-5Jnw7oEuYtM9dmKXelGXVb\\HSprimitive-0.6.1.0-5Jnw7oEuYtM9dmKXelGXVb.o": failed
4

1 回答 1

1

似乎错误的原因是重复的 GHC 安装。感谢@Reid 的评论,我意识到我之前从 exe 文件安装了 Haskel 平台,并且我还按照指南通过堆栈安装了 GHC。

我取消了 Haskel 平台的 GHC 并执行了“堆栈设置”命令。然后,我执行了“stack build”命令,它似乎奏效了。我仍然对'stack build'命令有问题,但我解决了这个问题。

于 2015-10-10T17:54:01.043 回答