First time here? Check out the FAQ!

Ask Your Question
1

gcc cython compilation error in OSX 10.10

asked 10 years ago

matheth gravatar image

updated 9 years ago

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.

Preview: (hide)

Comments

Possibly (but probably not) related: https://github.com/sagemath/sagenb/issues/260

kcrisman gravatar imagekcrisman ( 10 years ago )

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 ( 10 years ago )

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 ( 10 years ago )

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

kcrisman gravatar imagekcrisman ( 10 years ago )

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 ( 10 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 10 years ago

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.

Preview: (hide)
link

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

Stats

Asked: 10 years ago

Seen: 925 times

Last updated: Nov 19 '14