After using `./configure --disable-sage_conf` and running `make testlong`, I see the same failures as reported with earlier versions. I've opened issues #40869 (for the ninja warning message, which we should be able to suppress when doctesting) and #40873 for the other problem, which seems to be related to using homebrew's Singular. I see a few new failures:
**********************************************************************
File "src/sage/misc/package.py", line 280, in sage.misc.package.pkg_sources
Failed example:
sage_conf_info.is_installed()
Expected:
True
Got:
False
**********************************************************************
and different failures in sage/env.py:
**********************************************************************
File "src/sage/env.py", line 22, in sage.env
Failed example:
out = check_output([sys.executable, "-c", cmd], env=env).decode().strip() # long time
Exception raised:
Traceback (most recent call last):
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/src/sage/doctest/forker.py", line 733, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/src/sage/doctest/forker.py", line 1157, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.env[8]>", line 1, in <module>
out = check_output([sys.executable, "-c", cmd], env=env).decode().strip() # long time
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/pyt...@3.13/3.13.7/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 472, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
**kwargs).stdout
^^^^^^^^^
File "/opt/homebrew/Cellar/pyt...@3.13/3.13.7/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 577, in run
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/bin/python3', '-c', "from sage.all import SAGE_ROOT, SAGE_LOCAL;from os.path import samefile;s1 = samefile(SAGE_ROOT, '/Users/palmieri/Sage/TESTING/sage-10.8.beta4');s2 = samefile(SAGE_LOCAL, '/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local');print(s1 and s2);"]' returned non-zero exit status 1.
**********************************************************************
File "src/sage/env.py", line 23, in sage.env
Failed example:
out == "True" # long time
Exception raised:
Traceback (most recent call last):
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/src/sage/doctest/forker.py", line 733, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/src/sage/doctest/forker.py", line 1157, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.env[9]>", line 1, in <module>
out == "True" # long time
^^^
NameError: name 'out' is not defined
**********************************************************************
File "src/sage/env.py", line 406, in sage.env.cython_aliases
Failed example:
cython( # optional - sage.misc.cython
'''
#distutils: extra_compile_args = OPENMP_CFLAGS
#distutils: extra_link_args = OPENMP_CFLAGS
from cython.parallel import prange
cdef int i
cdef int n = 30
cdef int sum = 0
for i in prange(n, num_threads=4, nogil=True):
sum += i
print(sum)
''')
Exception raised:
Traceback (most recent call last):
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/_distutils/spawn.py", line 87, in spawn
subprocess.check_call(cmd, env=_inject_macos_ver(env))
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/pyt...@3.13/3.13.7/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 419, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/gcc', '-fno-strict-overflow', '-Wsign-compare', '-Wunreachable-code', '-fno-common', '-dynamic', '-DNDEBUG', '-g', '-O3', '-Wall', '-I/Users/palmieri/Sage/TESTING/sage-10.8.beta4', '-I/Users/palmieri/Sage/TESTING/sage-10.8.beta4/src', '-I/Users/palmieri/Sage/TESTING/sage-10.8.beta4/build/sage-distro/src', '-I/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/include', '-I/opt/homebrew/opt/pyt...@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13', '-c', '/var/folders/z6/yjw_7s357yx3_mhh81__lplc0000gn/T/sage_pqs5osot/spyx_w_aj7dbn/_var_folders_z6_yjw_7s357yx3_mhh81__lplc0000gn_T_sage_pqs5osot_tmp_8u17pu64_pyx/_var_folders_z6_yjw_7s357yx3_mhh81__lplc0000gn_T_sage_pqs5osot_tmp_8u17pu64_pyx_0.c', '-o', '/var/folders/z6/yjw_7s357yx3_mhh81__lplc0000gn/T/sage_pqs5osot/spyx_w_aj7dbn/_var_folders_z6_yjw_7s357yx3_mhh81__lplc0000gn_T_sage_pqs5osot_tmp_8u17pu64_pyx/build/temp.macosx-15.0-arm64-cpython-313/var/folders/z6/yjw_7s357yx3_mhh81__lplc0000gn/T/sage_pqs5osot/spyx_w_aj7dbn/_var_folders_z6_yjw_7s357yx3_mhh81__lplc0000gn_T_sage_pqs5osot_tmp_8u17pu64_pyx/_var_folders_z6_yjw_7s357yx3_mhh81__lplc0000gn_T_sage_pqs5osot_tmp_8u17pu64_pyx_0.o', '-fopenmp', '-w']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/_distutils/compilers/C/unix.py", line 221, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/_distutils/compilers/C/base.py", line 1158, in spawn
spawn(cmd, dry_run=self.dry_run, **kwargs)
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/_distutils/spawn.py", line 93, in spawn
raise DistutilsExecError(
f"command {_debug(cmd)!r} failed with exit code {err.returncode}"
) from err
distutils.errors.DistutilsExecError: command '/usr/bin/gcc' failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/src/sage/misc/cython.py", line 461, in cython
dist.run_command("build")
~~~~~~~~~~~~~~~~^^^^^^^^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/dist.py", line 1102, in run_command
super().run_command(command)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
~~~~~~~~~~~^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/_distutils/cmd.py", line 357, in run_command
self.distribution.run_command(command)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/dist.py", line 1102, in run_command
super().run_command(command)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
~~~~~~~~~~~^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/command/build_ext.py", line 96, in run
_build_ext.run(self)
~~~~~~~~~~~~~~^^^^^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/_distutils/command/build_ext.py", line 368, in run
self.build_extensions()
~~~~~~~~~~~~~~~~~~~~~^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/_distutils/command/build_ext.py", line 484, in build_extensions
self._build_extensions_serial()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/_distutils/command/build_ext.py", line 510, in _build_extensions_serial
self.build_extension(ext)
~~~~~~~~~~~~~~~~~~~~^^^^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/command/build_ext.py", line 261, in build_extension
_build_ext.build_extension(self, ext)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/Cython/Distutils/build_ext.py", line 136, in build_extension
super().build_extension(ext)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/_distutils/command/build_ext.py", line 565, in build_extension
objects = self.compiler.compile(
sources,
...<5 lines>...
depends=ext.depends,
)
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/_distutils/compilers/C/base.py", line 655, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/_distutils/compilers/C/unix.py", line 223, in _compile
raise CompileError(msg)
distutils.compilers.C.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/src/sage/doctest/forker.py", line 733, in _run
self.compile_and_execute(example, compiler, test.globs)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/src/sage/doctest/forker.py", line 1157, in compile_and_execute
exec(compiled, globs)
~~~~^^^^^^^^^^^^^^^^^
File "<doctest sage.env.cython_aliases[5]>", line 1, in <module>
cython( # optional - sage.misc.cython
~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'''
^^^
...<11 lines>...
print(sum)
^^^^^^^^^^
''')
^^^^
File "sage/misc/lazy_import.pyx", line 414, in sage.misc.lazy_import.LazyImport.__call__
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/src/sage/misc/cython.py", line 734, in cython_compile
return cython_import_all(tmpfile, get_globals(), **kwds)
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/src/sage/misc/cython.py", line 620, in cython_import_all
m = cython_import(filename, **kwds)
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/src/sage/misc/cython.py", line 588, in cython_import
name, build_dir = cython(filename, **kwds)
~~~~~~^^^^^^^^^^^^^^^^^^
File "/Users/palmieri/Sage/TESTING/sage-10.8.beta4/src/sage/misc/cython.py", line 467, in cython
raise RuntimeError(msg.strip())
RuntimeError: command '/usr/bin/gcc' failed with exit code 1
clang: error: unsupported option '-fopenmp'
**********************************************************************