Building sage 9.0 fails in Centos 8

61 views
Skip to first unread message

Aria Shahverdi

unread,
Jan 15, 2020, 11:44:12 AM1/15/20
to sage-devel
Hi,

I got the 'sage-9.0-Debian_GNU_Linux_10-x86_64.tar.bz2' from the website and am trying to install it on Centos 8. (I previously did the same procedure for sage 8.9 and it was successful).

There is error in the begining of make file in the following files

1. last couple of lines of sagelib-9.0.log

/usr/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
g++ -pthread -shared -L/home/aria/sage-9.0/local/lib -Wl,-rpath,/home/aria/sage-9.0/local/lib -L. -L/home/aria/sage-9.0/local/lib -Wl,-rpath,/home/aria/sage-9.0/local/lib -L/home/aria/sage-9.0/local/lib -Wl,-rpath,/home/aria/sage-9.0/local/lib build/temp.linux-x86_64-3.7/build/cythonized/sage/symbolic/ring.o -L/home/aria/sage-9.0/local/lib -L/home/aria/sage-9.0/local/lib -lgmp -lpynac -lstdc++ -lpython3.7m -o build/lib.linux-x86_64-3.7/sage/symbolic/ring.cpython-37m-x86_64-linux-gnu.so
/usr/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
g++ -pthread -shared -L/home/aria/sage-9.0/local/lib -Wl,-rpath,/home/aria/sage-9.0/local/lib -L. -L/home/aria/sage-9.0/local/lib -Wl,-rpath,/home/aria/sage-9.0/local/lib -L/home/aria/sage-9.0/local/lib -Wl,-rpath,/home/aria/sage-9.0/local/lib build/temp.linux-x86_64-3.7/build/cythonized/sage/symbolic/expression.o -L/home/aria/sage-9.0/local/lib -L/home/aria/sage-9.0/local/lib -lgmp -lpynac -lstdc++ -lpython3.7m -o build/lib.linux-x86_64-3.7/sage/symbolic/expression.cpython-37m-x86_64-linux-gnu.so -lpari
/usr/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
error: command 'g++' failed with exit status 1
make[4]: *** [Makefile:33: sage] Error 1
make[4]: Leaving directory '/home/aria/sage-9.0/src'

real    31m9.136s
user    113m32.482s
sys    2m13.602s




2. last couple of lines of yasm-1.3.0.p0.log

checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/aria/sage-9.0/local/var/tmp/sage/build/yasm-1.3.0.p0/src':
configure: error: C compiler cannot create executables
See `config.log' for more details
********************************************************************************
Error configuring yasm-1.3.0.p0
See the file
    /home/aria/sage-9.0/local/var/tmp/sage/build/yasm-1.3.0.p0/src/config.log
for details.
********************************************************************************

real    0m0.568s
user    0m0.314s
sys    0m0.272s
************************************************************************
Error installing package yasm-1.3.0.p0
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the log file
  /home/aria/sage-9.0/logs/pkgs/yasm-1.3.0.p0.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/aria/sage-9.0/local/var/tmp/sage/build/yasm-1.3.0.p0 and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
  (cd '/home/aria/sage-9.0/local/var/tmp/sage/build/yasm-1.3.0.p0' && '/home/aria/sage-9.0/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************




I have tried to remove yasm and do make again but I got error as well. I appreciate it if anyone can help me figure out what is going on.

Dima Pasechnik

unread,
Jan 15, 2020, 4:11:25 PM1/15/20
to sage-devel


On Wed, 15 Jan 2020, 16:44 Aria Shahverdi, <ari...@gmail.com> wrote:
Hi,

I got the 'sage-9.0-Debian_GNU_Linux_10-x86_64.tar.bz2' from the website and am trying to install it on Centos 8. (I previously did the same procedure for sage 8.9 and it was successful).

There is error in the begining of make file in the following files

1. last couple of lines of sagelib-9.0.log

Are you building from source? 
You might have better luck using the source tarball - or at least we would be more sure that errors you get are not side effects of using a binary tarball.

--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/cb32d11c-8e53-4438-ab2a-2f172598e7cb%40googlegroups.com.

Aria Shahverdi

unread,
Jan 15, 2020, 4:17:14 PM1/15/20
to sage-devel
Thanks, Yes the portable edition is working fine. I am trying to build from source and that is when it causes the problem.

I looked more and it seems there is an issue with gcc and it tries to build gcc although I have gcc-8.3
To unsubscribe from this group and stop receiving emails from it, send an email to sage-...@googlegroups.com.

Dima Pasechnik

unread,
Jan 15, 2020, 4:22:39 PM1/15/20
to sage-devel
typically this happens if you don't have g++ and gfortran installed on your 
system.


To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/2e7eec05-143f-44bc-b23c-fd1c5c22c7e3%40googlegroups.com.

Aria Shahverdi

unread,
Jan 15, 2020, 6:03:14 PM1/15/20
to sage-devel
I just updated gcc, g++ and gfortran to 9.2.0 but ./configure still can not detect gcc but it detects gfortran.

    gcc-9.2.0
    gdb-8.2
    gf2x-1.2.p0
    gfan-0.6.2.p1
    gfortran-9.2.0 will not be installed (configure check)

Also forcing  i.e. ./configure --with-system-gcc , does not seem to help as well.

Dima Pasechnik

unread,
Jan 15, 2020, 6:14:17 PM1/15/20
to sage-devel
try running

   make distclean

and then

  ./configure

again. If this doesn't help, post
config.log

here



To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/dc48a819-41c1-4f40-9a9e-2090d9448589%40googlegroups.com.

Aria Shahverdi

unread,
Jan 16, 2020, 12:36:08 PM1/16/20
to sage-devel
Thanks, using what you suggested worked and now sage-9.0 is installed.

Thanks.
Reply all
Reply to author
Forward
0 new messages