Did you try the compilation with the environment variable 

SAGE_INSTALL_GCC="no"

This should avoid installing gcc. Also, gcc 4.6 does support "-march" 
option. Is that what you meant to write when you wrote "-arch"?

On Saturday, August 24, 2013 5:46:41 PM UTC+8, ASageWoodpecker wrote:
>
> When trying to build sage, I came across a weird situation with matplotlib 
> on OS X.
>
> The setup deemed my default version of gcc (LLVM) to be too old 
> (equivalent to 4.2) and downloaded GNU GCC 4.6. However, the build script 
> for matplotlib insisted on having the '-arch' option for compilation via 
> the local version of gcc. Presumably, this helps the executable work with 
> the x86_64 architecture on OS X or as a fat binary. But GNU GCC 4.6 does 
> not support the '-arch' flag, only LLVM gcc does. As a result, the whole 
> build script fails.
>
> I eventually got around this problem by going to the matplotlib build 
> directory within the sage-root directory, invoking the sage-shell for the 
> environment and temporarily renaming the sage-installed version of GNU GCC 
> before invoking the build script. This let the build script use the default 
> compiler on my system and the matplotlib build finished without a hitch 
> thereafter.
>
> I'm not sure of the best way to fix this bug. But I think one of the 
> following would work:
> 1. Use a local version of gcc that supports the '-arch' flag that 
> matplotlib wants to use
> 2. Change the matplotlib build script to provide the '-arch' information 
> through a valid flag.
>
> Hope this is helpful to others in working around the problem or maybe 
> committing a fix to the source.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to