On Wednesday, January 17, 2024 at 4:36:20 PM UTC Aurore Guillevic wrote:
Yes, my problem is solved. Indeed, it was caused by an old manual installation of gmp, still present in /usr/local. I ran make with --with-system-gmp=no to be sure that sage would re-build its own gmp. Finally it worked. I uninstalled the old gmp in /usr/local too. A more lightweight approach is to use gmp from your OS. On most Linux systems supported by Sage the OS-provided gmp version is good enough. (you'd do "sudo apt install libgmp-dev" to install it) Once you don't use gmp from OS, you cannot use any OS-provided package which depends on gmp, and make building Sage much slower. Thanks for your help! Aurore. Le mardi 16 janvier 2024 à 20:59:07 UTC+1, Matthias Koeppe a écrit : >From config.log: configure:13475: will use system package and not install SPKG gmp configure:13511: checking absolute name of <gmp.h> configure:13517: checking for gmp.h configure:13517: result: yes configure:13538: result: ///usr/local/include/gmp.h Try removing the installation in /usr/local On Monday, January 15, 2024 at 1:59:28 PM UTC-8 Aurore Guillevic wrote: Dear Sagemath developers,, I am trying to install sagemath from git. I am following the instructions at https://doc.sagemath.org/html/en/installation/source.html First I did a tentative without anything special when configuring, but there were errors building singular and eclib. Then I tried to force sagemath to use the packages of the system (ubuntu) instead of installing them again so I tried: git clean -x -f -d # clean the previous tentative of installation export MAKE="make -j4" # exploit the 4 processors make configure ./configure --help ./configure --with-system-singular=yes --with-system-eclib=yes --config-cache --enable-ccache First there is this repeated warning: [flint-3.0.1] ./src/ulong_extras.h:92:36: warning: implicit declaration of function 'mpn_gcd_11'; did you mean 'mpn_gcd_1'? [-Wimplicit-function-declaration] [flint-3.0.1] 92 | res = (x != 1 && y != 1) ? mpn_gcd_11(x, y) : 1; Then [singular-4.3.2p8] Error installing package singular-4.3.2p8 The two log files are attached to this email. I suspect the problem is some incompatibility of versions of packages? (very common with a ubuntu LTS). Here are the installed packages: apt list **eclib** **singular** En train de lister... Fait eclib-tools/jammy,now 20210625-1build1 amd64 [installé] libsingular4-dev-common/jammy,jammy,now 1:4.2.1-p3+ds-1 all [installé, automatique] libsingular4-dev/jammy,now 1:4.2.1-p3+ds-1 amd64 [installé] libsingular4m2n1/jammy,now 1:4.2.1-p3+ds-1 amd64 [installé, automatique] singular-data/jammy,jammy,now 1:4.2.1-p3+ds-1 all [installé, automatique] singular-doc/jammy,jammy,now 1:4.2.1-p3+ds-1 all [installé] singular-modules/jammy,now 1:4.2.1-p3+ds-1 amd64 [installé, automatique] singular-ui/jammy,now 1:4.2.1-p3+ds-1 amd64 [installé, automatique] singular/jammy,now 1:4.2.1-p3+ds-1 amd64 [installé] Many thanks for your help, Aurore. -- 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/814e7a90-874f-471c-8769-421ef9bab400n%40googlegroups.com.