Ask Your Question
1

Problem with Sage's gcc and limits.h

asked 2013-05-20 00:33:38 +0100

jahbini gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-06-01 20:05:44 +0100

jahbini gravatar image

Alas. All trouble seems to be caused by my recent upgrade to Mountain Lion and resolve nicely after re-installing tools, brews, etc.

Times that standard system C header files go wonky implies confusion with installation and system issues.

Koan for enlightenment: Is Mountain Lion Apple's "Vista?"

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-05-20 00:33:38 +0100

Seen: 1,386 times

Last updated: Jun 01 '13