Error building sage on ubuntu 22.04.3 from git, develop branch, package singular-4.3.2p8, eclib

164 views
Skip to first unread message

Aurore Guillevic

unread,
Jan 15, 2024, 4:59:28 PM1/15/24
to sage-devel
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.
singular-4.3.2p8.log
config.log

John Cremona

unread,
Jan 16, 2024, 5:28:16 AM1/16/24
to sage-...@googlegroups.com
Try not using the system's eclib.  I don't think that any Linux distribution has an up to date eclib (but I don't keep track of this).  Sage does now have a very up to date eclib, and building it will not take long.

John Cremona

--
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/940b1bab-04ec-44ff-bc38-e4b073baf5ban%40googlegroups.com.

Matthias Koeppe

unread,
Jan 16, 2024, 2:59:07 PM1/16/24
to sage-devel
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

Aurore Guillevic

unread,
Jan 17, 2024, 11:36:20 AM1/17/24
to sage-devel
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.

Thanks for your help!

Aurore.

Dima Pasechnik

unread,
Jan 18, 2024, 12:08:51 PM1/18/24
to sage-devel
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.
Reply all
Reply to author
Forward
0 new messages