On Sunday, 13 January 2013 02:34:04 UTC+8, Volker Braun wrote: > > On Saturday, January 12, 2013 6:18:08 PM UTC, Jeroen Demeyer wrote: > >> > * replace /usr/include with $SAGE_ROOT/local/include >> It's already there in the include path. >> > > Yes but gcc has > local/lib/gcc/x86_64-apple-darwin10.8.0/4.6.3/include-fixed/ > after $SAGE_ROOT/local/include. The fixed limit.h ends with #include_next > <limit.h> which only searches in the include paths further down. > > Of course we could name the directory it differently, > $SAGE_ROOT/local/include/platform-headers or so. > > >> > A quick grep of gcc's include-fixed directory suggests that limits.h is >> > the only header required >> That would be very surprising. Is stdio.h for example included by >> default on OS X systems without XCode? >> > > Oh ok, stdio.h doesn't get fixed so it doesn't occur in include-fixed. > Still, I only see following #include-next statements > for stdio.h, string.h, unistd.h, stdint.h, limits.h. > > Somebody with a Mac without xcode should try to copy just those headers > into /usr/include and figure out which other headers are needed... >
Tried, and saw that not only quite a bit of /usr/include needs to be shipped, but also as must be in the bundle. Namely, after putting the whole /usr/include from Xcode of a similar OSX system on such a bare machine: Compiling ./hello.spyx... Error compiling cython file: Error compiling ./hello.spyx: running build running build_ext building '_Users_edith_Desktop_sage_hello_spyx_6' extension gcc -fno-strict-aliasing -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/edith/Desktop/sage/local/include/csage -I/Users/edith/Desktop/sage/local/include -I/Users/edith/Desktop/sage/local/include/python2.7 -I/Users/edith/Desktop/sage/local/lib/python/site-packages/numpy/core/include -I/Users/edith/Desktop/sage/devel/sage/sage/ext -I/Users/edith/Desktop/sage/devel/sage -I/Users/edith/Desktop/sage/devel/sage/sage/gsl -I. -I/Users/edith/Desktop/sage/local/include/python2.7 -c _Users_edith_Desktop_sage_hello_spyx_6.c -o build/temp.macosx-10.6-i386-2.7/_Users_edith_Desktop_sage_hello_spyx_6.o -w -O2 gcc: error trying to exec 'as': execvp: No such file or directory error: command 'gcc' failed with exit status 1 ---------------------------------------------------------------------------------------- Needless to say, ld is also missing... I finally got hello.spyx compiling/linking/running on a "bare" OSX 10.6.8, after copying (from a similar 32-bit Core 2Duo OSX 10.6.8 with XCode 3.2.6) /usr/bin/as /usr/libexec/gcc/darwin/i386/as /usr/bin/ld /usr/lib/bundle1.o Welcome to the binary Hell! Of course there is no guarantee that this is all even needed. Perhaps there is a standard way to package such a minimum, I don't know. Dima > > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support?hl=en.
