GCC not working during compiling haskell programs on Windows

非 Y 不嫁゛ 提交于 2019-12-11 07:41:20

问题


I'd like to compile a Haskell project with a .cabal file under windows.

I have installed the Haskell Platform and Cygwin. One of the dependancies is time, which fail to build during the cabal install command.

The error message is the following:

checking for gcc... C:\PROGRA~1\HASKELL~1\826561~1.1\mingw\bin\gcc.exe
checking if the C compiler is working... no
configure error: C compiler cannot create executable

So I downloaded another gcc withing Cygwin that, I suppose, will work better. However, this other question mention that the Haskell platform now uses MinGW rater than Cygwin to run GNU software.

I changed in the cabal configure file the location of gcc, but I still get the same error message (but with the new location of gcc).

So I'm a bit confused here: what is exactly the problem with gcc? Do you have any inputs on how I could continue the building of my software?


回答1:


Fixed (partially) by using Stack. Building is failing but for another reason, so I'll ask another question.

Thanks again.



来源:https://stackoverflow.com/questions/47739930/gcc-not-working-during-compiling-haskell-programs-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!