Answering my own question: In src/module_list.py, at line 432, change Extension('sage.graphs.base.static_dense_graph', sources = ['sage/graphs/base/static_dense_graph.pyx']),
to Extension('sage.graphs.base.static_dense_graph', sources = ['sage/graphs/base/static_dense_graph.pyx'], libraries = ['gmp']), Sam On Sunday, March 29, 2015 at 11:18:30 AM UTC-7, Sam Wilson wrote: > > I'm trying to build sage 6.6rc1 on Windows 7 with cygwin 1.7.35. After a > couple days of compiling the toolchain and all the other packages, I get > the error below. static_dense_graph.c doesn't refer to __imp___gmpn_and_n, > so I'm not sure what to do! Anyone know what's happening? > > Sam > > gcc -I/usr/include/ncurses -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv > -O3 -Wall -I/home/Sam/sage/local/include > -I/home/Sam/sage/local/include/csage -I/home/Sam/sage/src > -I/home/Sam/sage/src/sage/ext -I/home/Sam/sage/local/include/python2.7 -c > build/cythonized/sage/graphs/base/static_dense_graph.c -o > build/temp.cygwin-1.7.35-x86_64-2.7/build/cythonized/sage/graphs/base/static_dense_graph.o > > -fno-strict-aliasing -w > gcc -shared -Wl,--enable-auto-image-base -L/home/Sam/sage/local/lib > build/temp.cygwin-1.7.35-x86_64-2.7/build/cythonized/sage/graphs/base/static_dense_graph.o > > -L/home/Sam/sage/local/lib -L/home/Sam/sage/local/lib/python2.7/config > -L/home/Sam/sage/local/lib -lcsage -lpython2.7 -o > build/lib.cygwin-1.7.35-x86_64-2.7/sage/graphs/base/static_dense_graph.dll > build/temp.cygwin-1.7.35-x86_64-2.7/build/cythonized/sage/graphs/base/static_dense_graph.o: > > In function > `__pyx_pf_4sage_6graphs_4base_18static_dense_graph_is_strongly_regular': > /home/Sam/sage/src/build/cythonized/sage/graphs/base/static_dense_graph.c:7420: > > undefined reference to `__imp___gmpn_and_n' > /home/Sam/sage/src/build/cythonized/sage/graphs/base/static_dense_graph.c:7420:(.text+0x7cd3): > > relocation truncated to fit: R_X86_64_PC32 against undefined symbol > `__imp___gmpn_and_n' > /home/Sam/sage/src/build/cythonized/sage/graphs/base/static_dense_graph.c:7420: > > undefined reference to `__imp___gmpn_popcount' > /home/Sam/sage/src/build/cythonized/sage/graphs/base/static_dense_graph.c:7420:(.text+0x7cda): > > relocation truncated to fit: R_X86_64_PC32 against undefined symbol > `__imp___gmpn_popcount' > collect2: error: ld returned 1 exit status > gcc -I/usr/include/ncurses -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv > -O3 -Wall -I/home/Sam/sage/local/include > -I/home/Sam/sage/local/include/csage -I/home/Sam/sage/src > -I/home/Sam/sage/src/sage/ext -I/home/Sam/sage/local/include/python2.7 -c > build/cythonized/sage/graphs/base/static_sparse_graph.c -o > build/temp.cygwin-1.7.35-x86_64-2.7/build/cythonized/sage/graphs/base/static_sparse_graph.o > > -fno-strict-aliasing -w > error: command 'gcc' failed with exit status 1 > > real 27m53.813s > user 24m45.013s > sys 1m55.394s > Makefile:876: recipe for target > '/home/Sam/sage/local/var/lib/sage/installed/sage' failed > make[2]: *** [/home/Sam/sage/local/var/lib/sage/installed/sage] Error 1 > make[2]: Leaving directory '/home/Sam/sage/build' > Makefile:391: recipe for target 'all' failed > make[1]: *** [all] Error 2 > make[1]: Leaving directory '/home/Sam/sage/build' > > -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.