我安装OS X Yosemite,现在我的gcc 4.9.1编译器存在很大问题.我希望有人可以帮助我.
我尝试编译我的程序,我有警告消息:
gcc: warning: couldn’t understand kern.osversion ‘14.0.0'
Run Code Online (Sandbox Code Playgroud)
我搜索谷歌,我发现https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61407 我尝试应用补丁:
sudo patch -p1 < /usr/local/bin/00-darwin-10.10.patch
Run Code Online (Sandbox Code Playgroud)
在gcc文件夹中:/usr/local/bin/gcc
我收到了以下消息:
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/fixincludes/fixincl.x b/fixincludes/fixincl.x
|index dd45802..0db14d7 100644
|--- a/fixincludes/fixincl.x
|+++ b/fixincludes/fixincl.x
--------------------------
File to patch:
Run Code Online (Sandbox Code Playgroud)
在File to patch:我已经尝试过gcc,我收到了消息:
patching file gcc
Hunk #1 FAILED at 1.
Hunk #2 FAILED at …Run Code Online (Sandbox Code Playgroud)