sage-10.2.rc4 does not build on opensuse tumbleweed

137 views
Skip to first unread message

Christian Bär

unread,
Nov 19, 2023, 11:03:07 AM11/19/23
to sage-...@googlegroups.com, Bär, Christian

Dear all,

sage-10.2.rc4 does not compile on opensuse tumbleweed (20231117). The package arb does not build.  The package arb-devel is not installed on the system because it is no longer available for tumbleweed. Sage compilation stops with the error message:

/bin/sh: symbol lookup error: /bin/sh: undefined symbol: rl_trim_arg_from_keyseq, version READLINE_8.2
make[8]: *** [../Makefile.subdirs:60: ../build/fmpz_extras/lshift_mpn.lo] Error 127
make[8]: *** [../Makefile.subdirs:60: ../build/fmpz_extras/sub_small_large.lo] Error 127
make[7]: *** [Makefile:128: libarb.so.2.14.0] Error 2
make[6]: *** [Makefile:148: library] Error 2
make[5]: *** [Makefile:95: verbose] Error 2
********************************************************************************
Error building arb-2.23.0
********************************************************************************

The log files are attached. The system has an AMD Ryzen 5950 CPU.

As a matter of fact, the same problem arises when I try to compile sage-10.1 (with arb-2.22.1). When sage-10.1 came out, it did work though. After some tumbleweed update 1 or 2 months ago, sage stopped working and compilation was no longer possible.

Best,
Christian

arb-2.23.0.log
config.log

Matthias Koeppe

unread,
Nov 19, 2023, 11:21:47 AM11/19/23
to sage-devel
We also see this failure on opensuse-tumbleweed in our CI in the "minimal" system package configuration https://github.com/sagemath/sage/actions/runs/6909825582/job/18801882455#step:11:2323

However, the "standard" system package configuration builds and tests fine: https://github.com/sagemath/sage/actions/runs/6909825582/job/18806775962

So likely this can be fixed on your system by installing more system packages.

What's surprising in your config.log is that it is giving recommendations for using "apt-get" (excerpt below). Not sure where apt-get would be coming from, but if you move it away, then you'll receive system package recommendations for OpenSuSE (using zypper), as seen here: https://github.com/sagemath/sage/actions/runs/6909825582/job/18801882455#step:11:1722

===== config.log
    notice: the following SPKGs did not find equivalent system packages:

        appdirs arb cachetools chardet colorama cypari distlib ecl eclib fflas_ffpack filelock flint fpylll freetype gengetopt giac givaro lcalc libgd linbox lrcalc mathjax matplotlib maxima meson nauty ncurses palp pari pari_galdata pari_seadata_small patchelf pillow pplpy primecount primecountpy primesieve python3 qhull readline rw singular sympow tox virtualenv   4ti2 _develop _recommended cbc coxeter3 gp2c igraph libgraphviz libnauty libxml2 lrslib pandoc pari_elldata pari_galpol pari_nftables pari_seadata pdf2svg perl_cpan_polymake_prereq perl_mongodb polymake
       
configure:154937: checking for the package system in use
configure:154940: result: debian
configure:154951:

    hint: installing the following system packages, if not
    already present, is recommended and may avoid having to
    build them (though some may have to be built anyway):

      $ sudo apt-get update
      $ sudo apt-get install  libflint-arb-dev ecl libec-dev eclib-tools fflas-ffpack libflint-dev libfreetype-dev gengetopt libgiac-dev xcas libgivaro-dev lcalc liblfunction-dev libgd-dev liblinbox-dev liblrcalc-dev maxima-sage maxima meson nauty libncurses5-dev palp pari-gp2c libpari-dev pari-doc pari-elldata pari-galdata pari-galpol pari-seadata patchelf libprimesieve-dev python3 libpython3-dev python3-distutils python3-venv libqhull-dev libreadline-dev librw-dev singular singular-doc libsingular4-dev sympow tox
=====

Matthias Koeppe

unread,
Nov 19, 2023, 11:32:26 AM11/19/23
to sage-devel
For reference, this is https://github.com/sagemath/sage/issues/27750#issuecomment-1432504494 (the easy fix somehow never made it into Sage)

It will go away in our upgrade to FLINT 3, https://github.com/sagemath/sage/pull/35848, which does not have these problematic LD_LIBRARY_PATH manipulations in its build system.

Christian Bär

unread,
Nov 20, 2023, 5:39:54 PM11/20/23
to sage-devel
How recent is the tumbleweed install you are testing against? As mentioned, sage-10.1 initially did compile until some tumbleweed update broke it, leading to the error message described above. This is why I am skeptical that installing more system packages will resolve the problem. 

Matthias Koeppe

unread,
Nov 20, 2023, 5:46:15 PM11/20/23
to sage-devel
Our CI tests with the official opensuse/tumbleweed Docker image, see https://github.com/sagemath/sage/blob/develop/tox.ini#L381
I think it's updated daily.

Christian Bär

unread,
Nov 22, 2023, 3:18:11 AM11/22/23
to sage-devel
Installation of the system package readline-devel solved the problem. Now sage-10.1 and sage-10.2.rc4 compile and run on my tumbleweed without problems. Maybe, this package is contained in the "standard" tumbleweed configuration but not in the "minimal" one. It is strange though that it used to work without this package.
Reply all
Reply to author
Forward
0 new messages