安装cabal包时出错(无法确定mingw版本)

时间:2017-04-22 21:08:47

标签: haskell mingw ghc cabal cabal-install

我想使用cabal安装一个包,但是我收到了这个错误:

Warning: cannot determine version of D:\Program Files\Haskell
Platform\8.0.2\mingw\bin\gcc.exe :
""
`gcc.exe' failed in phase `C Compiler'. (Exit code: -1073741502)

包裹为stm

cabal install stm

我在Windows 10 PC上安装了Haskell Platform的完整x64版本。

错误几乎与此处相同:https://github.com/haskell/cabal/issues/4442

但是没有回答

1 个答案:

答案 0 :(得分:1)

Win10 Creators Update更改了ghc受其影响的一些API。你可能会看到这个结果。如果你有Win 10 build 15019或更高版本,请在ghc-compat repo上详细更换你的gcc.exe,看看是否有帮助。