Error about m4ri in build sage-10.6 on macOS 15.6 Sequoia, m2

40 views
Skip to first unread message

Dong YUAN

unread,
Aug 21, 2025, 1:11:23 AMAug 21
to sage-support
Hello all. 
I am trying to install sage from source code on my Macbook Air M2. Now I met a error. 
I used the release sage-10.6.tar.gz.
Error building Sage.

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

* package:         m4ri-20200125
  last build time: Aug 21 11:19
  log file:        /Users/imwy/sage/sage-10.6/logs/pkgs/m4ri-20200125.log
  build directory: /Users/imwy/sage/sage-10.6/local/var/tmp/sage/build/m4ri-20200125

Here is more information:
1. As the title says, my system is macOS 15.6 Sequoia. 
2. I got xcode-select version 2410. 
Actually, I met another error in my last try on lcalc(using same resources). 

* package: lcalc-2.0.5 last build time: Aug 20 19:45 log file: /Users/imwy/sage/sage-10.6/logs/pkgs/lcalc-2.0.5.log build directory: /Users/imwy/sage/sage-10.6/local/var/tmp/sage/build/lcalc-2.0.5

I tried the method in unable to build, which is 

git pull origin pull/39915/head
git pull origin pull/39936/head

to change the version of lcalc and givaro, then do make disclean and make again. 
Then I met the error at the begining. 

Please tell me what can I do!

The log for the error on m4ri is attached.
m4ri-20200125.log
config.log

John H Palmieri

unread,
Aug 21, 2025, 5:06:32 PMAug 21
to sage-support
Some options:

- try Sage 10.7 instead of 10.6
- do you have any homebrew packages installed? Try installing libpng, since that seems to be what's causing your error.
- alternatively, for Sage to build libpng with `make distclean && ./configure --with-system-libpng=no && make`

Dima Pasechnik

unread,
Aug 21, 2025, 5:46:11 PMAug 21
to sage-s...@googlegroups.com
On Thu, Aug 21, 2025 at 4:06 PM John H Palmieri <jhpalm...@gmail.com> wrote:
>
> Some options:
>
> - try Sage 10.7 instead of 10.6

definitely - m4ri(e) probably won't work with latest Apple clangs, so
really try 10.7
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/sage-support/385f76cd-2d9a-49c6-9ea2-1c8b2243b6adn%40googlegroups.com.

Dong YUAN

unread,
Aug 22, 2025, 1:27:42 AMAug 22
to sage-support
Thanks a lot! I tried Sage 10.7, and it successed.
Reply all
Reply to author
Forward
0 new messages