Building Sage on 32-bit Fedora 22; build errors
I have been trying to compile SageMath 6.7 from source on 32 bit Fedora 22. When running make
from /opt/sage
it ran without issues for several hours until it gave this error:
make[3]: Entering directory '/opt/sage/src'
cd c_lib && scons -Q install
Install file: "include/interrupt.h" as "/opt/sage/local/include/csage/interrupt.h"
Install file: "include/ntl_wrap.h" as "/opt/sage/local/include/csage/ntl_wrap.h"
gcc -o src/interrupt.os -c -fPIC -I/opt/sage/local/include -I/opt/sage/local/include/python2.7 -I/opt/sage/local/include/NTL -Iinclude src/interrupt.c
In file included from /opt/sage/local/include/python2.7/Python.h:8:0,
from include/interrupt.h:58,
from src/interrupt.c:43:
/opt/sage/local/include/python2.7/pyconfig.h:1182:0: warning: "_POSIX_C_SOURCE" redefined
#define _POSIX_C_SOURCE 200112L
^
In file included from /usr/include/stdio.h:27:0,
from src/interrupt.c:29:
/usr/include/features.h:225:0: note: this is the location of the previous definition
# define _POSIX_C_SOURCE 200809L
^
src/interrupt.c: In function ‘print_enhanced_backtrace’:
src/interrupt.c:411:5: warning: implicit declaration of function ‘waitpid’ [-Wimplicit-function-declaration]
waitpid(pid, NULL, 0);
^
g++ -o src/ntl_wrap.os -c -fPIC -I/opt/sage/local/include -I/opt/sage/local/include/python2.7 -I/opt/sage/local/include/NTL -Iinclude src/ntl_wrap.cpp
In file included from /opt/sage/local/include/python2.7/Python.h:8:0,
from include/ntl_wrap.h:33,
from src/ntl_wrap.cpp:5:
/opt/sage/local/include/python2.7/pyconfig.h:1182:0: warning: "_POSIX_C_SOURCE" redefined
#define _POSIX_C_SOURCE 200112L
^
In file included from /usr/include/c++/5.1.1/i686-redhat-linux/bits/os_defines.h:39:0,
from /usr/include/c++/5.1.1/i686-redhat-linux/bits/c++config.h:482,
from /usr/include/c++/5.1.1/iostream:38,
from src/ntl_wrap.cpp:1:
/usr/include/features.h:225:0: note: this is the location of the previous definition
# define _POSIX_C_SOURCE 200809L
^
In file included from /opt/sage/local/include/python2.7/Python.h:8:0,
from include/ntl_wrap.h:33,
from src/ntl_wrap.cpp:5:
/opt/sage/local/include/python2.7/pyconfig.h:1204:0: warning: "_XOPEN_SOURCE" redefined
#define _XOPEN_SOURCE 600
^
In file included from /usr/include/c++/5.1.1/i686-redhat-linux/bits/os_defines.h:39:0,
from /usr/include/c++/5.1.1/i686-redhat-linux/bits/c++config.h:482,
from /usr/include/c++/5.1.1/iostream:38,
from src/ntl_wrap.cpp:1:
/usr/include/features.h:166:0: note: this is the location of the previous definition
# define _XOPEN_SOURCE 700
^
g++ -o libcsage.so -shared src/interrupt.os src/ntl_wrap.os -L/opt/sage/local/lib -L/opt/sage/local/lib/python2.7/config -lntl -lpari -lgmp -lpython2.7
Install file: "libcsage.so" as "/opt/sage/local/lib/libcsage.so"
make[3]: Leaving directory '/opt/sage/src'
real 0m9.822s
user 0m4.896s
sys 0m0.476s
if [ -z "$SAGE_INSTALL_FETCH_ONLY" ]; then \
cd /opt/sage/src && source bin/sage-env && \
/opt/sage/build/pipestatus 'time make ...