building on fedora 44 (beta)

70 views
Skip to first unread message

Eric Majzoub

unread,
Mar 13, 2026, 8:33:24 PM (4 days ago) Mar 13
to sage-support
Just upgraded to fedora 44 beta which ships with gcc-16.0.1. Building Sage defaults to begin building gcc-14.2.0. Can updates be made so gcc 16.x.x is OK?
Thanks,

Dima Pasechnik

unread,
Mar 13, 2026, 10:33:10 PM (4 days ago) Mar 13
to sage-s...@googlegroups.com
yes, you can allow it yourself by changing
"[6-9]" to "[7-9]"
in
build/pkgs/gcc/spkg-configure.m4
line 168 and, similarity, in
build/pkgs/gfortran/spkg-configure.m4
line 89
(and run ./bootstrap after this)

Eric Majzoub

unread,
Mar 14, 2026, 10:11:06 AM (3 days ago) Mar 14
to sage-support
Thanks. With those changes Sage builds fine on Fedora 44 (beta). 

Dima Pasechnik

unread,
Mar 14, 2026, 12:17:41 PM (3 days ago) Mar 14
to sage-s...@googlegroups.com
Have you run tests?
Unless there are catastrophically many failures, we should allow gcc16...

Eric Majzoub

unread,
Mar 14, 2026, 6:37:05 PM (3 days ago) Mar 14
to sage-support
It finishes running the tests but doesn't say how many failed. Below is the last bit of output from (./sage -t --all).
ChatGPT tells me to grep for "Failed example:" which turns up doctest/*.py and a few other doctest/*.rst files.

-EM

----------------------------------------------------------------------
Total time for all tests: 6188.0 seconds
   cpu time: 5157.8 seconds
   cumulative wall time: 4838.1 seconds
Features detected for doctesting: bliss,conway_polynomials,coxeter3,cvxopt,database_cre
mona_mini_ellcurve,database_ellcurves,database_graphs,dvipng,fpylll,gfan,giac,graphviz,
imagemagick,info,jupyter_sphinx,lrcalc_python,meson_editable,mpmath,msolve,nauty,networ
kx,numpy,palp,pandoc,pdf2svg,pdftocairo,pexpect,pillow,plantri,polytopes_db,pplpy,prime
countpy,ptyprocess,pyparsing,rpy2,sage.combinat,sage.geometry.polyhedron,sage.graphs,sa
ge.groups,sage.libs.braiding,sage.libs.ecl,sage.libs.flint,sage.libs.gap,sage.libs.homf
ly,sage.libs.linbox,sage.libs.m4ri,sage.libs.ntl,sage.libs.pari,sage.libs.singular,sage
.misc.cython,sage.modular,sage.modules,sage.numerical.mip,sage.plot,sage.rings.complex_
double,sage.rings.finite_rings,sage.rings.function_field,sage.rings.number_field,sage.r
ings.padics,sage.rings.polynomial.pbori,sage.rings.real_double,sage.rings.real_mpfr,sag
e.schemes,sage.symbolic,scipy,singular,sphinx,sympy,topcom
Running pytest on ['/home/packages/SOURCE/sage/src/sage', '/home/packages/SOURCE/sage/s
rc/sage_setup', '/home/packages/SOURCE/sage/src/sage_docbuild', '/home/packages/SOURCE/
sage/src/doc'] with options []
/home/packages/SOURCE/sage/local/var/lib/sage/venv-python3.14/lib64/python3.14/site-pac
kages/anyio/from_thread.py:116: SyntaxWarning: 'return' in a 'finally' block
 return result
================================= test session starts =================================
platform linux -- Python 3.14.3, pytest-8.3.2, pluggy-1.5.0
rootdir: /home/packages/SOURCE/sage
configfile: pyproject.toml
plugins: anyio-4.4.0, mock-3.14.0, xdist-3.6.1, hypothesis-6.125.2
collected 94 items / 2 skipped                                                         

src/sage/all_test.py .                                                          [  1%]
src/sage/cli/eval_cmd_test.py ..                                                [  3%]
src/sage/cli/notebook_cmd_test.py .....                                         [  8%]
src/sage/cli/run_file_cmd_test.py ..                                            [ 10%]
src/sage/combinat/positive_integer_semigroup_test.py .                          [ 11%]
src/sage/config_test.py ..                                                      [ 13%]
src/sage/doctest/parsing_test.py ...........                                    [ 25%]
src/sage/graphs/generators/generators_test.py .                                 [ 26%]
src/sage/graphs/tests/is_projective_planar_test.py .                            [ 27%]
src/sage/libs/gap/gap_test.py ....                                              [ 31%]
src/sage/manifolds/differentiable/examples/symplectic_space_test.py ....        [ 36%]
src/sage/manifolds/differentiable/symplectic_form_test.py ..................... [ 58%]
..............                                                                  [ 73%]
src/sage/manifolds/differentiable/tensorfield_paral_test.py .                   [ 74%]
src/sage/numerical/backends/cvxopt_backend_test.py ..                           [ 76%]
src/sage/numerical/backends/glpk_backend_test.py ..                             [ 78%]
src/sage/numerical/backends/glpk_exact_backend_test.py ..                       [ 80%]
src/sage/numerical/backends/interactivelp_backend_test.py ..                    [ 82%]
src/sage/numerical/backends/ppl_backend_test.py ..                              [ 85%]
src/sage/rings/function_field/function_field_test.py ........                   [ 93%]
src/sage/rings/padics/padic_lattice_element_test.py ....                        [ 97%]
src/sage/rings/valuation/mapped_valuation_test.py ..                            [100%]

====================== 94 passed, 2 skipped in 274.40s (0:04:34) ======================

Dima Pasechnik

unread,
Mar 14, 2026, 9:50:57 PM (3 days ago) Mar 14
to sage-s...@googlegroups.com
"make test" will report the errored tests, and totals.

( better, "make -jX test",  where one should replace X with the number of cores to be used)

Dima Pasechnik

unread,
Mar 15, 2026, 2:48:37 PM (2 days ago) Mar 15
to sage-support
this PR allows gcc/gfortran 16 from the system to be used

Eric Majzoub

unread,
Mar 16, 2026, 12:23:06 PM (yesterday) Mar 16
to sage-support
Here is the output of "make -j10 test":

Total time for all tests: 30929.7 seconds
    cpu time: 2725.6 seconds
    cumulative wall time: 2403.8 seconds

Features detected for doctesting: bliss,conway_polynomials,coxeter3,cvxopt,database_cremona_mini_ellcurve,database_ellcurves,database_graphs,dvipng,fpylll,gfan,giac,graphviz,imagemagick,info,jupyter_sphinx,lrcalc_python,meson_editable,mpmath,msolve,nauty,networkx,numpy,palp,pandoc,pdf2svg,pdftocairo,pexpect,pillow,plantri,polytopes_db,pplpy,primecountpy,ptyprocess,pyparsing,rpy2,sage.combinat,sage.geometry.polyhedron,sage.graphs,sage.groups,sage.libs.braiding,sage.libs.ecl,sage.libs.flint,sage.libs.gap,sage.libs.homfly,sage.libs.linbox,sage.libs.m4ri,sage.libs.ntl,sage.libs.pari,sage.libs.singular,sage.misc.cython,sage.modular,sage.modules,sage.numerical.mip,sage.plot,sage.rings.complex_double,sage.rings.finite_rings,sage.rings.function_field,sage.rings.number_field,sage.rings.padics,sage.rings.polynomial.pbori,sage.rings.real_double,sage.rings.real_mpfr,sage.schemes,sage.symbolic,scipy,singular,sphinx,sympy,topcom
Running pytest on ['/home/packages/SOURCE/sage/src/sage', '/home/packages/SOURCE/sage/src/sage_setup', '/home/packages/SOURCE/sage/src/sage_docbuild', '/home/packages/SOURCE/sage/src/doc'] with options []
====================== 94 passed, 2 skipped in 294.25s (0:04:54) ======================
make[1]: Entering directory '/home/packages/SOURCE/sage'
./tools/test-git-no-uncommitted-changes
Error: the git repo has uncommitted changes:
 M build/pkgs/gcc/spkg-configure.m4
 M build/pkgs/gfortran/spkg-configure.m4

make[1]: *** [Makefile:258: test-git-no-uncommitted-changes] Error 1
make[1]: Leaving directory '/home/packages/SOURCE/sage'
make: *** [Makefile:262: test] Error 2

Dima Pasechnik

unread,
Mar 16, 2026, 2:28:50 PM (yesterday) Mar 16
to sage-s...@googlegroups.com
looks like you might have cut an interesting portion of the log just
above "Total time for all tests" line.

In logs/test.log you have a lot of per file entries like

src/bin/sage -t --warn-long 5.0
--random-seed=67728412029834953379478094877490040954
src/doc/en/thematic_tutorials/vector_calculus/vector_calc_advanced.rst
[106 tests, 14.21s wall]


followed by a list of broken tests, e.g.
----------------------------------------------------------------------
src/bin/sage -t --warn-long 5.0
--random-seed=67728412029834953379478094877490040954 src/sage/env.py
# 1 doctest failed
src/bin/sage -t --warn-long 5.0
--random-seed=67728412029834953379478094877490040954
src/sage/misc/superseded.py # 2 doctests failed
src/bin/sage -t --warn-long 5.0
--random-seed=67728412029834953379478094877490040954
src/sage/misc/cython.py # 11 doctests failed
...
-----------------------------------------------------------------------
Total time for all tests: 8740.2 seconds
cpu time: 7274.9 seconds
cumulative wall time: 7224.7 seconds
Features detected for doctesting: 4ti2,....
> --
> 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/90b672fd-ee69-4f3d-aa4a-4178a8dfc23dn%40googlegroups.com.

Eric Majzoub

unread,
Mar 16, 2026, 3:05:51 PM (yesterday) Mar 16
to sage-support
OK. I have attached the log file...
test.log
Reply all
Reply to author
Forward
0 new messages