Problems creating SageMath from sources

127 views
Skip to first unread message

OHappyDay

unread,
May 11, 2026, 9:38:02 AMMay 11
to sage-devel
Hi,

when I try to build SageMath from source tarball (https://github.com/sagemath/sage/releases/download/10.9/sage-10.9.tar.gz) I run into a problem.

It affects the build of wheel for rpy2_rinterface-3.6.6. (see attached log files).

My system:
Linux Ubuntu 24.04

Ideas what is wrong? I could build with 10.8 without problems.

Thanks
Klaus`


config.log
rpy2_rinterface-3.6.6.log

Dima Pasechnik

unread,
May 11, 2026, 12:23:32 PMMay 11
to sage-...@googlegroups.com
that's a missing dependency (an Ubuntu bug, arguably), fixable by
installing libtirpc-dev using apt-get

HTH
Dima
> --
> 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/a48c6c91-ebaf-4b77-8e0e-2d65da48d1fcn%40googlegroups.com.

OHappyDay

unread,
May 11, 2026, 12:23:49 PMMay 11
to sage-devel
In the meantime I found another thread with a similar problem. The solution was to disable R/py2 :

./configure --disable-r

Build is now working perfectly.

Klaus

OHappyDay

unread,
May 11, 2026, 2:10:31 PMMay 11
to sage-devel
Thanks, I will try that too.

OHappyDay

unread,
May 13, 2026, 11:59:53 AMMay 13
to sage-devel
Installing the missing dependency resolved the issue. 
Thanks again.

Anne Schilling

unread,
Jun 7, 2026, 12:00:08 PM (5 days ago) Jun 7
to sage-devel
Dear All,

I have a similar problem to the one mentioned in this thread. I got a problem with rpy2_rinterface-3.6.6. I tried a lot of different things suggested by AI, but none of them worked. Then I tried what was suggested in this thread on MacOS Sequoia 15.6.1:

make distclean
./configure --with-python=/opt/homebrew/bin/python3.12 --disable-r
make

and got the following error message:

...
[spkg-install] The Meson build system
[spkg-install] Version: 1.5.2
[spkg-install] Source dir: /Applications/sage/local/var/lib/sage/venv-python3.12/var/tmp/sage/build/cysignals-1.12.6/src
[spkg-install] Build dir: /Applications/sage/local/var/lib/sage/venv-python3.12/var/tmp/sage/build/cysignals-1.12.6/src/.mesonpy-rlwu0v1d
[spkg-install] Build type: native build
[spkg-install] Project name: cysignals
[spkg-install] Project version: undefined
[spkg-install] C compiler for the host machine: gcc -std=gnu23 (clang 17.0.0 "Apple clang version 17.0.0 (clang-1700.6.4.2)")
[spkg-install] C linker for the host machine: gcc -std=gnu23 ld64 1230.1
[spkg-install]
[spkg-install] ../meson.build:1:0: ERROR: Unable to get clang pre-processor defines:
[spkg-install] Compiler stdout:
[spkg-install]
[spkg-install] -----
[spkg-install] Compiler stderr:
[spkg-install] error: invalid argument '-std=gnu++11' not allowed with 'C'
[spkg-install]
[spkg-install] -----
[spkg-install]
[spkg-install]
[spkg-install] A full log can be found at /Applications/sage/local/var/lib/sage/venv-python3.12/var/tmp/sage/build/cysignals-1.12.6/src/.mesonpy-rlwu0v1d/meson-logs/meson-log.txt
[spkg-install]
[spkg-install] ERROR Backend subprocess exited when trying to invoke build_wheel
[spkg-install] ********************************************************************************
[spkg-install] Error building a wheel for cysignals-1.12.6
[spkg-install] ********************************************************************************
************************************************************************
Error installing package cysignals-1.12.6
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the log files
  /Applications/sage/logs/pkgs/cysignals-1.12.6.log
and
  /Applications/sage/config.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/Applications/sage/local/var/lib/sage/venv-python3.12/var/tmp/sage/build/cysignals-1.12.6 and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
  (cd '/Applications/sage/local/var/lib/sage/venv-python3.12/var/tmp/sage/build/cysignals-1.12.6' && '/Applications/sage/sage' --buildsh)
When you are done debugging, you can type "exit" to leave the subshell.

Any ideas what I can try next?

Anne
Reply all
Reply to author
Forward
0 new messages