haskell - Yesod build error because of the duplicate definition for symbol "hsprimitive_memcpy" -


i followed "yesod quick start guide" install yesod in windows 10. but, when issued stack build command, failed.

environment

  • windows 10 (64bits)
  • stack-0.1.5 (for windows10 64bits)
  • haskell platform 7.10.2-a (from haskellplatform-7.10.2-a-x86_64-setup.exe)

alex-3.1.4.log

ghc runtime linker: fatal error: found duplicate definition 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 caused by:    * loading 2 different object files export same symbol    * specifying same object file twice on ghci command line    * incorrect `package.conf' entry, causing object      loaded twice. ghc: panic! (the 'impossible' happened)   (ghc version 7.10.2 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 

it seems cause of error duplicated ghc installation. @reid comment, realized installed haskel platform exe file before , installed ghc through stack folloing guide.

i unisatlled ghc of haskel platform , executed 'stack setup' command. then, executed 'stack build' command , seemed worked. still have problems 'stack build' command, solved issue.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -