This is a follow-up on building SageMath (make and make pytest and
make ptestlong) on
Apple Silicon Macs ("M" series chip)
macOS 13.1 (Ventura)
Xcode 14.2
Homebrew
For details on making make work see below.
make ptestlong gives
----------------------------------------------------------------------
sage -t --long --warn-long 35.5 --random-seed=… src/sage/tests/cmdline.py
# 3 doctests failed
sage -t --long --warn-long 35.5 --random-seed=…
src/sage/structure/coerce_actions.pyx # 3 doctests failed
----------------------------------------------------------------------
The first succeeds when run alone, but the second seems permanent:
**********************************************************************
File "src/sage/structure/coerce_actions.pyx", line 773, in
sage.structure.coerce_actions.IntegerMulAction._act_
Failed example:
alarm(0.001); 2^(10^7) * P
Expected:
Traceback (most recent call last):
...
AlarmInterrupt
Got:
(0 : 1 : 0)
**********************************************************************
File "src/sage/structure/coerce_actions.pyx", line 781, in
sage.structure.coerce_actions.IntegerMulAction._act_
Failed example:
from cysignals.tests import print_sig_occurred
Exception raised:
Traceback (most recent call last):
File "/Users/admin/SageMath/Git/sage/src/sage/doctest/forker.py",
line 695, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/Users/admin/SageMath/Git/sage/src/sage/doctest/forker.py",
line 1093, in compile_and_execute
exec(compiled, globs)
File "<doctest
sage.structure.coerce_actions.IntegerMulAction._act_[12]>", line 1, in
<module>
from cysignals.tests import print_sig_occurred
File "<frozen importlib._bootstrap>", line 404, in parent
File "src/cysignals/signals.pyx", line 310, in
cysignals.signals.python_check_interrupt
cysignals.signals.AlarmInterrupt
**********************************************************************
File "src/sage/structure/coerce_actions.pyx", line 782, in
sage.structure.coerce_actions.IntegerMulAction._act_
Failed example:
print_sig_occurred()
Exception raised:
Traceback (most recent call last):
File "/Users/admin/SageMath/Git/sage/src/sage/doctest/forker.py",
line 695, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/Users/admin/SageMath/Git/sage/src/sage/doctest/forker.py",
line 1093, in compile_and_execute
exec(compiled, globs)
File "<doctest
sage.structure.coerce_actions.IntegerMulAction._act_[13]>", line 1, in
<module>
print_sig_occurred()
NameError: name 'print_sig_occurred' is not defined
**********************************************************************
1 item had failures:
3 of 15 in sage.structure.coerce_actions.IntegerMulAction._act_
[150 tests, 3 failures, 0.09 s]
The "alarm" thing is perhaps due to the processor being "too fast"?
To make make work:
1) make
It fails when building the doc in parallel.
A workaround is
% export MAKE="make -j20"
% make
and after it fails
% export MAKE="make -j1"
% make
(the slowdown is more than 5-fold).
2) make pytest
OK.
3) make ptestlong
It fails for the same reason as the first make.
As the doc has just been built, and I did not wish to carry on make -j1, I
chose to modify the Makefile by adding the following lines
###############################################################################
mytest:
@echo '### make $(TEST_TARGET): Running $(TEST)'
@echo '### make $(TEST_TARGET): Running $(TEST)' >> $(TEST_LOG)
@echo '### ONLY TO BE DONE JUST AFTER A SUCCESSFUL make'
@echo '### ONLY TO BE DONE JUST AFTER A SUCCESSFUL make' >> $(TEST_LOG)
$(TEST)
myptest:
@$(MAKE) TEST_TARGET="$(TEST_TARGET)" TEST_FLAGS="$(TEST_FLAGS) -p" mytest
myptestlong:
@$(MAKE) TEST_TARGET="$(TEST_TARGET)" TEST_FLAGS="$(TEST_FLAGS) --long"
myptest
###############################################################################
and then running make myptestlong.
Guillermo
On Wed, 21 Dec 2022 at 20:01, Volker Braun <[email protected]> wrote:
> As always, you can get the latest beta version from the "develop" git
> branch. Alternatively, the self-contained source tarball is at
> http://www.sagemath.org/download-latest.html
>
> 2114066f877 (tag: 9.8.beta6, trac/develop) Updated SageMath version to
> 9.8.beta6
> 7819a59980b Trac #34825: Uniformize headline: noncommutative polynomials
> b9234de9321 Trac #34815: pep cleanup in parallel/
> eff11ab368f Trac #34813: src/doc/en/installation/source.rst gives CRITICAL
> sphinx warnings
> 6925a6da0dd Trac #34797: some formatting for NOTE:: blocks
> 446b6209127 Trac #34787: streamline .set_order() methods for elliptic
> curves and points
> 59cbf53abe5 Trac #34785: fix and activate W291 in py files
> a7bb36ed0c8 Trac #34784: some care for E275
> 50549d91ff1 Trac #34781: fixing the linter, once again
> 20bcc1e3d83 Trac #34755: add _repr_svg_ for Dyck words
> eae8219187e Trac #34743: modernize super in root_systems
> eaff61b545e Trac #34835: openblas: Remove python from dependencies
> 8fe834dbcaf Trac #34823: deprecate is_GapElement
> 84246cc579f Trac #34819: Numerical separators behave inconsistently
> 3c5d4082ca1 Trac #34812: decompose identity into generators with coxeter3
> d85aee63b4e Trac #34802: fix some compilation warnings
> a45a9d1bbea Trac #34799: fix order of multiplication in coxeter_groups
> 8ba7eda1dcc Trac #34798: less use of type "long" in cython files
> c90d203d7d9 Trac #34770: fix coercion from libgap's finite fields, use
> libgap in sage/rings/finite_rings
> 253edd915ba Trac #34582: Commutative graded algebras: remove sorting
> restriction
> 03afc37a201 Trac #34515: factorization of symmetric functions
> 939e0a119b8 Trac #34444: Implement Groebner cover
> 7a376389e18 Trac #33875: an_element for statistics and maps
> d2a2415104c Trac #32841: zn_poly removal
> f3e9113e874 Trac #32390: Make "./configure
> --enable-download-from-upstream-url" the default
> ec1ef75e11e Trac #34795: Upgrade pybind11, docutils and other packages
> bb7ee856390 (tag: 9.8.beta5) Updated SageMath version to 9.8.beta5
>
--
You received this message because you are subscribed to the Google Groups
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-release/CANnG18_xiZntyV48ynR2RmFA1Z2eZv5oR2wvw3hv9cv4onoqsA%40mail.gmail.com.