`C编译器'阶段``gcc.exe'失败。 (退出代码:1) [英] `gcc.exe' failed in phase `C Compiler'. (Exit code: 1)

查看:923
本文介绍了`C编译器'阶段``gcc.exe'失败。 (退出代码:1)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当Cabal或Stack安装像标题一样的错误消息时。
Full mes是:
cabal install ghc-mod
realgcc.exe:error:C:\ Users \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ c:没有这样的文件或目录
realgcc.exe:警告:'-x c'在最后一个输入文件无效之后
realgcc.exe:致命错误:没有输入文件
编译终止。
gcc.exe'阶段失败 C编译器'。 (退出代码:1)

解决方案

尝试做'堆叠设置 - 重新安装'。我有类似的消息这样清理。


When Cabal or Stack install hackage the error message like title. Full mes is: cabal install ghc-mod realgcc.exe: error: C:\Users\浠ユ亽\AppData\Local\Temp\4118467.c: No such file or directory realgcc.exe: warning: '-x c' after last input file has no effect realgcc.exe: fatal error: no input files compilation terminated. gcc.exe' failed in phaseC Compiler'. (Exit code: 1)

解决方案

Try doing 'stack setup--reinstall'. I had a similar message cleaned up this way.

这篇关于`C编译器'阶段``gcc.exe'失败。 (退出代码:1)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆