Hello all,

I would like to apply Scipy weave in Sage (i.e., call inline C code from 
Python).

Instructions are at http://www.sagemath.org/doc/numerical_sage/weave.html

When I copy the first example into a Sage Notebook cell, I get the following 
error traceback:

In file included from
/Applications/sage/local/bin/../lib/gcc/x86_64-apple-darwin13.0.0/4.7.3/\
include-fixed/syslimits.h:7:0,
                 from
/Applications/sage/local/bin/../lib/gcc/x86_64-apple-darwin13.0.0/4.7.3/\
include-fixed/limits.h:34,
                 from
/Applications/sage/local/include/python2.7/Python.h:19,
                 from
/Applications/sage/local/lib/python2.7/site-packages/scipy/weave/scxx/ob\
ject.h:11,
                 from
/Applications/sage/local/lib/python2.7/site-packages/scipy/weave/scxx/we\
ave_imp.cpp:7:
/Applications/sage/local/bin/../lib/gcc/x86_64-apple-darwin13.0.0/4.7.3/\
include-fixed/limits.h:169:61: fatal error: limits.h: No such file or
directory
compilation terminated.
In file included from
/Applications/sage/local/bin/../lib/gcc/x86_64-apple-darwin13.0.0/4.7.3/\
include-fixed/syslimits.h:7:0,
                 from
/Applications/sage/local/bin/../lib/gcc/x86_64-apple-darwin13.0.0/4.7.3/\
include-fixed/limits.h:34,
                 from
/Applications/sage/local/include/python2.7/Python.h:19,
                 from
/Applications/sage/local/lib/python2.7/site-packages/scipy/weave/scxx/ob\
ject.h:11,
                 from
/Applications/sage/local/lib/python2.7/site-packages/scipy/weave/scxx/we\
ave_imp.cpp:7:
/Applications/sage/local/bin/../lib/gcc/x86_64-apple-darwin13.0.0/4.7.3/\
include-fixed/limits.h:169:61: fatal error: limits.h: No such file or
directory
compilation terminated.
Traceback (click to the left of this block for traceback)
...
scipy.weave.build_tools.CompileError: error: Command "g++
-fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
-I/Applications/sage/local/lib/python2.7/site-packages/scipy/weave
-I/Applications/sage/local/lib/python2.7/site-packages/scipy/weave/scxx
-I/Applications/sage/local/lib/python2.7/site-packages/scipy/weave/blitz
-I/Applications/sage/local/lib/python2.7/site-packages/numpy/core/includ\
e -I/Applications/sage/local/include/python2.7 -c
/Applications/sage/local/lib/python2.7/site-packages/scipy/weave/scxx/we\
ave_imp.cpp -o
/var/folders/7f/87pw4jw1691785kvc9kw2lkr0000gv/T/jim/python27_intermedia\
te/compiler_63538caa8cf471defd3a9c039c6862c3/Applications/sage/local/lib\
/python2.7/site-packages/scipy/weave/scxx/weave_imp.o" failed with exit
status 1

Apparently the compiler can't find the file limits.h

Running Sage 6.1.1 on OS X 10.9.2 (Mavericks)

What's up?

Thanks for any insight/help anyone can provide.
Jim Clark

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to