#12820: OS X Lion: use "clang" as default C compiler
-----------------------------+----------------------------------------------
Reporter: jdemeyer | Owner: GeorgSWeber
Type: PLEASE CHANGE | Status: new
Priority: major | Milestone: sage-5.0
Component: build | Keywords:
Work issues: | Report Upstream: N/A
Reviewers: | Authors: Jeroen Demeyer
Merged in: | Dependencies:
Stopgaps: |
-----------------------------+----------------------------------------------
William Stein reports this problem while building the GCC spkg:
{{{
checking for x86_64-apple-darwin11.3.0-gcc...
/Users/wstein/sage/install/sage-5.0.beta12-gcc/spkg/build/gcc-4.6.3/gcc-
build/./gcc/xgcc
-B/Users/wstein/sage/install/sage-5.0.beta12-gcc/spkg/build/gcc-4.6.3/gcc-
build/./gcc/
-B/Users/wstein/sage/install/sage-5.0.beta12-gcc/local/x86_64-apple-
darwin11.3.0/bin/
-B/Users/wstein/sage/install/sage-5.0.beta12-gcc/local/x86_64-apple-
darwin11.3.0/lib/
-isystem /Users/wstein/sage/install/sage-5.0.beta12-gcc/local/x86_64
-apple-darwin11.3.0/include
-isystem /Users/wstein/sage/install/sage-5.0.beta12-gcc/local/x86_64
-apple-darwin11.3.0/sys-include
checking for suffix of object files... configure: error: in
`/Users/wstein/sage/install/sage-5.0.beta12-gcc/spkg/build/gcc-4.6.3/gcc-
build/x86_64-apple-darwin11.3.0/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[4]: *** [configure-stage1-target-libgcc] Error 1
make[3]: *** [stage1-bubble] Error 2
make[2]: *** [all] Error 2
}}}
The problem seems to be an outdated XCode version which has a broken GCC.
Building with clang instead succeeded. Therefore, I propose to set
"CC=clang" by default on OS X 10.7 or later in sage-env.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12820>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.