typically this happens if you don't have g++ and gfortran installed on your system.
On Wed, 15 Jan 2020, 21:17 Aria Shahverdi, <aria...@gmail.com> wrote: > 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 > > On Wednesday, January 15, 2020 at 4:11:25 PM UTC-5, Dima Pasechnik wrote: >> >> >> >> 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* >>> <http://mirrors.mit.edu/sage/linux/64bit/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. >> >> >>> /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. >>> >>> -- >>> 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-...@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 >>> <https://groups.google.com/d/msgid/sage-devel/cb32d11c-8e53-4438-ab2a-2f172598e7cb%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > 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+unsubscr...@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 > <https://groups.google.com/d/msgid/sage-devel/2e7eec05-143f-44bc-b23c-fd1c5c22c7e3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq2VQDT34Ud3DSOzV0vRt%3D_pz4pRbjv-ESbMLV5yRV0AWg%40mail.gmail.com.