Sage 9.5.rc1 released

210 views
Skip to first unread message

Volker Braun

unread,
Jan 13, 2022, 6:22:03 PM1/13/22
to sage-release
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

3da1b22c25 (HEAD -> develop, tag: 9.5.rc1, trac/develop) Updated SageMath version to 9.5.rc1
8e7a22529e  Trac #33145: fedora-{26,27,28,...}-minimal: pyzmq build failure
92bd273637 Trac #33138: Fix SAGE_FAT_BINARY regression for numpy ("Ignoring --build-option when building numpy using PEP 517")
164685913f Trac #32744: composite elliptic-curve isogenies
9a48a8a4cb Trac #32502: make WeierstrassIsomorphism behave (more) like EllipticCurveIsogeny
2846293836 Trac #33014: Update ore_algebra to latest version
de2bfc6269 Trac #33111: Update installation manual section "Setting up SageMath as a Jupyter kernel"
91cdefb5ce Trac #33130: Fix silent "sage -b" after #32759
2e4b8bef73 Trac #33135: Filter out some distutils deprecation warnings with python 3.10
cee501534d Trac #33143: Matplotlib update breaks build on debian buster
38323507f6 (tag: 9.5.rc0) Updated SageMath version to 9.5.rc0

Eric Gourgoulhon

unread,
Jan 14, 2022, 4:10:00 AM1/14/22
to sage-release
On Ubuntu 20.04 running on Xeon E5-2623 + 16 GB RAM:
- incremental build (-j16) from 9.5.beta8, with system python (3.8.10): OK
- make ptestlong --> 2 doctests failed in src/sage/game_theory/parser.py

This is a permanent failure:

sage -t --long --warn-long 67.0 --random-seed=127661401430613686989226810121136436198 src/sage/game_theory/parser.py
**********************************************************************
File "src/sage/game_theory/parser.py", line 75, in sage.game_theory.parser.Parser.format_lrs
Failed example:
    lrs_output[:-2]                                                    # optional - lrslib
Expected:
    [...,
     '2  0  1  2 \n',
     '1  1/2  1/2 -2 \n',
     '\n',
     '2  0  1  2 \n',
     '1  0  1 -2 \n',
     '\n',
     '*Number of equilibria found: 2\n',
     '*Player 1: vertices=3 bases=3 pivots=5\n',
     '*Player 2: vertices=2 bases=1 pivots=6\n',
     '\n']
Got:
    ['*lrsnash:lrslib v.7.0 2018.7.1(64bit,lrsgmp.h,hybrid arithmetic) gmp v.6.1\n',
     '2  0  1  2 \n',
     '1  1/2  1/2 -2 \n',
     '\n',
     '2  0  1  2 \n',
     '1  0  1 -2 \n',
     '\n',
     '*Number of equilibria found: 2\n',
     '*Player 1: vertices=3 bases=3 pivots=5\n',
     '*Player 2: vertices=2 bases=1 pivots=6\n',
     '\n',
     '*lrsnash:lrslib v.7.0 2018.7.1(64bit,lrsgmp.h,hybrid arithmetic)\n']
**********************************************************************

On another Ubuntu 20.04 computer, but with lrslib not installed, no error is reported, certainly because the doctest is skipped due to the marker "optional - lrslib".

Eric.

Dima Pasechnik

unread,
Jan 14, 2022, 5:00:31 AM1/14/22
to sage-release
is this system-wide lrslib?
I'd say it's Ubuntu's bug then.

>
> On another Ubuntu 20.04 computer, but with lrslib not installed, no error is reported, certainly because the doctest is skipped due to the marker "optional - lrslib".
>
> Eric.
>
> --
> 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 sage-release...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-release/fa6a174e-357a-4119-8eea-f22b28735997n%40googlegroups.com.

Samuel Lelièvre

unread,
Jan 14, 2022, 5:41:53 AM1/14/22
to sage-release
2022-01-14 10:00 UTC, Dima Pasechnik:
>
> On Fri, Jan 14, 2022 at 9:10 AM Eric Gourgoulhon:
> >
> > On Ubuntu 20.04 running on Xeon E5-2623 + 16 GB RAM:
> > - incremental build (-j16) from 9.5.beta8, with system python (3.8.10): OK
> > - make ptestlong --> 2 doctests failed in src/sage/game_theory/parser.py
> >
> > This is a permanent failure:
> > [...]
>
> is this system-wide lrslib?
> I'd say it's Ubuntu's bug then.

The problem is more likely with our doctest framework and its
articulation with our feature detection, more specifically doctests
marked "optional - lrslib" are run as soon as lrslib is detected,
even in the case when the detected lrslib would not be deemed
good enough to use for Sage.

Similar problems have been reported recently with other optional
packages, such as ffmpeg and imagemagick. See

- #33092: ffmpeg/imagemagick features need feature checks
- #33114: Feature.require vs. is_present, is_functional

Sébastien Labbé

unread,
Jan 14, 2022, 5:54:23 AM1/14/22
to sage-release
On Friday, January 14, 2022 at 10:10:00 AM UTC+1 egourg...@gmail.com wrote:
This is a permanent failure:
sage -t --long --warn-long 67.0 --random-seed=127661401430613686989226810121136436198 src/sage/game_theory/parser.py

A ticket exists for this issue: 

Henri Girard

unread,
Jan 14, 2022, 7:04:15 AM1/14/22
to sage-r...@googlegroups.com
I just compiled it without any problems... rc0 I couldn't compile doc
rc1 works fine in ubuntu 22.04 (out in april) rizen 16 16Go RAM ubuntu 22.04

Eric Gourgoulhon

unread,
Jan 14, 2022, 7:51:28 AM1/14/22
to sage-release
Le vendredi 14 janvier 2022 à 11:00:31 UTC+1, Dima Pasechnik a écrit :

is this system-wide lrslib?

Yes this is from Ubuntu package lrslib 0.70-3.

Eric Gourgoulhon

unread,
Jan 14, 2022, 7:53:17 AM1/14/22
to sage-release
Indeed! Thanks for pointing it out.

Eric.

Thierry Dumont

unread,
Jan 14, 2022, 8:18:30 AM1/14/22
to sage-r...@googlegroups.com

Upgrading to 9.5rc1 on Ubuntu 21-10:

- compilation ok.

- make ptestlong:
==================================== ERRORS
====================================
_____________ ERROR collecting sage/structure/sage_object_test.py
______________
ImportError while importing test module
'/usr/local/sages/dev/sage/src/sage/structure/sage_object_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
src/sage/structure/sage_object_test.py:3: in <module>
from .sage_object import SageObject
E ImportError: attempted relative import with no known parent package
=========================== short test summary info
===========================

Matthias Köppe

unread,
Jan 14, 2022, 11:14:13 AM1/14/22
to sage-release
On Thursday, January 13, 2022 at 3:22:03 PM UTC-8 Volker Braun 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

3da1b22c25 (HEAD -> develop, tag: 9.5.rc1, trac/develop) Updated SageMath version to 9.5.rc1

Thanks for the new rc. Tests are running at https://github.com/sagemath/sage/actions/runs/1690315877 (Linux, macOS) and https://github.com/sagemath/sage/actions/runs/1690315874 (Cygwin).





 

Sébastien Labbé

unread,
Jan 14, 2022, 4:49:06 PM1/14/22
to sage-release
On Ubuntu 20.04, running tests with various optional and external packages (including internet optional tag), I obtain:


Using --optional=4ti2,build,ccache,cryptominisat,debian,dot2tex,e_antic,external,fricas,glucose,latte_int,lidia,lrslib,normaliz,notedown,pandoc_attributes,pip,pycosat,pynormaliz,rst2ipynb,sage,sage_numerical_backends_coin,sage_spkg
Features to be detected: 4ti2,benzene,bliss,buckygen,conway_polynomials,cplex,csdp,database_cremona_ellcurve,database_cremona_mini_ellcurve,database_jones_numfield,database_knotinfo,dvipng,ffmpeg,graphviz,gurobi,imagemagick,internet,jupymake,kenzo,latex,latex_package_tkz_graph,latte_int,lrslib,lualatex,macaulay2,magma,maple,mathematica,matlab,mcqd,meataxe,octave,pandoc,pdf2svg,pdflatex,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,scilab,sphinx,tdlib,xelatex

[...]

----------------------------------------------------------------------
sage -t --long --random-seed=115792415560373440200802359516411195501 src/doc/en/constructions/linear_algebra.rst  # 1 doctest failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/doc/en/developer/coding_in_other.rst  # 1 doctest failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/doc/en/reference/sat/index.rst  # 2 doctests failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/combinat/designs/incidence_structures.py  # 1 doctest failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/combinat/matrices/dancing_links.pyx  # 1 doctest failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/databases/findstat.py  # 12 doctests failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/databases/oeis.py  # 1 doctest failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/graphs/generic_graph.py  # 2 doctests failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/graphs/graph.py  # 3 doctests failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/interfaces/mathematica.py  # 1 doctest failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/interfaces/octave.py  # 3 doctests failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/rings/polynomial/multi_polynomial_sequence.py  # 1 doctest failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/sat/boolean_polynomials.py  # 18 doctests failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/sat/solvers/cryptominisat.py  # 38 doctests failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/sat/solvers/satsolver.pyx  # 5 doctests failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/tests/cmdline.py  # 1 doctest failed
----------------------------------------------------------------------
Features detected for doctesting: dvipng,ffmpeg,graphviz,imagemagick,internet,latex,latex_package_tkz_graph,lualatex,octave,pandoc,pdf2svg,pdflatex,sage.combinat,sage.geometry.polyhedron,sage.graphs,sage.plot,sage.rings.number_field,sage.rings.real_double,sage.symbolic,sagemath_doc_html,sphinx,xelatex


The failures of the following 6 six files are known from a long time, see https://trac.sagemath.org/ticket/25536 ::

sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/combinat/designs/incidence_structures.py  # 1 doctest failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/tests/cmdline.py  # 1 doctest failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/graphs/generic_graph.py  # 2 doctests failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/graphs/graph.py  # 3 doctests failed

The failures of the following 6 six files are related to cryptominisat, see https://trac.sagemath.org/ticket/33162:

sage -t --long --random-seed=277349812120896257585806851727004727044 src/sage/sat/boolean_polynomials.py  # 18 doctests failed
sage -t --long --random-seed=277349812120896257585806851727004727044 src/sage/rings/polynomial/multi_polynomial_sequence.py  # 1 doctest failed
sage -t --long --random-seed=277349812120896257585806851727004727044 src/sage/combinat/matrices/dancing_links.pyx  # 1 doctest failed
sage -t --long --random-seed=277349812120896257585806851727004727044 src/doc/en/reference/sat/index.rst  # 2 doctests failed
sage -t --long --random-seed=277349812120896257585806851727004727044 src/sage/sat/solvers/satsolver.pyx  # 5 doctests failed
sage -t --long --random-seed=277349812120896257585806851727004727044 src/sage/sat/solvers/cryptominisat.py  # 38 doctests failed

The failures of the following 6 six files are related to octave, see https://trac.sagemath.org/ticket/33093 :

sage -t --long --random-seed=115792415560373440200802359516411195501 src/doc/en/constructions/linear_algebra.rst  # 1 doctest failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/doc/en/developer/coding_in_other.rst  # 1 doctest failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/interfaces/octave.py  # 3 doctests failed

The failures with the following files are new and are copied below:

sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/databases/findstat.py  # 12 doctests failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/databases/oeis.py  # 1 doctest failed
sage -t --long --random-seed=115792415560373440200802359516411195501 src/sage/interfaces/mathematica.py  # 1 doctest failed

Follow up at https://trac.sagemath.org/ticket/25536


sage -t --long --random-seed=149046562098575988200674273603245903282 src/sage/interfaces/mathematica.py
**********************************************************************
File "src/sage/interfaces/mathematica.py", line 1213, in sage.interfaces.mathematica.parse_moutput_from_json
Failed example:
    parse_moutput_from_json(page_data)                    # optional internet
Expected:
    [u'-Cos[x]']
Got:
    ['-Cos[x]']
**********************************************************************
1 item had failures:
   1 of  10 in sage.interfaces.mathematica.parse_moutput_from_json
    121 mathematica tests not run
    3 mathematicafrontend tests not run
    0 tests not run because we ran out of time
    [34 tests, 1 failure, 11.08 s]


sage -t --long --random-seed=149046562098575988200674273603245903282 src/sage/databases/oeis.py
**********************************************************************
File "src/sage/databases/oeis.py", line 129, in sage.databases.oeis
Failed example:
    [i for i in b.comments() if 'prime' in i][-1]     # optional -- internet
Expected:
    'Number n is prime if mod(a(n)-2,n) = 0. -_Dmitry Kruchinin_, Feb 14 2012'
Got:
    'Number n is prime if mod(a(n)-2,n) = 0. - _Dmitry Kruchinin_, Feb 14 2012'
**********************************************************************
1 item had failures:
   1 of  26 in sage.databases.oeis
    5 webbrowser tests not run
    0 tests not run because we ran out of time
    [289 tests, 1 failure, 27.72 s]



sage -t --long --random-seed=149046562098575988200674273603245903282 src/sage/databases/findstat.py
**********************************************************************
File "src/sage/databases/findstat.py", line 1607, in sage.databases.findstat.FindStatFunction.id_str
Failed example:
    findstat(51).id_str()                                         # optional -- internet
Expected:
    u'St000051'
Got:
    'St000051'
**********************************************************************
File "src/sage/databases/findstat.py", line 1681, in sage.databases.findstat.FindStatFunction.name
Failed example:
    findstat(51).name()                                           # optional -- internet
Expected:
    u'The size of the left subtree of a binary tree.'
Got:
    'The size of the left subtree of a binary tree.'
**********************************************************************
File "src/sage/databases/findstat.py", line 1884, in sage.databases.findstat.FindStatCombinatorialStatistic._first_terms_raw
Failed example:
    findstat(41)._first_terms_raw(4)                              # optional -- internet
Expected:
    [(u'[(1,2)]', 0),
     (u'[(1,2),(3,4)]', 0),
     (u'[(1,3),(2,4)]', 0),
     (u'[(1,4),(2,3)]', 1)]
Got:
    [('[(1,2)]', 0),
     ('[(1,2),(3,4)]', 0),
     ('[(1,3),(2,4)]', 0),
     ('[(1,4),(2,3)]', 1)]
**********************************************************************
File "src/sage/databases/findstat.py", line 2178, in sage.databases.findstat.?._fetch_data
Failed example:
    findstat(41)._data()                                          # optional -- internet, indirect doctest
Expected:
    {u'Bibliography': {u'MathSciNet:1288802': {u'Author': u'de M\xe9dicis, A., Viennot, X. G.',
       u'Title': u'Moments des $q$-polyn\xf4mes de Laguerre et la bijection de Foata-Zeilberger'},
      u'MathSciNet:1418763': {u'Author': u'Simion, R., Stanton, D.',
       u'Title': u'Octabasic Laguerre polynomials and permutation statistics'}},
     u'Code': u'def statistic(x):\r\n    return len(x.nestings())',
     u'Description': u'The number of nestings of a perfect matching. \r\n\r\n\r\nThis is the number of pairs of edges $((a,b), (c,d))$ such that $a\\le c\\le d\\le b$. i.e., the edge $(c,d)$ is nested inside $(a,b)$.',
     u'Domain': u'Cc0012',
     u'Name': u'The number of nestings of a perfect matching.',
     u'References': u'[1]  [[MathSciNet:1288802]]\n[2]  [[MathSciNet:1418763]]',
     u'SageCode': u'def statistic(x):\r\n    return len(x.nestings())'}
Got:
    {'Bibliography': {'MathSciNet:1288802': {'Author': 'de Médicis, A., Viennot, X. G.',
       'Title': 'Moments des $q$-polynômes de Laguerre et la bijection de Foata-Zeilberger'},
      'MathSciNet:1418763': {'Author': 'Simion, R., Stanton, D.',
       'Title': 'Octabasic Laguerre polynomials and permutation statistics'}},
     'Code': 'def statistic(x):\r\n    return len(x.nestings())',
     'Description': 'The number of nestings of a perfect matching. \r\n\r\n\r\nThis is the number of pairs of edges $((a,b), (c,d))$ such that $a\\le c\\le d\\le b$. i.e., the edge $(c,d)$ is nested inside $(a,b)$.',
     'Domain': 'Cc0012',
     'Name': 'The number of nestings of a perfect matching.',
     'References': '[1]  [[MathSciNet:1288802]]\n[2]  [[MathSciNet:1418763]]',
     'SageCode': 'def statistic(x):\r\n    return len(x.nestings())'}
**********************************************************************
File "src/sage/databases/findstat.py", line 2211, in sage.databases.findstat.?._fetch_first_terms_raw
Failed example:
    findstat(41)._first_terms_raw(4)                              # optional -- internet, indirect doctest
Expected:
    [(u'[(1,2)]', 0),
     (u'[(1,2),(3,4)]', 0),
     (u'[(1,3),(2,4)]', 0),
     (u'[(1,4),(2,3)]', 1)]
Got:
    [('[(1,2)]', 0),
     ('[(1,2),(3,4)]', 0),
     ('[(1,3),(2,4)]', 0),
     ('[(1,4),(2,3)]', 1)]
**********************************************************************
File "src/sage/databases/findstat.py", line 2764, in sage.databases.findstat.FindStatCompoundStatistic._fetch_first_terms_raw
Failed example:
    findstat("St000042oMp00116")._first_terms_raw(4)              # optional -- internet, indirect doctest
Expected:
    [(u'[(1,2)]', 0),
     (u'[(1,2),(3,4)]', 0),
     (u'[(1,3),(2,4)]', 0),
     (u'[(1,4),(2,3)]', 1)]
Got:
    [('[(1,2)]', 0),
     ('[(1,2),(3,4)]', 0),
     ('[(1,3),(2,4)]', 0),
     ('[(1,4),(2,3)]', 1)]
**********************************************************************
File "src/sage/databases/findstat.py", line 3104, in sage.databases.findstat.?._fetch_data
Failed example:
    findmap(64)._data()                                           # optional -- internet, indirect doctest
Expected:
    {u'Bibliography': {},
     u'Codomain': u'Cc0001',
     u'Description': u'Sends a permutation to its reverse.\r\n\r\nThe reverse of a permutation $\\sigma$ of length $n$ is given by $\\tau$ with $\\tau(i) = \\sigma(n+1-i)$.',
     u'Domain': u'Cc0001',
     u'Name': u'reverse',
     u'Properties': u'bijective, graded, involutive',
     u'References': u'',
     u'SageCode': u'def mapping(sigma):\r\n    return sigma.reverse()'}
Got:
    {'Bibliography': {},
     'Codomain': 'Cc0001',
     'Description': 'Sends a permutation to its reverse.\r\n\r\nThe reverse of a permutation $\\sigma$ of length $n$ is given by $\\tau$ with $\\tau(i) = \\sigma(n+1-i)$.',
     'Domain': 'Cc0001',
     'Name': 'reverse',
     'Properties': 'bijective, graded, involutive',
     'References': '',
     'SageCode': 'def mapping(sigma):\r\n    return sigma.reverse()'}
**********************************************************************
File "src/sage/databases/findstat.py", line 3212, in sage.databases.findstat.?.properties_raw
Failed example:
    FindStatMap(61).properties_raw()                              # optional -- internet
Expected:
    u'surjective, graded'
Got:
    'surjective, graded'
**********************************************************************
File "src/sage/databases/findstat.py", line 3225, in sage.databases.findstat.?.set_properties_raw
Failed example:
    FindStatMap(61).properties_raw()                              # optional -- internet
Expected:
    u'surjective'
Got:
    'surjective'
**********************************************************************
File "src/sage/databases/findstat.py", line 4319, in sage.databases.findstat.?.id_str
Failed example:
    c.id_str()                                                    # optional -- internet
Expected:
    u'Cc0018'
Got:
    'Cc0018'
**********************************************************************
File "src/sage/databases/findstat.py", line 4418, in sage.databases.findstat.?.name
Failed example:
    FindStatCollection("Binary trees").name()                     # optional -- internet
Expected:
    u'Binary tree'
Got:
    'Binary tree'
**********************************************************************
File "src/sage/databases/findstat.py", line 4421, in sage.databases.findstat.?.name
Failed example:
    FindStatCollection("Binary trees").name(style="plural")       # optional -- internet
Expected:
    u'Binary trees'
Got:
    'Binary trees'
**********************************************************************
10 items had failures:
   2 of   4 in sage.databases.findstat.?._fetch_data
   1 of   2 in sage.databases.findstat.?._fetch_first_terms_raw
   1 of   4 in sage.databases.findstat.?.id_str
   2 of   4 in sage.databases.findstat.?.name
   1 of   3 in sage.databases.findstat.?.properties_raw
   1 of   7 in sage.databases.findstat.?.set_properties_raw
   1 of   2 in sage.databases.findstat.FindStatCombinatorialStatistic._first_terms_raw
   1 of   2 in sage.databases.findstat.FindStatCompoundStatistic._fetch_first_terms_raw
   1 of   2 in sage.databases.findstat.FindStatFunction.id_str
   1 of   2 in sage.databases.findstat.FindStatFunction.name
    11 webbrowser tests not run
    0 tests not run because we ran out of time
    [409 tests, 12 failures, 48.92 s]

Samuel Lelièvre

unread,
Jan 15, 2022, 2:09:30 AM1/15/22
to sage-release
2022-01-14 21:49 UTC, Sébastien Labbé:
>
> The failures with the following files are new and are copied below:
>
> SEED=115792415560373440200802359516411195501
> alias sagetest="./sage -t --long --random-seed=$SEED"
> sagetest src/sage/databases/findstat.py # 12 doctests failed
> sagetest src/sage/databases/oeis.py # 1 doctest failed
> sagetest src/sage/interfaces/mathematica.py # 1 doctest failed

These might be a fallout of #32938, merged in Sage 9.5.rc0.

- Sage Trac ticket #32938
deactivation of the u-prefix doctest handler
https://trac.sagemath.org/ticket/32938

Samuel Lelièvre

unread,
Jan 15, 2022, 3:31:14 AM1/15/22
to sage-release
2022-01-13 23:22 UTC, Volker Braun:
>
> 3da1b22c25 (tag: 9.5.rc1) Updated SageMath version to 9.5.rc1

Thanks for this new development release.

On an Acer laptop, on Cygwin 3.3.3-1 on Windows 10, two attempts:

- from a freshly downloaded tarball
- from a fresh git clone

Both attempts failed while building `sagemath_doc_html-none`.

Logs:

https://aij.ovh/sage/logs/slel-2022-01-13-cyg-sage-9-5-c1-from-tgz.zip
https://aij.ovh/sage/logs/slel-2022-01-13-cyg-sage-9-5-c1-new-git-clone.zip

This is tracked at

- Sage Trac ticket #33139
Fix sagemath_doc_html-none build failure
https://trac.sagemath.org/ticket/33139

Emmanuel Charpentier

unread,
Jan 15, 2022, 6:50:45 AM1/15/22
to sage-release

FWIW, upgrading 9.5.rc0 to 9.5.rc1 and running ptestlong gives exactly  the same results as those reported for 9.5.rc0.

HTH,

Markus Wageringel

unread,
Jan 15, 2022, 8:03:12 AM1/15/22
to sage-release
I have also seen this error, but it disappeared after a distclean.

Matthias Köppe

unread,
Jan 15, 2022, 4:01:14 PM1/15/22
to sage-release
Based on the runs on GH Actions, I have updated the summary of platform support in https://wiki.sagemath.org/ReleaseTours/sage-9.5#Sources

TL;DR: It's all good now on all platforms tested on GH Actions, including Cygwin.
But I would urge that 9.5 still merge the positively reviews tickets marked "critical"/"blocker", such as https://trac.sagemath.org/ticket/29285 (which fixes the build in the presence of pyenv).
Also note we have absolutely no automatic testing for the Apple Silicon (M1) platform. So it would be good if users/developers who have access to this platform test the release candidate.



G. M.-S.

unread,
Jan 15, 2022, 4:13:31 PM1/15/22
to sage-r...@googlegroups.com

Hello Matthias.

I can try to build 9.5rc1 on an M1 Mac, but I need to know how to get the source tarball (I am not familiar with git).

Guillermo

G. M.-S.

unread,
Jan 15, 2022, 4:16:09 PM1/15/22
to sage-r...@googlegroups.com

I found it. Sorry for the noise.

Guillermo

Thierry Dumont

unread,
Jan 15, 2022, 4:51:46 PM1/15/22
to sage-r...@googlegroups.com


Le 15/01/2022 à 14:03, Markus Wageringel a écrit :
> I have also seen this error, but it disappeared after a distclean.
>
Yes ! thanks.
t.d.
> --
> 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 sage-release...@googlegroups.com
> <mailto:sage-release...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-release/53419cfa-a623-4c35-8f96-ab898e51bc02n%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-release/53419cfa-a623-4c35-8f96-ab898e51bc02n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Marc Culler

unread,
Jan 15, 2022, 5:30:08 PM1/15/22
to sage-release
Hi Matthias,

I have posted binary releases for 9.5.rc1 on macOS with Intel or Arm CPUs at https://github.com/3-manifolds/Sage_macOS/releases/tag/v1.3-rc1.  There are two separate disk images.  You may recall that I do not use Homebrew or Conda, but I did have to use an experimental binary release of gfortran for M1 since I was not able to build the gfortran spkg.

- Marc

Matthias Köppe

unread,
Jan 15, 2022, 5:49:42 PM1/15/22
to sage-release
Hi Marc,
Matthias

Matthias Köppe

unread,
Jan 15, 2022, 5:55:01 PM1/15/22
to sage-release

G. M.-S.

unread,
Jan 15, 2022, 6:24:58 PM1/15/22
to sage-r...@googlegroups.com

Trying to build on an M1 Mac under macOS 11.6.2, I get

make[2]: *** [all-start] Error 2


real 3m36.733s

user 4m58.426s

sys 1m2.949s

***************************************************************

Error building Sage.


The following package(s) may have failed to build (not necessarily

during this run of 'make all-start'):


* package:         zn_poly-0.9.2

  last build time: Jan 16 00:17

  log file:        /Users/gms/sage/sage-9.5.rc1/logs/pkgs/zn_poly-0.9.2.log

  build directory: /Users/gms/sage/sage-9.5.rc1/local/var/tmp/sage/build/zn_poly-0.9.2


* package:         ratpoints-2.1.3.p5

  last build time: Jan 16 00:17

  log file:        /Users/gms/sage/sage-9.5.rc1/logs/pkgs/ratpoints-2.1.3.p5.log

  build directory: /Users/gms/sage/sage-9.5.rc1/local/var/tmp/sage/build/ratpoints-2.1.3.p5


* package:         iml-1.0.4p1.p2

  last build time: Jan 16 00:17

  log file:        /Users/gms/sage/sage-9.5.rc1/logs/pkgs/iml-1.0.4p1.p2.log

  build directory: /Users/gms/sage/sage-9.5.rc1/local/var/tmp/sage/build/iml-1.0.4p1.p2


* package:         singular-4.2.1p3

  last build time: Jan 16 00:18

  log file:        /Users/gms/sage/sage-9.5.rc1/logs/pkgs/singular-4.2.1p3.log

  build directory: /Users/gms/sage/sage-9.5.rc1/local/var/tmp/sage/build/singular-4.2.1p3


[...]


make[1]: *** [all-start] Error 1

make: *** [all] Error 2


Logs attached.

HTH

Guillermo

On Sat, 15 Jan 2022 at 22:01, Matthias Köppe <matthia...@gmail.com> wrote:
install.log
zn_poly-0.9.2.log
ratpoints-2.1.3.p5.log
iml-1.0.4p1.p2.log
singular-4.2.1p3.log

Matthias Köppe

unread,
Jan 15, 2022, 7:23:33 PM1/15/22
to sage-release
config.log please

G. M.-S.

unread,
Jan 15, 2022, 7:25:49 PM1/15/22
to sage-r...@googlegroups.com

Here it is.
config.log

Matthias Köppe

unread,
Jan 15, 2022, 7:38:25 PM1/15/22
to sage-release
It looks like you have homebrew installed both for x86_64 (in /usr/local) and for arm64 (in /opt/homebrew). Could you check if moving /usr/local out of the way fixes the build errors?

Kenji Iohara

unread,
Jan 15, 2022, 8:50:59 PM1/15/22
to sage-r...@googlegroups.com
Try building on Mac OS 12.1, with IntelCore i5,  Python 3.10.1,
and r-4.1.2 pre-installed, I could compile it ! 



16/01/2022 1:25、G. M.-S. <list...@gmail.com>のメール:


Here it is.

config.log please

But I would urge that 9.5 still merge the positively reviews tickets marked "critical"/"blocker", such as https://trac.sagemath.org/ticket/29285(which fixes the build in the presence of pyenv).
Also note we have absolutely no automatic testing for the Apple Silicon (M1) platform. So it would be good if users/developers who have access to this platform test the release candidate.
-- 
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 sage-release...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-release/CANnG189pAgvqVvNLQCRNm5D5d2WVwFoZSQFX_OSpZ2_E_HgMsg%40mail.gmail.com.
<config.log>

G. M.-S.

unread,
Jan 16, 2022, 5:17:58 AM1/16/22
to sage-r...@googlegroups.com

There was no /usr/local/opt.
I eliminated all references to /usr/local/opt in .bash_profile.
Uninstalled homebrew and reinstalled it.

I get

make[2]: *** [all-start] Error 2


real 4m27.295s

user 12m14.754s

sys 3m20.702s

***************************************************************

Error building Sage.


The following package(s) may have failed to build (not necessarily

during this run of 'make all-start'):


* package:         iml-1.0.4p1.p2

  last build time: Jan 16 00:17

  log file:        /Users/gms/sage/sage-9.5.rc1/logs/pkgs/iml-1.0.4p1.p2.log

  build directory: /Users/gms/sage/sage-9.5.rc1/local/var/tmp/sage/build/iml-1.0.4p1.p2


* package:         singular-4.2.1p3

  last build time: Jan 16 00:18

  log file:        /Users/gms/sage/sage-9.5.rc1/logs/pkgs/singular-4.2.1p3.log

  build directory: /Users/gms/sage/sage-9.5.rc1/local/var/tmp/sage/build/singular-4.2.1p3


* package:         tachyon-0.98.9.p7

  last build time: Jan 16 11:08

  log file:        /Users/gms/sage/sage-9.5.rc1/logs/pkgs/tachyon-0.98.9.p7.log

  build directory: /Users/gms/sage/sage-9.5.rc1/local/var/tmp/sage/build/tachyon-0.98.9.p7


[...]


make[1]: *** [all-start] Error 1

make: *** [all] Error 2


Logs attached.

--
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 sage-release...@googlegroups.com.
config.log
install.log
iml-1.0.4p1.p2.log
ratpoints-2.1.3.p5.log
zn_poly-0.9.2.log
singular-4.2.1p3.log

G. M.-S.

unread,
Jan 16, 2022, 5:26:54 AM1/16/22
to sage-r...@googlegroups.com

I should add that this failed:

$ brew install apaffenholz/polymake/polymake

[...]

==> ./configure --prefix=/opt/homebrew/Cellar/polymake/4.5 --without-bliss --without-java --without-scip --without-soplex --without-singular --with-brew=bottle

Last 15 lines from /Users/gms/Library/Logs/Homebrew/polymake/219.configure:

2022-01-16 10:22:51 +0000


./configure

--prefix=/opt/homebrew/Cellar/polymake/4.5

--without-bliss

--without-java

--without-scip

--without-soplex

--without-singular

--with-brew=bottle


checking C++ compiler ... ok (clang++ is Apple CLANG (roughly 10.0) from Xcode 13.0.0)

checking C++ library ... ok (libc++ 12000, C++ 201402)

checking for package manager ... Homebrew installation seems corrupt: no shared libraries found in /usr/local/lib


If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):

  https://github.com/apaffenholz/homebrew-polymake/issues


These open issues may also help:

Brewing polymake on Apple Silicon / M1 / arm https://github.com/apaffenholz/homebrew-polymake/issues/2


and I could not find anything relevant about this.

Kenji Iohara

unread,
Jan 16, 2022, 6:39:18 AM1/16/22
to sage-r...@googlegroups.com
After building sage 9.5.rc1, I did    make test: here is the result

----------------------------------------------------------------------
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/env.py  # 1 doctest failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/misc/superseded.py  # 6 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/misc/cython.py  # 18 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/misc/cachefunc.pyx  # 54 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/misc/session.pyx  # 2 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/misc/inherit_comparison.pyx  # 5 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/misc/sagedoc.py  # 2 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/misc/nested_class.pyx  # 6 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/misc/lazy_attribute.pyx  # 3 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/misc/sageinspect.py  # 35 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/parallel/decorate.py  # 2 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/ext/memory_allocator.pxd  # 6 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/ext/memory_allocator.pyx  # 9 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/features/__init__.py  # 2 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/tests/cmdline.py  # 4 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/repl/ipython_extension.py  # 2 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/repl/load.py  # 2 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/docs/instancedoc.pyx  # 4 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/arith/long.pxd  # 14 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/cpython/wrapperdescr.pxd  # 6 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/cpython/string.pyx  # 1 doctest failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/cpython/cython_metaclass.pyx  # 4 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/cpython/getattr.pyx  # 4 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/rings/integer_fake.pxd  # 1 doctest failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/rings/tate_algebra_ideal.pyx  # 6 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/rings/polynomial/ore_polynomial_element.pyx  # 6 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/graphs/connectivity.pyx  # 2 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/graphs/graph_decompositions/fast_digraph.pyx  # 5 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/symbolic/pynac.pxi  # 1 doctest failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/structure/element.pyx  # 37 doctests failed
sage -t --warn-long 92.2 --random-seed=248274298638072512956919107891022172471 src/sage/structure/factory.pyx  # 8 doctests failed
----------------------------------------------------------------------
Total time for all tests: 7761.5 seconds
    cpu time: 5776.9 seconds
    cumulative wall time: 7464.5 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: *** [test] Error 1
test.log

Matthias Köppe

unread,
Jan 16, 2022, 12:12:05 PM1/16/22
to sage-release
From singular....log:

In file included from bbfan.cc:17:
In file included from ./gfan.h:18:
/Users/gms/sage/sage-9.5.rc1/local/include/cddlib/cdd.h:26:10: fatal error: 'cdd_f.h' file not found
#include "cdd_f.h"
         ^~~~~~~~~
1 error generated.
make[10]: *** [gfanlib_la-bbfan.lo] Error 1

This is very strange. Could you (1) check what's in local/include/cddlib/ and (2) reinstall cddlib using "make cddlib-clean cddlib"?


Matthias Köppe

unread,
Jan 16, 2022, 12:19:03 PM1/16/22
to sage-release
Many of the failures shown in test.log come from runtime use of compilers via the "cython" function.

G. M.-S.

unread,
Jan 16, 2022, 12:26:34 PM1/16/22
to sage-r...@googlegroups.com

Here it is. Before:

$ ls -al ~/sage/sage-9.5.rc1/local/include/cddlib/*

-rw-r--r--  1 gms  staff  13933 Jan 16 11:08 /Users/gms/sage/sage-9.5.rc1/local/include/cddlib/cdd.h

-rw-r--r--  1 gms  staff  14714 Jan 16 11:08 /Users/gms/sage/sage-9.5.rc1/local/include/cddlib/cdd_f.h

-rw-r--r--  1 gms  staff   4726 Jan 16 11:08 /Users/gms/sage/sage-9.5.rc1/local/include/cddlib/cddmp.h

-rw-r--r--  1 gms  staff   4947 Jan 16 11:08 /Users/gms/sage/sage-9.5.rc1/local/include/cddlib/cddmp_f.h

-rw-r--r--  1 gms  staff  10953 Jan 16 11:08 /Users/gms/sage/sage-9.5.rc1/local/include/cddlib/cddtypes.h

-rw-r--r--  1 gms  staff  11307 Jan 16 11:08 /Users/gms/sage/sage-9.5.rc1/local/include/cddlib/cddtypes_f.h

-rw-r--r--  1 gms  staff   1373 Jan 16 11:08 /Users/gms/sage/sage-9.5.rc1/local/include/cddlib/setoper.h

-rw-r--r--  1 gms  staff    609 Jan 16 11:08 /Users/gms/sage/sage-9.5.rc1/local/include/cddlib/splitmix64.h

and after make cddlib-clean cddlib:

$ ls -al ~/sage/sage-9.5.rc1/local/include/cddlib/*

-rw-r--r--  1 gms  staff  13933 Jan 16 18:21 /Users/gms/sage/sage-9.5.rc1/local/include/cddlib/cdd.h

-rw-r--r--  1 gms  staff  14714 Jan 16 18:21 /Users/gms/sage/sage-9.5.rc1/local/include/cddlib/cdd_f.h

-rw-r--r--  1 gms  staff   4726 Jan 16 18:21 /Users/gms/sage/sage-9.5.rc1/local/include/cddlib/cddmp.h

-rw-r--r--  1 gms  staff   4947 Jan 16 18:21 /Users/gms/sage/sage-9.5.rc1/local/include/cddlib/cddmp_f.h

-rw-r--r--  1 gms  staff  10953 Jan 16 18:21 /Users/gms/sage/sage-9.5.rc1/local/include/cddlib/cddtypes.h

-rw-r--r--  1 gms  staff  11307 Jan 16 18:21 /Users/gms/sage/sage-9.5.rc1/local/include/cddlib/cddtypes_f.h

-rw-r--r--  1 gms  staff   1373 Jan 16 18:21 /Users/gms/sage/sage-9.5.rc1/local/include/cddlib/setoper.h

-rw-r--r--  1 gms  staff    609 Jan 16 18:21 /Users/gms/sage/sage-9.5.rc1/local/include/cddlib/splitmix64.h

$ 


Logs attached.

Trying to make again, will report.
install.log
config.log
cddlib-0.94m.log

axio...@yahoo.de

unread,
Jan 16, 2022, 12:51:27 PM1/16/22
to sage-release
The findstat fixes (all trivial) are ready at https://trac.sagemath.org/ticket/33190.

G. M.-S.

unread,
Jan 16, 2022, 4:06:58 PM1/16/22
to sage-r...@googlegroups.com

I started afresh (delete sage-9.5.rc1, untar, etc.)

make -k gives

The following package(s) may have failed to build (not necessarily

during this run of 'make tachyon'):


* package:         primecountpy-0.1.0

  last build time: Jan 16 21:55

  log file:        /Users/gms/sage/sage-9.5.rc1/logs/pkgs/primecountpy-0.1.0.log


* package:         libhomfly-1.02r6

  last build time: Jan 16 21:55

  log file:        /Users/gms/sage/sage-9.5.rc1/logs/pkgs/libhomfly-1.02r6.log

  build directory: /Users/gms/sage/sage-9.5.rc1/local/var/tmp/sage/build/libhomfly-1.02r6


* package:         m4ri-20200115

  last build time: Jan 16 21:55

  log file:        /Users/gms/sage/sage-9.5.rc1/logs/pkgs/m4ri-20200115.log

  build directory: /Users/gms/sage/sage-9.5.rc1/local/var/tmp/sage/build/m4ri-20200115


* package:         openblas-0.3.18

  last build time: Jan 16 21:58

  log file:        /Users/gms/sage/sage-9.5.rc1/logs/pkgs/openblas-0.3.18.log

  build directory: /Users/gms/sage/sage-9.5.rc1/local/var/tmp/sage/build/openblas-0.3.18


* package:         tachyon-0.98.9.p7

  last build time: Jan 16 21:59

  log file:        /Users/gms/sage/sage-9.5.rc1/logs/pkgs/tachyon-0.98.9.p7.log

  build directory: /Users/gms/sage/sage-9.5.rc1/local/var/tmp/sage/build/tachyon-0.98.9.p7


Logs attached.
config.log
install.log
primecountpy-0.1.0.log
tachyon-0.98.9.p7.log
zn_poly-0.9.2.log
libhomfly-1.02r6.log
m4ri-20200115.log

Matthias Köppe

unread,
Jan 16, 2022, 5:17:38 PM1/16/22
to sage-release
Thanks for testing and posting the logs. I'll dissect the logs at https://trac.sagemath.org/ticket/30592

Matthias Köppe

unread,
Jan 16, 2022, 5:34:48 PM1/16/22
to sage-release
There is no error in the zn_poly log file; but could you post the openblas log file please?

Matthias Köppe

unread,
Jan 16, 2022, 5:51:05 PM1/16/22
to sage-release
I have a possible fix for these at https://trac.sagemath.org/ticket/33191; to test without git, just make the changes shown in https://git.sagemath.org/sage.git/diff?id2=f9b2db94f675ff16963ccdefba4f1a3393b3fe0d&id=aee855a78b42ab4b726995a9e22f23e3bec08b8b to the file .homebrew-build-env and then source this file again

Matthias Köppe

unread,
Jan 16, 2022, 6:34:17 PM1/16/22
to sage-release
Also worth checking whether "brew install openblas" installs something new
(see messages at the end of the configure run)

G. M.-S.

unread,
Jan 16, 2022, 8:30:12 PM1/16/22
to sage-r...@googlegroups.com

Here is what I have done.

$ brew uninstall openblas

Error: Refusing to uninstall /opt/homebrew/Cellar/openblas/0.3.19

because it is required by arpack, cbc, cgl, clp, coinutils, igraph, osi, r and suite-sparse, which are currently installed.

You can override this and force removal with:

  brew uninstall --ignore-dependencies openblas

$ brew uninstall --ignore-dependencies openblas

Uninstalling /opt/homebrew/Cellar/openblas/0.3.19... (23 files, 51.9MB)

$ brew install openblas

==> Auto-updated Homebrew!

Updated 1 tap (homebrew/core).

==> Updated Formulae

Updated 10 formulae.

Running `brew update --preinstall`...


==> Downloading https://ghcr.io/v2/homebrew/core/openblas/manifests/0.3.19

Already downloaded: /Users/gms/Library/Caches/Homebrew/downloads/b47e3d834a9c52d0772b21372a675e3496a8480baa2f3e9b72d60def08682c3f--openblas-0.3.19.bottle_manifest.json

==> Downloading https://ghcr.io/v2/homebrew/core/openblas/blobs/sha256:33e6385102e69ddd716d8eb818861e2e2e2c08de20e06d189ffd69115131ed03

Already downloaded: /Users/gms/Library/Caches/Homebrew/downloads/82003eb6c8dd0091f8465e8203b39d67e81d7db4c9e4d790e71f6b2e8445ab3f--openblas--0.3.19.arm64_big_sur.bottle.tar.gz

==> Pouring openblas--0.3.19.arm64_big_sur.bottle.tar.gz

==> Caveats

openblas is keg-only, which means it was not symlinked into /opt/homebrew,

because macOS provides BLAS in Accelerate.framework.


For compilers to find openblas you may need to set:

  export LDFLAGS="-L/opt/homebrew/opt/openblas/lib"

  export CPPFLAGS="-I/opt/homebrew/opt/openblas/include"


For pkg-config to find openblas you may need to set:

  export PKG_CONFIG_PATH="/opt/homebrew/opt/openblas/lib/pkgconfig"


==> Summary

🍺  /opt/homebrew/Cellar/openblas/0.3.19: 23 files, 51.9MB

==> Running `brew cleanup openblas`...

Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.

Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

$ 


then the modification for .homebrew-build-env, followed by make -k.

And now the only remaining problem is openblas:

* package:         openblas-0.3.18

  last build time: Jan 17 02:24

  log file:        /Users/gms/sage/sage-9.5.rc1/logs/pkgs/openblas-0.3.18.log

  build directory: /Users/gms/sage/sage-9.5.rc1/local/var/tmp/sage/build/openblas-0.3.18


Logs attached (sorry for the wrong log before).  The one for openblas is zipped as it is too large.

--
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 sage-release...@googlegroups.com.
config.log
install.log
openblas-0.3.18.log.zip

Matthias Köppe

unread,
Jan 16, 2022, 9:24:47 PM1/16/22
to sage-release
Did you use ". .homebrew-build-env" before the latest build?

G. M.-S.

unread,
Jan 16, 2022, 9:46:59 PM1/16/22
to sage-r...@googlegroups.com

Yes, of course.

I have restarted the whole process again (modifying and sourcing  .homebrew-build-env), and it does not go further than iml:

* package:         iml-1.0.4p1.p2

  last build time: Jan 17 03:43

  log file:        /Users/gms/sage/sage-9.5.rc1/logs/pkgs/iml-1.0.4p1.p2.log

  build directory: /Users/gms/sage/sage-9.5.rc1/local/var/tmp/sage/build/iml-1.0.4p1.p2

config.log
install.log
iml-1.0.4p1.p2.log

Matthias Köppe

unread,
Jan 16, 2022, 10:15:35 PM1/16/22
to sage-release
The latest config.log now shows "will use system package and not install SPKG openblas", so there's progress.

I'll take the new version of the iml log to https://trac.sagemath.org/ticket/30592

Matthias Köppe

unread,
Jan 16, 2022, 11:02:09 PM1/16/22
to sage-release
Regarding the iml build failure, could you run "otool -lL /usr/local/opt/openblas/lib/libopenblas.0.dylib " please


On Sunday, January 16, 2022 at 6:46:59 PM UTC-8 list...@gmail.com wrote:

G. M.-S.

unread,
Jan 16, 2022, 11:18:34 PM1/16/22
to sage-r...@googlegroups.com

Yes, of course, here is the output (I replaced /usr/local):

$ otool -lL /opt/homebrew/opt/openblas/lib/libopenblas.0.dylib

/opt/homebrew/opt/openblas/lib/libopenblas.0.dylib:

Load command 0

      cmd LC_SEGMENT_64

  cmdsize 712

  segname __TEXT

   vmaddr 0x0000000000000000

   vmsize 0x0000000001274000

  fileoff 0

 filesize 19349504

  maxprot 0x00000005

 initprot 0x00000005

   nsects 8

    flags 0x0

Section

  sectname __text

   segname __TEXT

      addr 0x0000000000004860

      size 0x00000000010b4ddc

    offset 18528

     align 2^5 (32)

    reloff 0

    nreloc 0

     flags 0x80000400

 reserved1 0

 reserved2 0

Section

  sectname __text_startup

   segname __TEXT

      addr 0x00000000010b963c

      size 0x0000000000000068

    offset 17536572

     align 2^2 (4)

    reloff 0

    nreloc 0

     flags 0x80000400

 reserved1 0

 reserved2 0

Section

  sectname __text_exit

   segname __TEXT

      addr 0x00000000010b96a4

      size 0x0000000000000034

    offset 17536676

     align 2^2 (4)

    reloff 0

    nreloc 0

     flags 0x80000400

 reserved1 0

 reserved2 0

Section

  sectname __stubs

   segname __TEXT

      addr 0x00000000010b96d8

      size 0x0000000000000354

    offset 17536728

     align 2^2 (4)

    reloff 0

    nreloc 0

     flags 0x80000408

 reserved1 0 (index into indirect symbol table)

 reserved2 12 (size of stubs)

Section

  sectname __stub_helper

   segname __TEXT

      addr 0x00000000010b9a2c

      size 0x000000000000036c

    offset 17537580

     align 2^2 (4)

    reloff 0

    nreloc 0

     flags 0x80000400

 reserved1 0

 reserved2 0

Section

  sectname __const

   segname __TEXT

      addr 0x00000000010b9d98

      size 0x000000000001ee08

    offset 17538456

     align 2^3 (8)

    reloff 0

    nreloc 0

     flags 0x00000000

 reserved1 0

 reserved2 0

Section

  sectname __cstring

   segname __TEXT

      addr 0x00000000010d8ba0

      size 0x000000000000ae16

    offset 17664928

     align 2^0 (1)

    reloff 0

    nreloc 0

     flags 0x00000002

 reserved1 0

 reserved2 0

Section

  sectname __eh_frame

   segname __TEXT

      addr 0x00000000010e39b8

      size 0x0000000000190640

    offset 17709496

     align 2^3 (8)

    reloff 0

    nreloc 0

     flags 0x00000000

 reserved1 0

 reserved2 0

Load command 1

      cmd LC_SEGMENT_64

  cmdsize 712

  segname __DATA

   vmaddr 0x0000000001274000

   vmsize 0x0000000000018000

  fileoff 19349504

 filesize 81920

  maxprot 0x00000003

 initprot 0x00000003

   nsects 8

    flags 0x0

Section

  sectname __got

   segname __DATA

      addr 0x0000000001274000

      size 0x0000000000000010

    offset 19349504

     align 2^3 (8)

    reloff 0

    nreloc 0

     flags 0x00000006

 reserved1 71 (index into indirect symbol table)

 reserved2 0

Section

  sectname __la_symbol_ptr

   segname __DATA

      addr 0x0000000001274010

      size 0x0000000000000238

    offset 19349520

     align 2^3 (8)

    reloff 0

    nreloc 0

     flags 0x00000007

 reserved1 73 (index into indirect symbol table)

 reserved2 0

Section

  sectname __mod_init_func

   segname __DATA

      addr 0x0000000001274248

      size 0x0000000000000008

    offset 19350088

     align 2^3 (8)

    reloff 0

    nreloc 0

     flags 0x00000009

 reserved1 0

 reserved2 0

Section

  sectname __mod_term_func

   segname __DATA

      addr 0x0000000001274250

      size 0x0000000000000008

    offset 19350096

     align 2^3 (8)

    reloff 0

    nreloc 0

     flags 0x0000000a

 reserved1 0

 reserved2 0

Section

  sectname __const

   segname __DATA

      addr 0x0000000001274258

      size 0x0000000000004ee8

    offset 19350104

     align 2^3 (8)

    reloff 0

    nreloc 0

     flags 0x00000000

 reserved1 0

 reserved2 0

Section

  sectname __data

   segname __DATA

      addr 0x0000000001279140

      size 0x000000000000deec

    offset 19370304

     align 2^3 (8)

    reloff 0

    nreloc 0

     flags 0x00000000

 reserved1 0

 reserved2 0

Section

  sectname __bss

   segname __DATA

      addr 0x0000000001287030

      size 0x0000000000002a50

    offset 0

     align 2^3 (8)

    reloff 0

    nreloc 0

     flags 0x00000001

 reserved1 0

 reserved2 0

Section

  sectname __common

   segname __DATA

      addr 0x0000000001289a80

      size 0x000000000000001d

    offset 0

     align 2^3 (8)

    reloff 0

    nreloc 0

     flags 0x00000001

 reserved1 0

 reserved2 0

Load command 2

      cmd LC_SEGMENT_64

  cmdsize 72

  segname __LINKEDIT

   vmaddr 0x000000000128c000

   vmsize 0x0000000000190000

  fileoff 19431424

 filesize 1637888

  maxprot 0x00000001

 initprot 0x00000001

   nsects 0

    flags 0x0

Load command 3

          cmd LC_ID_DYLIB

      cmdsize 80

         name /opt/homebrew/opt/openblas/lib/libopenblas.0.dylib (offset 24)

   time stamp 1 Thu Jan  1 01:00:01 1970

      current version 0.0.0

compatibility version 0.0.0

Load command 4

            cmd LC_DYLD_INFO_ONLY

        cmdsize 48

     rebase_off 19431424

    rebase_size 312

       bind_off 19431736

      bind_size 40

  weak_bind_off 0

 weak_bind_size 0

  lazy_bind_off 19431776

 lazy_bind_size 1240

     export_off 19433016

    export_size 78640

Load command 5

     cmd LC_SYMTAB

 cmdsize 24

  symoff 19584856

   nsyms 59149

  stroff 20531816

 strsize 255128

Load command 6

            cmd LC_DYSYMTAB

        cmdsize 80

      ilocalsym 0

      nlocalsym 54173

     iextdefsym 54173

     nextdefsym 4903

      iundefsym 59076

      nundefsym 73

         tocoff 0

           ntoc 0

      modtaboff 0

        nmodtab 0

   extrefsymoff 0

    nextrefsyms 0

 indirectsymoff 20531240

  nindirectsyms 144

      extreloff 0

        nextrel 0

      locreloff 0

        nlocrel 0

Load command 7

     cmd LC_UUID

 cmdsize 24

    uuid 46618C7C-6835-37F7-9894-1F06985D4A9C

Load command 8

      cmd LC_BUILD_VERSION

  cmdsize 32

 platform 1

    minos 10.8

      sdk 11.0

   ntools 1

     tool 3

  version 711.0

Load command 9

      cmd LC_SOURCE_VERSION

  cmdsize 16

  version 0.0

Load command 10

          cmd LC_LOAD_DYLIB

      cmdsize 80

         name /opt/homebrew/opt/gcc/lib/gcc/11/libgfortran.5.dylib (offset 24)

   time stamp 2 Thu Jan  1 01:00:02 1970

      current version 6.0.0

compatibility version 6.0.0

Load command 11

          cmd LC_LOAD_DYLIB

      cmdsize 80

         name /opt/homebrew/opt/gcc/lib/gcc/11/libgomp.1.dylib (offset 24)

   time stamp 2 Thu Jan  1 01:00:02 1970

      current version 2.0.0

compatibility version 2.0.0

Load command 12

          cmd LC_LOAD_DYLIB

      cmdsize 56

         name /usr/lib/libSystem.B.dylib (offset 24)

   time stamp 2 Thu Jan  1 01:00:02 1970

      current version 1292.100.5

compatibility version 1.0.0

Load command 13

          cmd LC_LOAD_DYLIB

      cmdsize 80

         name /opt/homebrew/opt/gcc/lib/gcc/11/libgcc_s.1.1.dylib (offset 24)

   time stamp 2 Thu Jan  1 01:00:02 1970

      current version 1.1.0

compatibility version 1.0.0

Load command 14

          cmd LC_RPATH

      cmdsize 32

         path @loader_path (offset 12)

Load command 15

          cmd LC_RPATH

      cmdsize 96

         path /opt/homebrew/Cellar/gcc/11.2.0_3/bin/../lib/gcc/11/gcc/aarch64-apple-darwin20/11 (offset 12)

Load command 16

          cmd LC_RPATH

      cmdsize 72

         path /opt/homebrew/Cellar/gcc/11.2.0_3/bin/../lib/gcc/11/gcc (offset 12)

Load command 17

          cmd LC_RPATH

      cmdsize 104

         path /opt/homebrew/Cellar/gcc/11.2.0_3/bin/../lib/gcc/11/gcc/aarch64-apple-darwin20/11/../../.. (offset 12)

Load command 18

          cmd LC_RPATH

      cmdsize 32

         path @loader_path (offset 12)

Load command 19

      cmd LC_FUNCTION_STARTS

  cmdsize 16

  dataoff 19511656

 datasize 73200

Load command 20

      cmd LC_DATA_IN_CODE

  cmdsize 16

  dataoff 19584856

 datasize 0

Load command 21

      cmd LC_CODE_SIGNATURE

  cmdsize 16

  dataoff 20786944

 datasize 282368

/opt/homebrew/opt/openblas/lib/libopenblas.0.dylib (compatibility version 0.0.0, current version 0.0.0)

/opt/homebrew/opt/gcc/lib/gcc/11/libgfortran.5.dylib (compatibility version 6.0.0, current version 6.0.0)

/opt/homebrew/opt/gcc/lib/gcc/11/libgomp.1.dylib (compatibility version 2.0.0, current version 2.0.0)

/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.100.5)

/opt/homebrew/opt/gcc/lib/gcc/11/libgcc_s.1.1.dylib (compatibility version 1.0.0, current version 1.1.0)

$ 


Matthias Köppe

unread,
Jan 16, 2022, 11:32:40 PM1/16/22
to sage-release
Thanks. An earlier thread regarding M1 (https://groups.google.com/g/sage-devel/c/6LldEeJu3ZA/m/BpNMpD-yAAAJ) suggested that setting MACOSX_DEPLOYMENT_TARGET=11.2
would help with iml. Could you try this please?

Marc Culler

unread,
Jan 17, 2022, 4:13:38 PM1/17/22
to sage-release
While many things work in the binary macOS app for Arm CPU, I discovered by accident that the following produces a segfault:

sage: M = Manifold()

In fact, even trying to import manifold from sage.manifolds segfaults.  This does not happen on the Intel version of the app built from the same branch of the repository.

I have not been able to run a debugger on sage at all.  Of course cysignals cannot produce a backtrace on macOS.  With lldb -p I get an error saying that lldb is not allowed to attach to the process and referring me to non-existent messages in system.log for explanations.  Running the debugserver directly produces:
error: failed to attach process 6619: unable to start the exception thread

This occurs even if I run sage directly in the repo after the build finishes - it does not have anything to do with the app.  (And the debugger similarly refuses to attach to the process.)  I tried to run the debugger as root and I also tried adding debugger entitlements and resigning the app.  Neither make it possible for me to use lldb on sage itself.

I am able to start the sage python3 in lldb.  If I knew how to import the Manifold class from python I might be able to get somewhere.  But if I run
>>> from sage.manifolds import manifold
I get a python exception whose traceback ends with:
File "sage/structure/category_object.pyx", line 60, in init sage.structure.category_object (build/cythonized/sage/structure/category_object.c:9914)
ImportError: cannot import name Category

- Marc

On Saturday, January 15, 2022 at 4:30:08 PM UTC-6 Marc Culler wrote:
Hi Matthias,

I have posted binary releases for 9.5.rc1 on macOS with Intel or Arm CPUs at https://github.com/3-manifolds/Sage_macOS/releases/tag/v1.3-rc1.  There are two separate disk images.  You may recall that I do not use Homebrew or Conda, but I did have to use an experimental binary release of gfortran for M1 since I was not able to build the gfortran spkg.

- Marc

On Saturday, January 15, 2022 at 3:01:14 PM UTC-6 matthia...@gmail.com wrote:
Based on the runs on GH Actions, I have updated the summary of platform support in https://wiki.sagemath.org/ReleaseTours/sage-9.5#Sources

TL;DR: It's all good now on all platforms tested on GH Actions, including Cygwin.
But I would urge that 9.5 still merge the positively reviews tickets marked "critical"/"blocker", such as https://trac.sagemath.org/ticket/29285 (which fixes the build in the presence of pyenv).
Also note we have absolutely no automatic testing for the Apple Silicon (M1) platform. So it would be good if users/developers who have access to this platform test the release candidate.



Matthias Köppe

unread,
Jan 17, 2022, 4:18:05 PM1/17/22
to sage-release
Try "import sage.all" first.

Marc Culler

unread,
Jan 17, 2022, 5:35:37 PM1/17/22
to sage-release
I was able to get a bit further in python by running:

>>> from sage.structure import *

Then when I tried

>>> from sage.manifolds import manifold

I get an exception whose traceback ends with

AttributeError: module 'sage.structure' has no attribute 'sage_object'

This seems strange, since there is no exception when I run

>>> from sage.structure import sage_object
>>> dir(sage_object)
['LazyImport', 'SageObject', '__all__', '__builtins__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', '_base_dumps', '_base_save', '_interface_init_with_interface', 'dumps', 'load', 'loads', 'make_None', 'register_unpickle_override', 'save', 'unpickle_all', 'unpickle_global', 'unpickle_override']

But it seems consistent with:

>>> dir(sage.structure)
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'category_object', 'coerce', 'coerce_actions', 'coerce_dict', 'coerce_exceptions', 'coerce_maps', 'dynamic_class', 'element', 'parent', 'richcmp', 'sage', 'unique_representation']

I suppose there is some opaque monkey-patching going on.  So, I am not sure where to go next ...

- Marc

On Saturday, January 15, 2022 at 4:49:42 PM UTC-6 matthia...@gmail.com wrote:
Hi Marc,
Matthias

Marc Culler

unread,
Jan 17, 2022, 5:35:37 PM1/17/22
to sage-release
(lldb) r
Process 6983 launched: '/Users/culler/programs/Sage_macOS/Sage_framework/bigrepo/sage/venv/bin/python3.9' (arm64)
Python 3.9.9 (main, Jan 16 2022, 17:10:52)
[Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sage.all
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/culler/programs/Sage_macOS/Sage_framework/bigrepo/sage/venv/lib/python3.9/site-packages/sage/all.py", line 131, in <module>
    from sage.rings.all      import *
  File "/Users/culler/programs/Sage_macOS/Sage_framework/bigrepo/sage/venv/lib/python3.9/site-packages/sage/rings/all.py", line 87, in <module>
    from .qqbar import (AlgebraicRealField, AA,
  File "/Users/culler/programs/Sage_macOS/Sage_framework/bigrepo/sage/venv/lib/python3.9/site-packages/sage/rings/qqbar.py", line 2810, in <module>
    QQxy = QQ['x', 'y']
  File "sage/structure/parent.pyx", line 1276, in sage.structure.parent.Parent.__getitem__ (build/cythonized/sage/structure/parent.c:11409)
  File "/Users/culler/programs/Sage_macOS/Sage_framework/bigrepo/sage/venv/lib/python3.9/site-packages/sage/categories/rings.py", line 1177, in __getitem__
    return PolynomialRing(self, elts)
  File "/Users/culler/programs/Sage_macOS/Sage_framework/bigrepo/sage/venv/lib/python3.9/site-packages/sage/rings/polynomial/polynomial_ring_constructor.py", line 647, in PolynomialRing
    return _multi_variate(base_ring, names, **kwds)
  File "/Users/culler/programs/Sage_macOS/Sage_framework/bigrepo/sage/venv/lib/python3.9/site-packages/sage/rings/polynomial/polynomial_ring_constructor.py", line 775, in _multi_variate
    from sage.rings.polynomial.multi_polynomial_libsingular import MPolynomialRing_libsingular
  File "sage/rings/polynomial/multi_polynomial_libsingular.pyx", line 1, in init sage.rings.polynomial.multi_polynomial_libsingular (build/cythonized/sage/rings/polynomial/multi_polynomial_libsingular.cpp:50026)
  File "sage/libs/singular/singular.pyx", line 1558, in init sage.libs.singular.singular (build/cythonized/sage/libs/singular/singular.cpp:15752)
  File "sage/libs/singular/singular.pyx", line 1525, in sage.libs.singular.singular.init_libsingular (build/cythonized/sage/libs/singular/singular.cpp:12870)
  File "/Users/culler/programs/Sage_macOS/Sage_framework/bigrepo/sage/venv/lib/python3.9/posixpath.py", line 152, in dirname
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Marc Culler

unread,
Jan 17, 2022, 5:35:38 PM1/17/22
to sage-release
I get the same exception on both Intel and Arm when I try to import sage.all from the sage python.  There is no exception if I do the same import in sage -python.  But that is no help in terms of running lldb.  However, perhaps if I knew how to set up the correct environment first I would be able to start the sage python in lldb and then actually be able to do the import.

- Marc


On Monday, January 17, 2022 at 3:18:05 PM UTC-6 matthia...@gmail.com wrote:

Matthias Köppe

unread,
Jan 17, 2022, 6:35:01 PM1/17/22
to sage-release
Use "./sage -sh" and run python / the debugger from there?

Marc Culler

unread,
Jan 17, 2022, 9:37:20 PM1/17/22
to sage-r...@googlegroups.com
That worked like a charm!

  * frame #0: 0xffff83c0f9024900
    frame #1: 0x0000000153ff8b7c _dop.cpython-39-darwin.so`PyFortranObject_New + 40
    frame #2: 0x0000000153ff66fc _dop.cpython-39-darwin.so`PyInit__dop + 1020

And it turns out that this problem was independently reported by William Stein.  I used an external gfortran compiler installed in /usr/local to build this sage.  So I need to also embed the fortran runtime library into my Sage.framework and patch the load paths of all executable files that load it.  This would be a lot easier if someone could get the gfortran spkg to build on an M1 CPU.

Anyway, thanks!  I think I am on track to make this work now.

If anyone knows what dop stands for, I am all ears.

- Marc

--
You received this message because you are subscribed to a topic in the Google Groups "sage-release" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-release/8ctwsUGl6LQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-release...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-release/8124ca5a-7893-4f48-b3cc-af37c51d144cn%40googlegroups.com.

Matthias Köppe

unread,
Jan 17, 2022, 9:57:30 PM1/17/22
to sage-release
Yes, the fortran runtime is needed. I've opened https://trac.sagemath.org/ticket/33203 for this...

Samuel Lelievre

unread,
Mar 27, 2022, 12:28:37 PM3/27/22
to sage-release
Le mardi 18 janvier 2022 à 02:37:20 UTC, Marc Culler on sage-release:
That worked like a charm!

  * frame #0: 0xffff83c0f9024900
    frame #1: 0x0000000153ff8b7c _dop.cpython-39-darwin.so`PyFortranObject_New + 40
    frame #2: 0x0000000153ff66fc _dop.cpython-39-darwin.so`PyInit__dop + 1020

[...]

If anyone knows what dop stands for, I am all ears.

It seems "DOP" or "DOPRI" or "RKDP" stand for "Dormand & Prince"
or "Runge-Kutta-Dormand-Prince" and refer to a method, or family
of methods (of the Runge-Kutta family), devised  by these authors
for numerically solving ordinary differential equations.

See:

https://en.wikipedia.org/wiki/Dormand–Prince_method
In particular, the file "dop853.f", linked to above, states  "DOP853"
is "an explicit Runge-Kutta method of order 8(5,3) due to Dormand
& Prince (with stepsize control and dense output)".

These abbreviation seem common in the world of numerical methods
for solving ordinary differential equations but so far that meaning
of DOP is missing from the wikipedia disambiguation page

Reply all
Reply to author
Forward
0 new messages