Hello,

I would like to install some Python package involving compilation through Cython (namely [1]). It seems to be broken with sage-7.3-OSX_10.11.6-x86_64.app.dmg installed on a computer with OS X 10.11.6 El Capitan.

Sage does work from the command line and gcc is present. But it seems that libc and associated header files are required on the host. Namely trying to install the package just fails with complaints that "limits.h" does not exist

{{{
   $ sage -pip install surface_dynamics
   ...
   running build_ext
building 'surface_dynamics.flat_surfaces.origamis.origami_dense' extension
    ...
In file included from /Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/gcc/x86_64-apple-darwin15.6.0/4.9.3/include-fixed/syslimits.h:7:0, from /Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/gcc/x86_64-apple-darwin15.6.0/4.9.3/include-fixed/limits.h:34, from /Applications/SageMath-7.3.app/Contents/Resources/sage/local/include/python2.7/Python.h:19, from surface_dynamics/flat_surfaces/origamis/origami_dense.c:25:

/Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/gcc/x86_64-apple-darwin15.6.0/4.9.3/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
     #include_next <limits.h>  /* recurse down to the real one */
                                                                 ^
    compilation terminated.
    error: command 'gcc' failed with exit status 1
}}}

Apparently, there needs to be a libc with headers on the host to have anything related to compilation working properly. Is that right? I did not find anywhere where it is documented...

Cheers,
Vincent

  [1] https://pypi.python.org/pypi/surface_dynamics

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

Reply via email to