sage -t src/sage/graphs/connectivity.pyx
**********************************************************************
File "src/sage/graphs/connectivity.pyx", line 2671, in sage.graphs.connectivity._Component.__init__
Failed example:
cython(os.linesep.join(cython_code))
Exception raised:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/unixccompiler.py", line 118, in _compile
extra_postargs)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/ccompiler.py", line 910, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/spawn.py", line 159, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/dcoudert/sage/local/lib/python3.7/site-packages/sage/misc/cython.py", line 371, in cython
dist.run_command("build")
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
depends=ext.depends)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/unixccompiler.py", line 120, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/dcoudert/sage/local/lib/python3.7/site-packages/sage/doctest/forker.py", line 707, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/Users/dcoudert/sage/local/lib/python3.7/site-packages/sage/doctest/forker.py", line 1131, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.graphs.connectivity._Component.__init__[1]>", line 1, in <module>
cython(os.linesep.join(cython_code))
File "sage/misc/lazy_import.pyx", line 353, in sage.misc.lazy_import.LazyImport.__call__ (build/cythonized/sage/misc/lazy_import.c:3678)
return self.get_object()(*args, **kwds)
File "/Users/dcoudert/sage/local/lib/python3.7/site-packages/sage/misc/cython.py", line 633, in cython_compile
return cython_import_all(tmpfile, get_globals(), **kwds)
File "/Users/dcoudert/sage/local/lib/python3.7/site-packages/sage/misc/cython.py", line 523, in cython_import_all
m = cython_import(filename, **kwds)
File "/Users/dcoudert/sage/local/lib/python3.7/site-packages/sage/misc/cython.py", line 498, in cython_import
name, build_dir = cython(filename, **kwds)
File "/Users/dcoudert/sage/local/lib/python3.7/site-packages/sage/misc/cython.py", line 377, in cython
raise RuntimeError(msg.strip())
RuntimeError: command 'gcc' failed with exit status 1
/Users/dcoudert/.sage/temp/confetti/48577/spyx/_Users_dcoudert__sage_temp_confetti_48577_tmp_ykh145ge_pyx/_Users_dcoudert__sage_temp_confetti_48577_tmp_ykh145ge_pyx_0.c:632:10: fatal error: 'gmp.h' file not found
#include "gmp.h"
^~~~~~~
1 error generated.
**********************************************************************
File "src/sage/graphs/connectivity.pyx", line 2718, in sage.graphs.connectivity._Component.__str__
Failed example:
cython(os.linesep.join(cython_code))
Exception raised:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/unixccompiler.py", line 118, in _compile
extra_postargs)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/ccompiler.py", line 910, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/spawn.py", line 159, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/dcoudert/sage/local/lib/python3.7/site-packages/sage/misc/cython.py", line 371, in cython
dist.run_command("build")
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
depends=ext.depends)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/unixccompiler.py", line 120, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/dcoudert/sage/local/lib/python3.7/site-packages/sage/doctest/forker.py", line 707, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/Users/dcoudert/sage/local/lib/python3.7/site-packages/sage/doctest/forker.py", line 1131, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.graphs.connectivity._Component.__str__[1]>", line 1, in <module>
cython(os.linesep.join(cython_code))
File "sage/misc/lazy_import.pyx", line 353, in sage.misc.lazy_import.LazyImport.__call__ (build/cythonized/sage/misc/lazy_import.c:3678)
return self.get_object()(*args, **kwds)
File "/Users/dcoudert/sage/local/lib/python3.7/site-packages/sage/misc/cython.py", line 633, in cython_compile
return cython_import_all(tmpfile, get_globals(), **kwds)
File "/Users/dcoudert/sage/local/lib/python3.7/site-packages/sage/misc/cython.py", line 523, in cython_import_all
m = cython_import(filename, **kwds)
File "/Users/dcoudert/sage/local/lib/python3.7/site-packages/sage/misc/cython.py", line 498, in cython_import
name, build_dir = cython(filename, **kwds)
File "/Users/dcoudert/sage/local/lib/python3.7/site-packages/sage/misc/cython.py", line 377, in cython
raise RuntimeError(msg.strip())
RuntimeError: command 'gcc' failed with exit status 1
/Users/dcoudert/.sage/temp/confetti/48577/spyx/_Users_dcoudert__sage_temp_confetti_48577_tmp_h0bea_yb_pyx/_Users_dcoudert__sage_temp_confetti_48577_tmp_h0bea_yb_pyx_0.c:632:10: fatal error: 'gmp.h' file not found
#include "gmp.h"
^~~~~~~
1 error generated.
2) With this working 9.2.beta3, I found 2 doctests errors in sage/graphs/connectivity.pyx (see below).I can reproduce the errors inside the sage console.Then I realized that I forgot to "source .homebrew-build-env" before "make build".So I "source .homebrew-build-env" and now all tests pass (without extra "make build").