source .homebrew-build-env
./configure --with-system-openblas
make succeeds.
And make ptestlong gives
----------------------------------------------------------------------
sage -t --long --warn-long 43.5 --random-seed=282039439595730943340432862729044408945 src/sage/rings/complex_arb.pyx # 2 doctests failed
sage -t --long --warn-long 43.5 --random-seed=282039439595730943340432862729044408945 src/sage/functions/error.py # 1 doctest failed
sage -t --long --warn-long 43.5 --random-seed=282039439595730943340432862729044408945 src/sage/matrix/matrix_gf2e_dense.pyx # 1 doctest failed
sage -t --long --warn-long 43.5 --random-seed=282039439595730943340432862729044408945 src/sage/rings/real_arb.pyx # 5 doctests failed
----------------------------------------------------------------------
Total time for all tests: 1215.4 seconds
cpu time: 7807.3 seconds
cumulative wall time: 9409.4 seconds
Features detected for doctesting: dvipng,ffmpeg,graphviz,imagemagick,pandoc,pdf2svg,sage.combinat,sage.geometry.polyhedron,sage.graphs,sage.plot,sage.rings.number_field,sage.rings.real_double,sage.symbolic,sagemath_doc_html,sphinx
Pytest is not installed, skip checking tests that rely on it.
make: *** [ptestlong] Error 1
where all failed doctests are due to numerical tolerance, except
**********************************************************************
File "src/sage/matrix/matrix_gf2e_dense.pyx", line 524, in sage.matrix.matrix_gf2e_dense.Matrix_gf2e_dense._multiply_karatsuba
Failed example:
A._multiply_karatsuba(B) == A._multiply_classical(B)
Expected:
True
Got:
False
**********************************************************************
source .homebrew-build-env
./configure --with-system-openblas
make succeeds.
Beware that things in /usr/local which should not be there (old homebrew, or m4ri) can make make fail.
And make ptestlong gives
----------------------------------------------------------------------
sage -t --long --warn-long 28.5 --random-seed=229399680981017988001488748054395412803 src/sage/rings/complex_arb.pyx # 2 doctests failed
sage -t --long --warn-long 28.5 --random-seed=229399680981017988001488748054395412803 src/sage/functions/error.py # 1 doctest failed
sage -t --long --warn-long 28.5 --random-seed=229399680981017988001488748054395412803 src/sage/matrix/matrix_gf2e_dense.pyx # 1 doctest failed
sage -t --long --warn-long 28.5 --random-seed=229399680981017988001488748054395412803 src/sage/rings/real_arb.pyx # 5 doctests failed
----------------------------------------------------------------------
Total time for all tests: 796.3 seconds
cpu time: 5679.4 seconds
cumulative wall time: 6117.3 seconds
Features detected for doctesting: dvipng,ffmpeg,graphviz,imagemagick,pandoc,pdf2svg,sage.combinat,sage.geometry.polyhedron,sage.graphs,sage.plot,sage.rings.number_field,sage.rings.real_double,sage.symbolic,sagemath_doc_html,sphinx
Pytest is not installed, skip checking tests that rely on it.
make: *** [ptestlong] Error 1
where all failed doctests are due to numerical tolerance, except
**********************************************************************
File "src/sage/matrix/matrix_gf2e_dense.pyx", line 524, in sage.matrix.matrix_gf2e_dense.Matrix_gf2e_dense._multiply_karatsuba
Failed example:
A._multiply_karatsuba(B) == A._multiply_classical(B)
Expected:
True
Got:
False
**********************************************************************
As suggested, I did "make doc-clean doc-uninstall" and I am currently waiting for the result of make.
Built w/o problems on two macOS systems, as indicated in the attached logs, below, with testing errors (‘ptestlong’):
On Debian testing running on core i7 + 16 GB RAM, I attempted (see there) to force the use of Sage-installed pari
, which somehow triggered the use of sage’s giac
; this didn’t solve my (other) problem.
Re-forcing the use of system’s pari
and giac
and running ptestlong
gets me :
sage -t --long --warn-long 232.5 --random-seed=190544560087993084851651335503239842385 src/sage/libs/giac/giac.pyx # 4 doctests failed
sage -t --long --warn-long 232.5 --random-seed=190544560087993084851651335503239842385 src/sage/algebras/quantum_groups/quantum_group_gap.py # 1 doctest failed
sage -t --long --warn-long 232.5 --random-seed=190544560087993084851651335503239842385 src/sage/functions/min_max.py # 2 doctests failed
The last two have been already reported and are cosmetic and numerical noise respectively. The first one is new, seems related to my re-installation of giac
, and is serious ; it may be related to the problem I tried to solve elsewhere (in both cases, the problem appears to be raised in cython code).
Re running it gives :
charpent@zen-book-flip:/usr/local/sage-9$ sage -t --long --warn-long 232.5 --random-seed=190544560087993084851651335503239842385 src/sage/libs/giac/giac.pyx # 4 doctests failed
Running doctests with ID 2022-01-30-11-45-24-32359913.
Git branch: develop
Using --optional=build,debian,debugpy,dot2tex,fricas,gap_packages,libsemigroups,pip,sage,sage_spkg
Features to be detected: 4ti2,benzene,bliss,buckygen,conway_polynomials,csdp,database_cremona_ellcurve,database_cremona_mini_ellcurve,database_jones_numfield,database_knotinfo,dvipng,ffmpeg,graphviz,imagemagick,jupymake,kenzo,latte_int,lrslib,mcqd,meataxe,pandoc,pdf2svg,plantri,pynormaliz,rubiks,sage.combinat,sage.geometry.polyhedron,sage.graphs,sage.plot,sage.rings.number_field,sage.rings.real_double,sage.symbolic,sage_numerical_backends_coin,sagemath_doc_html,sphinx,tdlib
Doctesting 1 file.
sage -t --long --warn-long 232.5 --random-seed=190544560087993084851651335503239842385 src/sage/libs/giac/giac.pyx
**********************************************************************
File "src/sage/libs/giac/giac.pyx", line 1464, in sage.libs.giac.giac.encstring23.GiacSetting.Pygen.__iter__._integer_
Failed example:
ZZ(c^1000)
Expected:
-233775163595
Got:
-1355808766
**********************************************************************
File "src/sage/libs/giac/giac.pyx", line 1466, in sage.libs.giac.giac.encstring23.GiacSetting.Pygen.__iter__._integer_
Failed example:
Mod(2,next_prime(2^40))^1000 - ZZ(c^1000)
Expected:
0
Got:
864662722370
**********************************************************************
File "src/sage/libs/giac/giac.pyx", line 1468, in sage.libs.giac.giac.encstring23.GiacSetting.Pygen.__iter__._integer_
Failed example:
2^320-(c^320).sage()
Exception raised:
Traceback (most recent call last):
File "/usr/local/sage-9/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage/doctest/forker.py", line 694, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/usr/local/sage-9/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage/doctest/forker.py", line 1088, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.libs.giac.giac.encstring23.GiacSetting.Pygen.__iter__._integer_[7]>", line 1, in <module>
Integer(2)**Integer(320)-(c**Integer(320)).sage()
File "sage/libs/giac/giac.pyx", line 1600, in sage.libs.giac.giac.Pygen.sage (build/cythonized/sage/libs/giac/giac.cpp:148122)
sig_on()
cysignals.signals.SignalError: Segmentation fault
**********************************************************************
File "src/sage/libs/giac/giac.pyx", line 1561, in sage.libs.giac.giac.encstring23.GiacSetting.Pygen.__iter__.sage
Failed example:
(a.sage())^6
Exception raised:
Traceback (most recent call last):
File "/usr/local/sage-9/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage/doctest/forker.py", line 694, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/usr/local/sage-9/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/sage/doctest/forker.py", line 1088, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.libs.giac.giac.encstring23.GiacSetting.Pygen.__iter__.sage[6]>", line 1, in <module>
(a.sage())**Integer(6)
File "sage/libs/giac/giac.pyx", line 1600, in sage.libs.giac.giac.Pygen.sage (build/cythonized/sage/libs/giac/giac.cpp:148122)
sig_on()
cysignals.signals.SignalError: Segmentation fault
**********************************************************************
2 items had failures:
3 of 9 in sage.libs.giac.giac.encstring23.GiacSetting.Pygen.__iter__._integer_
1 of 19 in sage.libs.giac.giac.encstring23.GiacSetting.Pygen.__iter__.sage
[295 tests, 4 failures, 3.90 s]
----------------------------------------------------------------------
sage -t --long --warn-long 232.5 --random-seed=190544560087993084851651335503239842385 src/sage/libs/giac/giac.pyx # 4 doctests failed
----------------------------------------------------------------------
Total time for all tests: 4.0 seconds
cpu time: 4.2 seconds
cumulative wall time: 3.9 seconds
Features detected for doctesting:
Pytest is not installed, skip checking tests that rely on it.
I’m out of my depth here. Suggestions ?
HTH,