gcc 4.9.1 in OS X Yosemite - gcc: warning: couldn’t understand kern.osversion ‘14.0.0'

前端 未结 10 1907
醉梦人生
醉梦人生 2020-12-13 19:18

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

10条回答
  •  渐次进展
    2020-12-13 19:29

    The patch you are trying to use is for patching the source code of GCC, and you are trying to use it to patch the compiled binary. That won't work.

    In theory the process would be

    • Download source tarball of GCC compiler
    • apply the patch to it
    • compile GCC
    • Install the compiled GCC

    However, you are unlikely to be able to do this since you cannot run the compiler in order to compile a newer copy of itself. Catch-22!

    Searching google for 'gcc yosemite' I found a number of references to possible solutions, eg. enter link description here. I'm afraid I am no mac expert so I cannot judge the quality of these solutions.

提交回复
热议问题