我最近下载了vim,我在C中创建了一个简单的Hello World程序。我看到Gcc在cmd上有错误后安装了clang。他们都做到了。我还安装了cygwin并尝试使用两个编译器的cmd,但仍然没有。
我一直在收到这些错误
1 [main] clang 304 child_info_fork::abort: C:\cygwin\bin\cygLLVM-3.5.dll:
Loaded to different address: parent(0x1A10000) != child(0x1710000) clang:
error: unable to execute command: posix_spawn failed: Resource temporarily
unavailable
我认为我对铿锵比对gcc更有希望
答案 0 :(得分:1)
简答:如果您的Cygwin安装直接位于C:驱动器下,请关闭Cygwin并在Windows命令提示符下尝试此命令:
C:\cygwin\bin\dash.exe -c '/usr/bin/rebaseall -v'
这是一个Cygwin fork failure。
如上所述,一个解决方案就是做一个' rebase':
阅读' rebase'在
/usr/share/doc/rebase/
中打包README,并按照其中的说明运行' rebaseall'。
根据自述文件:
Use the following procedure to rebase your entire system:
1. shutdown all Cygwin processes and services
2. start ash or dash (do not use bash or a terminal emulator like rxvt
or mintty). The easiest way to do this is to use Windows Explorer
and navigate to the top level of your cygwin installation, and
double-click ash.exe or dash.exe in the bin/ directory.
3. execute /bin/rebaseall (in the ash/dash window)
If you get any errors due to DLLs being in-use or read-only, then take the
appropriate action and rerun rebaseall. Otherwise, you run the risk of fork()
failing.