error: command 'gcc' failed with exit status 1
/Users/Masson/downloads/github/sage/src/build/cythonized/sage/combinat/partitions.cpp:323:26: fatal error: partitions_c.h: No such file or directory
make: *** [sage] Error 1
Is there a problem building from the github copy?
MacBook-Retina:sage Masson$ python
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> from sage_setup.find import find_extra_files
>>> find_extra_files(["sage.combinat"], 'src', 'src/build/cythonized', '.')
[('./sage/combinat', ['src/sage/combinat/combinat_cython.pxd', 'src/sage/combinat/enumeration_mod_permgroup.pxd', 'src/sage/combinat/permutation_cython.pxd'])]
I have a partial answer as to what is causing these errors. Before starting 'make' I switched to the Sage directory using 'cd desktop/sage', as you can see by the small 'd' in 'desktop'. On a Mac that directory is most properly 'Desktop' with a capital 'D'. I revisited the build that halted by switching to the Sage directory with 'cd Desktop/sage' and again running 'make', and now everything copies and builds just fine.
That leaves open the question of why the build process is allowed to mostly work with the slightly wrong directory name, and how to flag the error before building starts.
nash:~ dima$ cd desktop
nash:desktop dima$ pwd
nash:desktop dima$ cd
nash:~ dima$ cd Desktop
nash:Desktop dima$ pwd
Yes, there is not much we can do about the case-sensitivity "feature" in OSX. Probably the best course of action would be to raise an error as soon as possible instead of attempting to build.
On Wednesday, June 1, 2016 at 12:26:31 AM UTC+1, Volker Braun wrote:Yes, there is not much we can do about the case-sensitivity "feature" in OSX. Probably the best course of action would be to raise an error as soon as possible instead of attempting to build.We'll see, if there will be no reply, we'd work out ourselves a quick check that we can do in the top makefile or some more appropriate way.