GCC 4.9.1在OS X中的优胜美地 - 海湾合作委员会:警告:无法理解kern.osversion '14 .0.0“ [英] gcc 4.9.1 in OS X Yosemite - gcc: warning: couldn’t understand kern.osversion ‘14.0.0'

查看:342
本文介绍了GCC 4.9.1在OS X中的优胜美地 - 海湾合作委员会:警告:无法理解kern.osversion '14 .0.0“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装OS X优胜美地,现在我已经用gcc 4.9.1编译器的一个巨大的问题。
我希望有人能帮助我,请。

I install OS X Yosemite and now i have a huge problem with gcc 4.9.1 compiler. I hope some one can help me please.

我试图编译我的程序,我有警告消息:

I try to compile my program and i have the warning message:

gcc: warning: couldn’t understand kern.osversion ‘14.0.0'

我在谷歌搜索,我找到<一个href=\"https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61407\">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61407
我尝试应用补丁做的:

I search on google and i find https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61407 I try to apply the patch doing:

sudo patch -p1 < /usr/local/bin/00-darwin-10.10.patch

在海湾合作委员会的文件夹:的/ usr / local / bin目录/ GCC
我收到的消息:

in gcc folder: /usr/local/bin/gcc and i received the message:

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:

文件打补丁:我已经尝试过gcc和我收到的消息:

in File to patch: i already tried gcc and i received the message:

patching file gcc
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 15.
Hunk #3 succeeded at 1274 with fuzz 2 (offset -7908 lines).
Hunk #4 FAILED at 1319.
Hunk #5 FAILED at 1548.
Hunk #6 FAILED at 2671.
patch: **** Can't rename file gcc to gcc.orig : Permission denied

我尝试用须藤和我收到的:

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: 

I'm在错误的文件夹?
任何人都可以帮我吗?

I´m in the wrong folder? Anyone can help me?

推荐答案

从源代码构建东西的时候,这是我有一个类似的问题,因为我忘了升级到优胜美地和X $ C $后安装更新的命令行工具ç6.1。在命令行试试这个:

I had a similar issue when building things from source, and it was because I forgot to install the updated command line tools after upgrading to Yosemite and xcode 6.1. Try this in your command line:

xcode-select --install 

这将下载并安装命令行工具,并可能解决您的问题。

That will download and install the command line tools and may fix your problem.

这篇关于GCC 4.9.1在OS X中的优胜美地 - 海湾合作委员会:警告:无法理解kern.osversion '14 .0.0“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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