Ask Your Question
1

Building Sage on 32-bit Fedora 22; build errors

asked 2015-06-15 10:26:59 +0100

Fusion809 gravatar image

updated 2015-06-15 11:36:11 +0100

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 ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2015-06-22 12:19:37 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

Hi,

I had the same problem trying to build Sage on my Chromebook. It is a permissions issue. You have to make sure that nobody other than your account (and root) have write access to /opt/sage.

In my situation, the directory was in the group 'users', which had write access. I chose to change the group for the directory to the singleton group consisting of my main user account, though I also could have changed the permissions for the folder so that the group 'users' didn't have write access.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-06-15 10:26:59 +0100

Seen: 537 times

Last updated: Jun 22 '15