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
#include "partitions_c.h"
^
compilation terminated.
make[3]: *** [sage] Error 1
Is there a problem building from the github copy?
/Users/Masson/desktop/sage/src/build/cythonized/sage/combinat/partitions.cpp:323:26: fatal error: partitions_c.h: No such file or directory
#include "partitions_c.h"
/Users/Masson/desktop/sage/src/build/cythonized/sage/combinat/matrices/dancing_links.cpp:319:29: fatal error: dancing_links_c.h: No such file or directory
#include "dancing_links_c.h"
/Users/Masson/desktop/sage/src/build/cythonized/sage/graphs/base/boost_graph.cpp:314:31: fatal error: boost_interface.cpp: No such file or directory
#include "boost_interface.cpp"
/Users/Masson/desktop/sage/src/build/cythonized/sage/libs/ecl.c:324:20: fatal error: eclsig.h: No such file or directory
#include "eclsig.h"
/Users/Masson/desktop/sage/src/build/cythonized/sage/libs/ppl.cpp:336:23: fatal error: ppl_shim.hh: No such file or directory
#include "ppl_shim.hh"
/Users/Masson/desktop/sage/src/build/cythonized/sage/libs/eclib/mwrank.cpp:356:20: fatal error: wrap.cpp: No such file or directory
#include "wrap.cpp"
/Users/Masson/desktop/sage/src/build/cythonized/sage/matroids/matroid.c:296:22: fatal error: minorfix.h: No such file or directory
#include "minorfix.h"
/Users/Masson/desktop/sage/src/build/cythonized/sage/misc/darwin_utilities.c:290:33: fatal error: darwin_memory_usage.h: No such file or directory
#include "darwin_memory_usage.h"
/Users/Masson/desktop/sage/src/build/cythonized/sage/symbolic/pynac.cpp:334:22: fatal error: pynac_cc.h: No such file or directory
#include "pynac_cc.h"
$ egrep -r partitions_c.h logs/install.log
logs/install.log:/Users/Masson/downloads/github/sage/src/build/cythonized/sage/combinat/partitions.cpp:323:26: fatal error: partitions_c.h: No such file or directory
logs/install.log: #include "partitions_c.h"
Volker:
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
>>> sys.path.append('src')
>>> 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
/Users/dima/desktop
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.