ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 15 Jun 2015 10:26:59 +0200Building Sage on 32-bit Fedora 22; build errorshttps://ask.sagemath.org/question/27107/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 sage 2>&1' 'tee -a /opt/sage/logs/pkgs/sage-6.7.log' && \
touch /opt/sage/local/var/lib/sage/installed/sage; \
fi
make[3]: Entering directory '/opt/sage/src'
python -c "from sage_setup.autogen.pari import rebuild; rebuild()"
sys:1: RuntimeWarning: not adding directory '' to sys.path since everybody can write to it.
Untrusted users could put files in this directory which might then be imported by your Python code. As a general precaution from similar exploits, you should not execute Python code from this directory
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named sage_setup.autogen.pari
Makefile:29: recipe for target 'sage/libs/pari/auto_gen.pxi' failed
make[3]: *** [sage/libs/pari/auto_gen.pxi] Error 1
make[3]: Leaving directory '/opt/sage/src'
real 0m0.091s
user 0m0.051s
sys 0m0.015s
Makefile:923: recipe for target '/opt/sage/local/var/lib/sage/installed/sage' failed
make[2]: *** [/opt/sage/local/var/lib/sage/installed/sage] Error 2
make[2]: Leaving directory '/opt/sage/build'
Makefile:418: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/opt/sage/build'
real 842m18.580s
user 298m33.756s
sys 17m18.946s
***************************************************************
Error building Sage.
The following package(s) may have failed to build:
The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
Makefile:19: recipe for target 'build' failed
make: *** [build] Error 1
if you need any further details like some of my files (e.g., `.spkg` files) just give their names and location and I shall provide them hastily. Fusion809Mon, 15 Jun 2015 10:26:59 +0200https://ask.sagemath.org/question/27107/