This ended up not quite working for me anymore. The "build" didn't produce an error, but sage crashes upon startup because:
...
File "sage/algebras/quatalg/quaternion_algebra_cython.pyx", line 1, in init sage.algebras.quatalg.quaternion_algebra_cython
# distutils: language = c++
ImportError: libflint.so.19: cannot open shared object file: No such file or directory
I think something might have gone wrong in the configuration:
$ sage --python
Python 3.13.5 (main, Jun 12 2025, 00:00:00) [GCC 15.1.1 20250521 (Red Hat 15.1.1-2)] on linux
Would that be a source of trouble?
This file /usr/lib64/libflint.so.19 does exist. On the other hand:
$ ldd
quaternion_algebra_cython.cpython-313-x86_64-linux-gnu.so linux-vdso.so.1 (0x00007f61ea097000)
libgmp.so.10 => /lib64/libgmp.so.10 (0x00007f61e9fb2000)
libntl.so.44 => /lib64/libntl.so.44 (0x00007f61e9c00000)
libflint.so.20 => /lib64/libflint.so.20 (0x00007f61e9000000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f61e8c00000)
libm.so.6 => /lib64/libm.so.6 (0x00007f61e9ec4000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f61e9bd4000)
libc.so.6 => /lib64/libc.so.6 (0x00007f61e8a0e000)
libgf2x.so.3 => /lib64/libgf2x.so.3 (0x00007f61e9eb1000)
libflexiblas.so.3 => /lib64/libflexiblas.so.3 (0x00007f61e8600000)
libmpfr.so.6 => /lib64/libmpfr.so.6 (0x00007f61e8f44000)
/lib64/ld-linux-x86-64.so.2 (0x00007f61ea099000)
libgfortran.so.5 => /lib64/libgfortran.so.5 (0x00007f61e8200000)
libquadmath.so.0 => /lib64/libquadmath.so.0 (0x00007f61e9b8d000)
so it seems that while compiling, another libflint was picked up. That one indeed exists as well.
I did bootstrap and configure. Should I "make distclean" as well?