Sagemath build failing

70 views
Skip to first unread message

Aatman Supkar

unread,
Nov 27, 2025, 6:01:03 PM (5 days ago) Nov 27
to sage-devel
I am on a MacOS 15.4 with an M2 chip, and I've been trying to build Sage for the first time, in an attempt to contribute. So I tried to set up the developers' branch. I use Homebrew as my package manager. I'm doing it on an external SSD due to space issues. However, the build failed, with the following error that I found in the log files:

...
[spkg-install]
[spkg-install] ../meson.build:65:10: ERROR: C shared or static library 'pari' not found
[spkg-install]
[spkg-install] A full log can be found at /Volumes/amazon/maths/sagemath-dev/sage/local/var/lib/sage/venv-python3.12.5/var/tmp/sage/build/cypari-2.2.4/src/.mesonpy-j4lsdd3u/meson-logs/meson-log.txt
[spkg-install]
[spkg-install] ERROR Backend subprocess exited when trying to invoke build_wheel
...

I'm not sure what I am doing wrong. Please let me know what further information I should provide for diagnosis. I don't think the SSD disconnected at any point, because right after the failure I tried running 'ls' and it worked smoothly.

Dima Pasechnik

unread,
Nov 27, 2025, 11:30:46 PM (5 days ago) Nov 27
to sage-...@googlegroups.com
Please post your config.log


Aatman Supkar

unread,
Nov 28, 2025, 10:37:32 AM (5 days ago) Nov 28
to sage-devel
config.log

Aatman Supkar

unread,
Nov 28, 2025, 10:37:45 AM (5 days ago) Nov 28
to sage-...@googlegroups.com
Please let me know if this is the file you're looking for.

--
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/6EEC789A-D0A1-4083-A927-CDFD1C7FFF83%40gmail.com.
config.log

Dima Pasechnik

unread,
Nov 28, 2025, 1:16:50 PM (5 days ago) Nov 28
to sage-...@googlegroups.com
Thanks. It appears that while you have pari installed, gp, i.e. pari's
CLI, is not in your PATH.

## Checking whether SageMath should install SPKG pari... ##
## ----------------------------------------------------- ##
real_configure:25214: checking whether any of gmp readline is
installed as or will be installed as SPKG
real_configure:25224: result: no
real_configure:25229: checking for gp
real_configure:25268: result: no
real_configure:25273: gp is not found
real_configure:25725: no suitable system package found for SPKG pari



Somehow the configure script still decided that you have a functioning
pari install, but it's actually not.

There also appears a stale bit of pari installation in the directory
you're building:

## Checking whether SageMath should install SPKG gp2c... ##
## ----------------------------------------------------- ##
real_configure:30871: checking whether any of pari is installed as or
will be installed as SPKG
real_configure:30876: result: yes; install gp2c as well
real_configure:31145: pari.cfg is $SAGE_LOCAL/lib/pari/pari.cfg


The easiest would be to wipe out $SAGE_LOCAL,
(make distclean)
reinstall pari
(and don't forget to install pari-galdata, and the other pari-* - formulae)
and make sure that you can invoke gp in the terminal session.


And repeat the run of

./configure
make
> To view this discussion visit https://groups.google.com/d/msgid/sage-devel/CAJD2D6s7EEsLrhv%3D5YkmcGpG7g%3De9Z6X3neGYf%2B%3DLxGVBxX_dQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages