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.