Ask Your Question

Problem with Sage's gcc and limits.h

asked 2013-05-19 17:33:38 -0500

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 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/ -c mathics/core/expression.c -o build/temp.macosx-10.8-x86_64-2.7/mathics/core/expression.o
In file included from /Applications/,
                 from /Applications/,
                 from /Applications/,
                 from mathics/core/expression.c:16:
/Applications/ 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/" 1 3 4
# 34 "/Applications/" 3 4
# 1 "/Applications/" 1 3 4

# 1 "/Applications/" 1 3 4
In file included from /Applications/,
                 from /Applications/,
                 from t.c:1:
/Applications/ fatal error: limits.h ...
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-06-01 13:05:44 -0500

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


Asked: 2013-05-19 17:33:38 -0500

Seen: 586 times

Last updated: Jun 01 '13