Problem with Sage's gcc and limits.h
I have run into two subsystem installs during the execution of their install script: The first was matplotlib, the second during install of mathics.
Both failed due to gcc not being able to find "limit.h"
This is the error sequence for mathics (the install of matplotlib ended the same death):
jahbini@Trismegistus:mathics-0.5$ sage -python setup.py install running install running bdist_egg running egg_info writing requirements to Mathics.egg-info/requires.txt writing Mathics.egg-info/PKG-INFO writing top-level names to Mathics.egg-info/top_level.txt writing dependency_links to Mathics.egg-info/dependency_links.txt writing entry points to Mathics.egg-info/entry_points.txt reading manifest file 'Mathics.egg-info/SOURCES.txt' writing manifest file 'Mathics.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.8-x86_64/egg running install_lib running build_py running build_ext skipping 'mathics/core/expression.c' Cython extension (up-to-date) building 'mathics.core.expression' extension gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Applications/Sage-5.9-OSX-64bit-10.8.app/Contents/Resources/sage/local/include/python2.7 -c mathics/core/expression.c -o build/temp.macosx-10.8-x86_64-2.7/mathics/core/expression.o In file included from /Applications/Sage-5.9-OSX-64bit-10.8.app/Contents/Resources/sage/local/bin/../lib/gcc/x86_64-apple-darwin12.3.0/4.7.2/include-fixed/syslimits.h:7:0, from /Applications/Sage-5.9-OSX-64bit-10.8.app/Contents/Resources/sage/local/bin/../lib/gcc/x86_64-apple-darwin12.3.0/4.7.2/include-fixed/limits.h:34, from /Applications/Sage-5.9-OSX-64bit-10.8.app/Contents/Resources/sage/local/include/python2.7/Python.h:19, from mathics/core/expression.c:16: /Applications/Sage-5.9-OSX-64bit-10.8.app/Contents/Resources/sage/local/bin/../lib/gcc/x86_64-apple-darwin12.3.0/4.7.2/include-fixed/limits.h:169:62: fatal error: limits.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1
I compiled a dummy prog (t.c) with
#include "limits.h"
and got this:
$gcc -E t.c # 1 "t.c" # 1 "<command-line>" # 1 "t.c" # 1 "/Applications/Sage-5.9-OSX-64bit-10.8.app/Contents/Resources/sage/local/bin/../lib/gcc/x86_64-apple-darwin12.3.0/4.7.2/include-fixed/limits.h" 1 3 4 # 34 "/Applications/Sage-5.9-OSX-64bit-10.8.app/Contents/Resources/sage/local/bin/../lib/gcc/x86_64-apple-darwin12.3.0/4.7.2/include-fixed/limits.h" 3 4 # 1 "/Applications/Sage-5.9-OSX-64bit-10.8.app/Contents/Resources/sage/local/bin/../lib/gcc/x86_64-apple-darwin12.3.0/4.7.2/include-fixed/syslimits.h" 1 3 4 # 1 "/Applications/Sage-5.9-OSX-64bit-10.8.app/Contents/Resources/sage/local/bin/../lib/gcc/x86_64-apple-darwin12.3.0/4.7.2/include-fixed/limits.h" 1 3 4 In file included from /Applications/Sage-5.9-OSX-64bit-10.8.app/Contents/Resources/sage/local/bin/../lib/gcc/x86_64-apple-darwin12.3.0/4.7.2/include-fixed/syslimits.h:7:0, from /Applications/Sage-5.9-OSX-64bit-10.8.app/Contents/Resources/sage/local/bin/../lib/gcc/x86_64-apple-darwin12.3.0/4.7.2/include-fixed/limits.h:34, from t.c:1: /Applications/Sage-5.9-OSX-64bit-10.8.app/Contents/Resources/sage/local/bin/../lib/gcc/x86_64-apple-darwin12.3.0/4.7.2/include-fixed/limits.h:169:62: fatal error: limits.h ...