Ask Your Question

gcc cython compilation error in OSX 10.10

asked 2014-11-12 17:16:02 +0100

matheth gravatar image

updated 2015-10-22 21:35:10 +0100

FrédéricC gravatar image

Dear all,

when trying to use cython in the notebook I get the following gcc-error:

error: unknown value '10.10' of -mmacosx-version-min
error: command 'gcc' failed with exit status 1

I would greatly appreciate any help and thank you in advance.

edit retag flag offensive close merge delete


Possibly (but probably not) related:

kcrisman gravatar imagekcrisman ( 2014-11-12 19:34:44 +0100 )edit

It would be really important to know exactly which version of Sage you are using and what compiler options you have set. Probably this is resolved in the latest rc of Sage 6.4, which does now support Yosemite.

kcrisman gravatar imagekcrisman ( 2014-11-12 19:35:39 +0100 )edit

Thank you for your comments. I am using Sage version 6.3, released 2014-08-10, and have recently installed gcc4.9 via macport and set it to default using gcc_select. Hope that is the relevant information.

matheth gravatar imagematheth ( 2014-11-12 20:47:13 +0100 )edit

Looks like you need 4.9.1 or something, see among others. Using a gcc other than Sage's on Mac is sometimes asking for trouble, the compilers are so picky.

kcrisman gravatar imagekcrisman ( 2014-11-12 21:01:22 +0100 )edit

It seems is have gcc4.9.1, since sage told me so when I attempted to install sage 6.4. But I encountered: error: "found MacPorts in /opt/local/bin/port. Either: (1) rename /opt/local and /sw, or (2) change PATH and DYLD_LIBRARY_PATH (Once Sage is built, you can restore them.) If you would like to try to build Sage anyway (to help porting), export the variable 'SAGE_PORT' to something non-empty. make[2]: *** [/Users/Alex/Downloads/sage-6.4.beta4/local/var/lib/sage/installed/prereq] Error 1 make[1]: *** [all] Error 2

matheth gravatar imagematheth ( 2014-11-12 21:48:37 +0100 )edit

1 Answer

Sort by » oldest newest most voted

answered 2014-11-19 16:13:02 +0100

Volker Braun gravatar image

If you get the "found MacPorts in /opt/local/bin/port. Either: (1) rename /opt/local and /sw, or (2) change PATH and DYLD_LIBRARY_PATH (Once Sage is built, you can restore them.)" error then just do that.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-11-12 17:16:02 +0100

Seen: 854 times

Last updated: Nov 19 '14