Haskell Yesod生成错误,因为符号“的定义重复”;hsprimitive“u memcpy”;
我按照“YesSOD快速入门指南”在Windows10中安装YesSOD。 但是,当我发出Haskell Yesod生成错误,因为符号“的定义重复”;hsprimitive“u memcpy”;,haskell,yesod,haskell-stack,Haskell,Yesod,Haskell Stack,我按照“YesSOD快速入门指南”在Windows10中安装YesSOD。 但是,当我发出堆栈构建命令时,它失败了 环境 Windows 10(64位) 堆栈-0.1.5(适用于Windows10 64位) Haskell平台7.10.2-a(来自Haskell平台-7.10.2-a-x86_64-setup.exe) alex-3.1.4.log 错误的原因似乎是重复的GHC安装。 感谢@Reid的评论,我意识到我以前是从exe文件安装Haskel平台的,我也按照指南通过stack安装了G
堆栈构建
命令时,它失败了
环境
- Windows 10(64位)
(适用于Windows10 64位)堆栈-0.1.5
- Haskell平台7.10.2-a(来自Haskell平台-7.10.2-a-x86_64-setup.exe)
错误的原因似乎是重复的GHC安装。 感谢@Reid的评论,我意识到我以前是从exe文件安装Haskel平台的,我也按照指南通过stack安装了GHC 我统一了Haskel平台的GHC,并执行了“堆栈设置”命令。 然后,我执行了“stackbuild”命令,它似乎起了作用。
“stack build”命令仍然存在问题,但我解决了这个问题 这种错误通常是由于安装了同一软件包的两个版本,在本例中可能是
原语
软件包。但我认为这对stack来说是不可能的。。。
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