#13309: Build fails on Mountain Lion
----------------------------+-----------------------------------------------
       Reporter:  hedtke    |         Owner:  GeorgSWeber
           Type:  defect    |        Status:  new        
       Priority:  critical  |     Milestone:  sage-5.4   
      Component:  build     |    Resolution:             
       Keywords:            |   Work issues:             
Report Upstream:  N/A       |     Reviewers:             
        Authors:            |     Merged in:             
   Dependencies:            |      Stopgaps:             
----------------------------+-----------------------------------------------

Comment (by chsorger):

 There is a subtle change in Mountain Lion which defaults to that system
 header files will use Objective C syntax constructs
 although we are compiling just pure C.  This explains the build error in
 mercurial above. Setting the compiler flag OS_OBJECT_USE_OBJC=0
 reverts this change, so that setting (globally, as I guess there is only
 pure C in sage)

  `export CFLAGS="-DOS_OBJECT_USE_OBJC=0"`\\
  `make`

 will compile mercurial.

 A second build error occurred in gd-2.0.35.p7 where the header file
 fontconfig/fontconfig.h was not found. If you experience this, adding the
 include /opt/X11/include helps to compile gd but induces a version
 incompatibility between the fontconfig and freetype later when starting
 sage. A workaround for me was to compile fontconfig into the sage local
 tree using the correct free type libs and then continue with make.

 A third error occurred  during compilation of scipy, where Mountain Lion
 does not specify the correct accelerators. Here the following helps.

  `export CPPFLAGS="-D__ACCELERATE__"` \\
  `make clean` \\
  `make`

 After that sage 5.3 compiled (at least on my 10.8.1).

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13309#comment:5>
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.

Reply via email to