Error building sage-10.7 on macOS Tahoe 26.0

146 views
Skip to first unread message

Sette Diop

unread,
Sep 23, 2025, 6:08:14 PM9/23/25
to sage-...@googlegroups.com

Hi:

I am building sage-10.7 on macOS Tahoe 26.0 and run through this error:


Error building Sage.

The following package(s) may have failed to build (not necessarily during this run of 'make all-start'):

* package:         python3-3.12.5

  last build time: Sep 24 00:03

  log file:        /Applications/sage/logs/pkgs/python3-3.12.5.log


The log file

python3-3.12.5.log

is attached.


Any help is welcome!

Thanks,

Diop

python3-3.12.5.log

Dima Pasechnik

unread,
Sep 23, 2025, 8:27:52 PM9/23/25
to sage-...@googlegroups.com, sett...@gmail.com
Hi,
As far as I know, as 26.0 is very new, our 10.7 was not tested on it. It's quite likely that Python 3.12.5 isn't tested on 26.0, too.

The best is to use a fresh python from python.org, or from Homebrew.
There is no need to build Python spkg, and hopefully the option of building it will be gone soon.

(still, there is no guarantee that 26.0 will work with 10.7, or even with the current beta)

HTH
Dima

Sette Diop

unread,
Sep 27, 2025, 1:07:14 PM9/27/25
to sage-...@googlegroups.com
Attachments available until Oct 27, 2025
sage-10.7 build completed on my Intel MacBook Pro running macOS Tahoe 26 with the configuration option

./configure --with-system-python3=python3.13

But I cannot make sure every package was successfully built: log files install.log and test.log are attached to this message in case someone can have a look.

Best regards,

Diop
Click to Download
install.log
29 MB
Click to Download
test.log
781 KB

Dima Pasechnik

unread,
Sep 28, 2025, 9:51:19 AM9/28/25
to sage-...@googlegroups.com
On Sat, Sep 27, 2025 at 12:07 PM Sette Diop <sett...@gmail.com> wrote:
>
> Attachments available until Oct 27, 2025
> sage-10.7 build completed on my Intel MacBook Pro running macOS Tahoe 26 with the configuration option
>
> ./configure --with-system-python3=python3.13
>
> But I cannot make sure every package was successfully built: log files install.log and test.log are attached to this message in case someone can have a look.

Looks good, these 2 test errors you got are known, I think

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/227789B1-89D2-486A-A666-665C8B3B4C47%40gmail.com.

Sette Diop

unread,
Feb 15, 2026, 4:17:04 PM (6 days ago) Feb 15
to sage-...@googlegroups.com
Hi:

I am building sage-10.8 on macOS Tahoe 26.3 and Xcode 26.2 and run through this error:

Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all-start'):

* package: fflas_ffpack-2.5.0+sage-2024-05-18b
last build time: Feb 15 21:13
log file: /Applications/sage/logs/pkgs/fflas_ffpack-2.5.0+sage-2024-05-18b.log


The log file

fflas_ffpack-2.5.0+sage-2024-05-18b.log
fflas_ffpack-2.5.0+sage-2024-05-18b.log

Dima Pasechnik

unread,
Feb 16, 2026, 2:39:48 PM (6 days ago) Feb 16
to sage-...@googlegroups.com
This comes from OpenMP installed on your computer (probably as
Homebrew package libomp)
Apple doesn't care about supporting OpenMP (nor anything that doesn't
add to its pile of cash it seems :-))
so the correct compiler flags to use are `-Xpreprocessor -fopenmp`
and not `-fopenmp`.

There are many ways forward, none of it painless, while
https://github.com/sagemath/sage/issues/40898 is still not fixed.

One option - (temporarily) uninstall, or otherwise break, your OpenMP install.

Or you can try using https://github.com/sagemath/sage/pull/40397
> --
> 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/AAF3F34B-473E-489C-95F7-C8D5A0469630%40gmail.com.

Sette Diop

unread,
Feb 16, 2026, 5:58:48 PM (5 days ago) Feb 16
to sage-...@googlegroups.com
Thanks so much Dima!

It seems to me this is the first time in many years of sage build that this Apple openMP issue pops up on my way and I have no idea why. 

The temporary disabling of openMP option is appealing but how to do that, and are there oddities with it?

Dima Pasechnik

unread,
Feb 17, 2026, 12:36:23 AM (5 days ago) Feb 17
to sage-...@googlegroups.com
On Mon, Feb 16, 2026 at 4:58 PM Sette Diop <sett...@gmail.com> wrote:

> It seems to me this is the first time in many years of sage build that this Apple openMP issue pops up on my way and I have no idea why.
>
> The temporary disabling of openMP option is appealing but how to do that, and are there oddities with it?

By looking at your log a bit more, it seems there could be an easy fix.

You have OpenBLAS from Homebrew, which is linked against libomp -
good. At least I hope so: On my machine
% otool -L /usr/local/Cellar/openblas/0.3.31_1/lib/libopenblas.dylib
/usr/local/Cellar/openblas/0.3.31_1/lib/libopenblas.dylib:
/usr/local/opt/openblas/lib/libopenblas.0.dylib (compatibility
version 0.0.0, current version 0.0.0)
/usr/local/opt/gcc/lib/gcc/current/libgfortran.5.dylib
(compatibility version 6.0.0, current version 6.0.0)
/usr/local/opt/libomp/lib/libomp.dylib (compatibility version
5.0.0, current version 5.0.0)
/usr/local/opt/gcc/lib/gcc/current/libquadmath.0.dylib
(compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1345.120.2)
/usr/local/opt/gcc/lib/gcc/current/libgcc_s.1.1.dylib
(compatibility version 1.0.0, current version 1.1.0)

(some versions before, they linked an incompatible libgomp (a GNU
version of OpenMP)).
libomp is installed in /usr/local/opt/libomp/, which does not look
like it's coming from Homebrew.
However, it appears to be a copy of /usr/local/Cellar/libomp/21.1.8/lib.

The error comes from an incorrect linking flag, which is probably fixed by

https://github.com/sagemath/sage/commit/0f9bd237c175323327e7f22d4d6f532b384efaed.patch
(which fixes an issue in an external autoconf macro we're using)

Can you try applying it, and then re-run ./bootstrap and ./configure
(and make, or course - probably make alone will do the trick,
invoking the 1st two, but you never know)

HTH
Dima

>
>
> On Feb 16, 2026, at 8:23 PM, Dima Pasechnik <dim...@gmail.com> wrote:
>
> This comes from OpenMP installed on your computer (probably as
> Homebrew package libomp)
> Apple doesn't care about supporting OpenMP (nor anything that doesn't
> add to its pile of cash it seems :-))
> so the correct compiler flags to use are `-Xpreprocessor -fopenmp`
> and not `-fopenmp`.
>
> There are many ways forward, none of it painless, while
> https://github.com/sagemath/sage/issues/40898 is still not fixed.
>
> One option - (temporarily) uninstall, or otherwise break, your OpenMP install.
>
> Or you can try using https://github.com/sagemath/sage/pull/40397
>
>
> --
> 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/42293F78-4DB6-4C4F-A49E-A6087C2984AA%40gmail.com.

Sette Diop

unread,
Feb 17, 2026, 6:02:58 PM (4 days ago) Feb 17
to sage-...@googlegroups.com
Attachment available until Mar 20, 2026
Thanks so much again Dima!

I was not able to run the fix you indicated, too steep for me! But you reminded me to run bootstrap before configure, I am not sure, but that seems to be what solved my sage-10.8 build, the build which finally completed successfully. I attach the install.log in case you want to double-check what happened.

Best regards.

Click to Download
install.log
26.6 MB
Reply all
Reply to author
Forward
0 new messages