Error building sage-10.8 on macOS Tahoe on a MacMini M2 pro

15 views
Skip to first unread message

Andreas Könen

unread,
11:59 AM (4 hours ago) 11:59 AM
to sage-devel
Hello, good morning and a Happy New Year 2026!

Yesterday a got the following error during make for sage 10.8 based on the standard tar:

...

[primecountpy-0.1.1] [spkg-install] g++ -std=gnu++11 -g -O2 -I/private/var/folders/g8/42n7xvhd1kl7zkmr3l7_8b_w0000gn/T/build-env-h9xdfx5q/lib/python3.14/site-packages/cysignals -I/private/var/folders/g8/42n7xvhd1kl7zkmr3l7_8b_w0000gn/T/build-env-h9xdfx5q/include -I/opt/homebrew/opt/pyt...@3.14/Frameworks/Python.framework/Versions/3.14/include/python3.14 -c primecountpy/primecount.cpp -o build/temp.macosx-26.0-arm64-cpython-314/primecountpy/primecount.o

[primecountpy-0.1.1] [spkg-install] primecountpy/primecount.cpp:3265:81: error: no matching function for call to 'pi'

[primecountpy-0.1.1] [spkg-install]  3265 |   __pyx_t_2 = __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(primecount::pi(__pyx_v_s)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 68, __pyx_L1_error)

[primecountpy-0.1.1] [spkg-install]       |                                                                                 ^~~~~~~~~~~~~~

[primecountpy-0.1.1] [spkg-install] /opt/homebrew/include/primecount.hpp:57:9: note: candidate function not viable: no known conversion from 'std::string' (aka 'basic_string<char>') to 'int64_t' (aka 'long long') for 1st argument

[primecountpy-0.1.1] [spkg-install]    57 | int64_t pi(int64_t x);

[primecountpy-0.1.1] [spkg-install]       |         ^  ~~~~~~~~~

[primecountpy-0.1.1] [spkg-install] /opt/homebrew/include/primecount.hpp:74:13: note: candidate function not viable: no known conversion from 'std::string' (aka 'basic_string<char>') to 'pc_int128_t' for 1st argument

[primecountpy-0.1.1] [spkg-install]    74 | pc_int128_t pi(pc_int128_t x);

[primecountpy-0.1.1] [spkg-install]       |             ^  ~~~~~~~~~~~~~

[primecountpy-0.1.1] [spkg-install] 1 error generated.

[primecountpy-0.1.1] [spkg-install] error: command '/usr/bin/g++' failed with exit code 1

...

Attached you find the corresponding log files.

Any help is appreciated.

Best wishes

Andreas


primecountpy-0.1.1.log
config.log

Dima Pasechnik

unread,
4:19 PM (4 minutes ago) 4:19 PM
to sage-...@googlegroups.com
You need the update
from <https://github.com/sagemath/sage/pull/41341>

either do a git clone of the repo, and then,
once on the 10.8 branch, do

git pull origin pull/41341/head

or manually copy changed files from the PR into the build/ subdirectory.

(primecount 8.0 is already in Homebrew, so it should not even be necessary to build it)

After that, run
./bootstrap
./configure
make

Reply all
Reply to author
Forward
0 new messages