title: gcc 4.9.1 in OS X Yosemite - gcc: warning: couldn’t understand kern.osversion ‘14.0.0'
body: <p>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.</p>
  
  <p>I try to compile my program and i have the warning message: </p>
  
  <pre><code>gcc: warning: couldn’t understand kern.osversion ‘14.0.0'
  </code></pre>
  
  <p>I search on google and i find <a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61407">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61407</a>
  I try to apply the patch doing:</p>
  
  <pre><code>sudo patch -p1 &lt; /usr/local/bin/00-darwin-10.10.patch
  </code></pre>
  
  <p>in gcc folder: <code>/usr/local/bin/gcc</code>
  and i received the message:</p>
  
  <pre><code>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:
  </code></pre>
  
  <p>in <code>File to patch:</code> i already tried gcc and i received the message:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>I try with <code>sudo</code> and i received:</p>
  
  <pre><code>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: 
  </code></pre>
  
  <p>I´m in the wrong folder?
  Anyone can help me?</p>