Error building sage-10.7 on Fedora 43

164 views
Skip to first unread message

Domingo Gómez

unread,
Dec 2, 2025, 9:43:12 AMDec 2
to sage-devel
Dear all,

First of all, thank you to the community for providing Sage and its kernel.

I am having trouble building SageMath 10.7 from source. My system is Fedora 43, fully updated  and I am trying to build Sage in a virtual environment with python3.11.

I installed gcc-12 with Homebrew and installed several libraries on my system. I am attaching my config.log and ppl-1.2.p1.log. The ppl library was installed through Homebrew.

Any help or suggestions would be greatly appreciated.
config.log
ppl-1.2.p1.log

Dima Pasechnik

unread,
Dec 2, 2025, 11:12:56 AMDec 2
to sage-...@googlegroups.com, domingo.do...@gmail.com
On Tue, Dec 2, 2025 at 8:43 AM Domingo Gómez
<domingo.do...@gmail.com> wrote:

> I am having trouble building SageMath 10.7 from source. My system is Fedora 43, fully updated and I am trying to build Sage in a virtual environment with python3.11.
>
> I installed gcc-12 with Homebrew and installed several libraries on my system. I am attaching my config.log and ppl-1.2.p1.log. The ppl library was installed through Homebrew.

We don't support Linuxbrew, so you are on your own here.
Fedora 43 does have up to date ppl-devel package, so it might be easier to use.
Our latest betas support gcc 15, and the easiest way to build Sage on Fedora 43
would be to go with
https://github.com/sagemath/sage/archive/refs/tags/10.8.beta9.tar.gz

HTH
Dima

>
> Any help or suggestions would be greatly appreciated.
>
> --
> 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 visit https://groups.google.com/d/msgid/sage-devel/5d87dcf6-634d-49b4-99de-a9a5fc0ef0f5n%40googlegroups.com.

Domingo Gómez

unread,
Dec 3, 2025, 12:22:36 PMDec 3
to sage-devel
Thank you for your response.
If Linuxbrew is not supported, then I will build it with the packages from Fedora.
I trying the same, but not the error is different.

make[2]: se entra en el directorio '/home/gomezd/Git_Repositories/sage-10.8.beta9/build/make'
make --no-print-directory /home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/installed/.dummy
make[3]: '/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/installed/.dummy' está actualizado.
make --no-print-directory /home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/installed/.dummy
make[3]: '/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/installed/.dummy' está actualizado.
make --no-print-directory /home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/installed/.dummy
make[3]: '/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/installed/.dummy' está actualizado.
make --no-print-directory all-sage-docs all-sage
make --no-print-directory pip-SAGE_VENV-no-deps
[pip-24.2] ERROR [hashlib|<module>:248]: code for hash md5 was not found.
[pip-24.2] Traceback (most recent call last):
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 245, in <module>
[pip-24.2]     globals()[__func_name] = __get_hash(__func_name)
[pip-24.2]                              ^^^^^^^^^^^^^^^^^^^^^^^
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
[pip-24.2]     raise ValueError('unsupported hash type ' + name)
[pip-24.2] ValueError: unsupported hash type md5
[pip-24.2] ERROR [hashlib|<module>:248]: code for hash sha1 was not found.
[pip-24.2] Traceback (most recent call last):
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 245, in <module>
[pip-24.2]     globals()[__func_name] = __get_hash(__func_name)
[pip-24.2]                              ^^^^^^^^^^^^^^^^^^^^^^^
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
[pip-24.2]     raise ValueError('unsupported hash type ' + name)
[pip-24.2] ValueError: unsupported hash type sha1
[pip-24.2] ERROR [hashlib|<module>:248]: code for hash sha224 was not found.
[pip-24.2] Traceback (most recent call last):
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 245, in <module>
[pip-24.2]     globals()[__func_name] = __get_hash(__func_name)
[pip-24.2]                              ^^^^^^^^^^^^^^^^^^^^^^^
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
[pip-24.2]     raise ValueError('unsupported hash type ' + name)
[pip-24.2] ValueError: unsupported hash type sha224
[pip-24.2] ERROR [hashlib|<module>:248]: code for hash sha256 was not found.
[pip-24.2] Traceback (most recent call last):
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 245, in <module>
[pip-24.2]     globals()[__func_name] = __get_hash(__func_name)
[pip-24.2]                              ^^^^^^^^^^^^^^^^^^^^^^^
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
[pip-24.2]     raise ValueError('unsupported hash type ' + name)
[pip-24.2] ValueError: unsupported hash type sha256
[pip-24.2] ERROR [hashlib|<module>:248]: code for hash sha384 was not found.
[pip-24.2] Traceback (most recent call last):
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 245, in <module>
[pip-24.2]     globals()[__func_name] = __get_hash(__func_name)
[pip-24.2]                              ^^^^^^^^^^^^^^^^^^^^^^^
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
[pip-24.2]     raise ValueError('unsupported hash type ' + name)
[pip-24.2] ValueError: unsupported hash type sha384
[pip-24.2] ERROR [hashlib|<module>:248]: code for hash sha512 was not found.
[pip-24.2] Traceback (most recent call last):
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 245, in <module>
[pip-24.2]     globals()[__func_name] = __get_hash(__func_name)
[pip-24.2]                              ^^^^^^^^^^^^^^^^^^^^^^^
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
[pip-24.2]     raise ValueError('unsupported hash type ' + name)
[pip-24.2] ValueError: unsupported hash type sha512
[pip-24.2] ERROR [hashlib|<module>:248]: code for hash blake2b was not found.
[pip-24.2] Traceback (most recent call last):
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 245, in <module>
[pip-24.2]     globals()[__func_name] = __get_hash(__func_name)
[pip-24.2]                              ^^^^^^^^^^^^^^^^^^^^^^^
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
[pip-24.2]     raise ValueError('unsupported hash type ' + name)
[pip-24.2] ValueError: unsupported hash type blake2b
[pip-24.2] ERROR [hashlib|<module>:248]: code for hash blake2s was not found.
[pip-24.2] Traceback (most recent call last):
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 245, in <module>
[pip-24.2]     globals()[__func_name] = __get_hash(__func_name)
[pip-24.2]                              ^^^^^^^^^^^^^^^^^^^^^^^
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
[pip-24.2]     raise ValueError('unsupported hash type ' + name)
[pip-24.2] ValueError: unsupported hash type blake2s
[pip-24.2] ERROR [hashlib|<module>:248]: code for hash sha3_224 was not found.
[pip-24.2] Traceback (most recent call last):
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 245, in <module>
[pip-24.2]     globals()[__func_name] = __get_hash(__func_name)
[pip-24.2]                              ^^^^^^^^^^^^^^^^^^^^^^^
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
[pip-24.2]     raise ValueError('unsupported hash type ' + name)
[pip-24.2] ValueError: unsupported hash type sha3_224
[pip-24.2] ERROR [hashlib|<module>:248]: code for hash sha3_256 was not found.
[pip-24.2] Traceback (most recent call last):
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 245, in <module>
[pip-24.2]     globals()[__func_name] = __get_hash(__func_name)
[pip-24.2]                              ^^^^^^^^^^^^^^^^^^^^^^^
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
[pip-24.2]     raise ValueError('unsupported hash type ' + name)
[pip-24.2] ValueError: unsupported hash type sha3_256
[pip-24.2] ERROR [hashlib|<module>:248]: code for hash sha3_384 was not found.
[pip-24.2] Traceback (most recent call last):
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 245, in <module>
[pip-24.2]     globals()[__func_name] = __get_hash(__func_name)
[pip-24.2]                              ^^^^^^^^^^^^^^^^^^^^^^^
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
[pip-24.2]     raise ValueError('unsupported hash type ' + name)
[pip-24.2] ValueError: unsupported hash type sha3_384
[pip-24.2] ERROR [hashlib|<module>:248]: code for hash sha3_512 was not found.
[pip-24.2] Traceback (most recent call last):
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 245, in <module>
[pip-24.2]     globals()[__func_name] = __get_hash(__func_name)
[pip-24.2]                              ^^^^^^^^^^^^^^^^^^^^^^^
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
[pip-24.2]     raise ValueError('unsupported hash type ' + name)
[pip-24.2] ValueError: unsupported hash type sha3_512
[pip-24.2] ERROR [hashlib|<module>:248]: code for hash shake_128 was not found.
[pip-24.2] Traceback (most recent call last):
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 245, in <module>
[pip-24.2]     globals()[__func_name] = __get_hash(__func_name)
[pip-24.2]                              ^^^^^^^^^^^^^^^^^^^^^^^
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
[pip-24.2]     raise ValueError('unsupported hash type ' + name)
[pip-24.2] ValueError: unsupported hash type shake_128
[pip-24.2] ERROR [hashlib|<module>:248]: code for hash shake_256 was not found.
[pip-24.2] Traceback (most recent call last):
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 245, in <module>
[pip-24.2]     globals()[__func_name] = __get_hash(__func_name)
[pip-24.2]                              ^^^^^^^^^^^^^^^^^^^^^^^
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py", line 123, in __get_builtin_constructor
[pip-24.2]     raise ValueError('unsupported hash type ' + name)
[pip-24.2] ValueError: unsupported hash type shake_256
[pip-24.2] Traceback (most recent call last):
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/random.py", line 68, in <module>
[pip-24.2]     from _sha2 import sha512 as _sha512
[pip-24.2] ModuleNotFoundError: No module named '_sha2'
[pip-24.2]
[pip-24.2] During handling of the above exception, another exception occurred:
[pip-24.2]
[pip-24.2] Traceback (most recent call last):
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/build/bin/sage-package", line 38, in <module>
[pip-24.2]     from sage_bootstrap.cmdline import run
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/build/bin/../sage_bootstrap/cmdline.py", line 33, in <module>
[pip-24.2]     from sage_bootstrap.app import Application
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/build/bin/../sage_bootstrap/app.py", line 34, in <module>
[pip-24.2]     from sage_bootstrap.tarball import Tarball, FileNotMirroredError
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/build/bin/../sage_bootstrap/tarball.py", line 23, in <module>
[pip-24.2]     from sage_bootstrap.download import Download, MirrorList
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/build/bin/../sage_bootstrap/download/__init__.py", line 7, in <module>
[pip-24.2]     from sage_bootstrap.download.transfer import Download
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/build/bin/../sage_bootstrap/download/transfer.py", line 24, in <module>
[pip-24.2]     from urllib.request import build_opener, install_opener, urlretrieve
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/urllib/request.py", line 88, in <module>
[pip-24.2]     import http.client
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/http/client.py", line 71, in <module>
[pip-24.2]     import email.parser
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/email/parser.py", line 12, in <module>
[pip-24.2]     from email.feedparser import FeedParser, BytesFeedParser
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/email/feedparser.py", line 27, in <module>
[pip-24.2]     from email._policybase import compat32
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/email/_policybase.py", line 9, in <module>
[pip-24.2]     from email.utils import _has_surrogates
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/email/utils.py", line 28, in <module>
[pip-24.2]     import random
[pip-24.2]   File "/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/random.py", line 71, in <module>
[pip-24.2]     from hashlib import sha512 as _sha512
[pip-24.2] ImportError: cannot import name 'sha512' from 'hashlib' (/home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/lib/python3.12/hashlib.py)
[pip-24.2] Error: Selecting a different version of a package is no longer supported
make[4]: *** [Makefile:3335: pip-SAGE_VENV-no-deps] Error 1
make[3]: *** [Makefile:3335: /home/gomezd/Git_Repositories/sage-10.8.beta9/local/var/lib/sage/venv-python3.12.5/var/lib/sage/installed/pip-24.2] Error 2
make[2]: *** [Makefile:2967: all-start] Error 2
make[2]: se sale del directorio '/home/gomezd/Git_Repositories/sage-10.8.beta9/build/make'
config.log

Dima Pasechnik

unread,
Dec 3, 2025, 1:33:23 PMDec 3
to sage-...@googlegroups.com
The easiest fix for this would be

sudo dnf install python3.13-devel python3.13

and then, after removing

/home/gomezd/Git_Repositories/sage-10.8.beta9/sagealpha/bin/
/home/linuxbrew/.linuxbrew/bin/

from your PATH

run

./configure --with-python=python3.13 && make

HTH
Dima

On Wed, Dec 3, 2025 at 11:22 AM Domingo Gómez
> To view this discussion visit https://groups.google.com/d/msgid/sage-devel/aed1b714-2c36-4215-9f6a-e4502e9a89ccn%40googlegroups.com.

Volker Braun

unread,
Dec 3, 2025, 1:42:49 PMDec 3
to sage-devel
sage-10.8.beta9 builds on Fedora 43 for me, fwiw

enriqu...@gmail.com

unread,
Dec 5, 2025, 12:40:42 PMDec 5
to sage-devel
It builds for me also but all tests fail with lib problems. Building with python3.13 does not work since python3.13-setuptools is missing.

Domingo Gómez

unread,
Dec 5, 2025, 12:41:51 PMDec 5
to sage-devel
Dear all, 

I wanted to thank you all of you, sage is working. Thanks Dima and Volker for your help.

Dima Pasechnik

unread,
Dec 5, 2025, 1:29:06 PMDec 5
to sage-...@googlegroups.com, domingo.do...@gmail.com
Hi Domingo,
we wonder what exactly you did to install on Fedora 43 with Python
3.13. Cause we have problems.

On Fri, Dec 5, 2025 at 11:41 AM Domingo Gómez
> To view this discussion visit https://groups.google.com/d/msgid/sage-devel/657b2dbb-a526-4427-8430-66c7941c94a0n%40googlegroups.com.

Domingo Gómez

unread,
Dec 6, 2025, 10:56:27 AMDec 6
to sage-devel
I might had to use python3.13 -m pip install --upgrade pip setuptools 
I don't remember more than that.

Dima Pasechnik

unread,
Dec 7, 2025, 3:01:40 AMDec 7
to sage-...@googlegroups.com
On Sat, Dec 6, 2025 at 9:56 AM Domingo Gómez
<domingo.do...@gmail.com> wrote:
>
> I might had to use python3.13 -m pip install --upgrade pip setuptools
> I don't remember more than that.

right - and this is "safe", in the sense that python3.13 isn't the
"normal" system python (which is 3.14.0 in this case)

I suppose we should mention this in release notes.
> To view this discussion visit https://groups.google.com/d/msgid/sage-devel/c9bd3362-70c0-4b46-80f1-085caed2bbadn%40googlegroups.com.

enriqu...@gmail.com

unread,
Dec 9, 2025, 2:20:40 PMDec 9
to sage-devel
Thanks for the tip, but it is not enough to me. I get: /usr/bin/python3.13: No module named pip

enriqu...@gmail.com

unread,
Dec 9, 2025, 4:06:57 PMDec 9
to sage-devel
I downloaded get-pip.py and installed pip. It's building now. Thanks!
Reply all
Reply to author
Forward
0 new messages