Dear Zelong, Sage 7.1 is almost 4 years old. We don't know if it can work on a modern Linux Debian system. Unless you have a pressing need to use version 7.1 (and then you are probably on your own), I recommend installing as many system packages as possible, as outlined on https://doc.sagemath.org/html/en/installation/source.html#linux-recommended-installation and then with Sage 9.0 (or older versions, from 8.6) you will not even need to build MPIR, instead an system GMP package will be used.
HTH Dmitrii On Sun, Jan 26, 2020 at 9:24 PM Zelong Liu <liuzelong940034...@gmail.com> wrote: > > Dear Sir/Madam, > > I am new to Sage. I am having trouble in installing sage 7.1 in Debain Linux > and I've got this error: > > mpn/.libs/divrem_euclidean_qr_1.o:divrem_euclidean_qr_1.as:(.text+0x0): first > defined here > > mpn/.libs/addmul_2.o: In function `__gmpn_addmul_2': > > addmul_2.as:(.text+0x0): multiple definition of `__gmpn_addmul_2' > > mpn/.libs/redc_2.o:/autofs/medium/home/liu/Documents/software/sage-7.1/local/var/tmp/sage/build/mpir-2.7.2/src/mpn/redc_2.c:38: > first defined here > > collect2: error: ld returned 1 exit status > > Makefile:860: recipe for target 'libmpir.la' failed > > make[6]: *** [libmpir.la] Error 1 > > make[6]: Leaving directory > '/autofs/medium/home/liu/Documents/software/sage-7.1/local/var/tmp/sage/build/mpir-2.7.2/src' > > Makefile:950: recipe for target 'all-recursive' failed > > make[5]: *** [all-recursive] Error 1 > > make[5]: Leaving directory > '/autofs/medium/home/liu/Documents/software/sage-7.1/local/var/tmp/sage/build/mpir-2.7.2/src' > > Makefile:746: recipe for target 'all' failed > > make[4]: *** [all] Error 2 > > make[4]: Leaving directory > '/autofs/medium/home/liu/Documents/software/sage-7.1/local/var/tmp/sage/build/mpir-2.7.2/src' > > Error building MPIR. > > > real 1m49.492s > > user 0m55.212s > > sys 0m7.460s > > ************************************************************************ > > Error installing package mpir-2.7.2 > > ************************************************************************ > > Please email sage-devel (http://groups.google.com/group/sage-devel) > > explaining the problem and including the relevant part of the log file > > /autofs/medium/home/liu/Documents/software/sage-7.1/logs/pkgs/mpir-2.7.2.log > > Describe your computer, operating system, etc. > > If you want to try to fix the problem yourself, *don't* just cd to > > /autofs/medium/home/liu/Documents/software/sage-7.1/local/var/tmp/sage/build/mpir-2.7.2 > 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 > '/autofs/medium/home/liu/Documents/software/sage-7.1/local/var/tmp/sage/build/mpir-2.7.2' > && '/autofs/medium/home/liu/Documents/software/sage-7.1/sage' --sh) > > When you are done debugging, you can type "exit" to leave the subshell. > > ************************************************************************ > > Makefile:1767: recipe for target > '/autofs/medium/home/liu/Documents/software/sage-7.1/local/var/lib/sage/installed/mpir-2.7.2' > failed > > make[3]: *** > [/autofs/medium/home/liu/Documents/software/sage-7.1/local/var/lib/sage/installed/mpir-2.7.2] > Error 1 > > make[3]: Leaving directory > '/autofs/medium/home/liu/Documents/software/sage-7.1/build/make' > > Makefile:681: recipe for target 'toolchain-deps' failed > > make[2]: *** [toolchain-deps] Error 2 > > make[2]: Leaving directory > '/autofs/medium/home/liu/Documents/software/sage-7.1/build/make' > > Makefile:652: recipe for target 'all-toolchain' failed > > make[1]: *** [all-toolchain] Error 2 > > make[1]: Leaving directory > '/autofs/medium/home/liu/Documents/software/sage-7.1/build/make' > > > real 2m46.770s > > user 1m15.084s > > sys 0m10.528s > > *************************************************************** > > Error building Sage. > > > The following package(s) may have failed to build (not necessarily > > during this run of 'make all'): > > > * package: mpir-2.7.2 > > log file: > /autofs/medium/home/liu/Documents/software/sage-7.1/logs/pkgs/mpir-2.7.2.log > > build directory: > /autofs/medium/home/liu/Documents/software/sage-7.1/local/var/tmp/sage/build/mpir-2.7.2 > > > 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:16: recipe for target 'all' failed > > make: *** [all] Error 1 > > > > Attached are log files of config and mpir. My system info is > > 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u1 (2019-09-20) x86_64 GNU/Linux > > > I will appreciate it very much if you can tell me how to solve this problem. > > Best regards, > Zelong > > -- > 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/73639130-2b91-47f7-a3e2-3481a3e697d2%40googlegroups.com. -- 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/CAAWYfq3yz6Xk1Rjy1oKJYUrygm0uS_49%2Bi0RPqJ2JnMCii-mJA%40mail.gmail.com.