On Sun, Jul 5, 2020 at 10:33 AM David Coudert <david.coud...@inria.fr> wrote:
>
> Hello,
>
> 1) To be able to compile the documentation of 9.2.beta2, I had to "export 
> LANG=C.UTF-8 "
> See discussion here 
> https://groups.google.com/forum/#!topic/sage-release/7wBxNRbJaaU
>
> But after "git pull" on develop branch to get 9.2.beta3, "make" fails quickly.
> It indicates that language related variables were not properly sets.
> So I started a new shell without  "export LANG=C.UTF-8 " and was able to 
> complete "make build".
> However, I'm unable to compile documentation. To compile it, I certainly need 
> to "export LANG=C.UTF-8" as for 9.2.beta2.
>
> I don't know how to get something consistent here.

we have https://trac.sagemath.org/ticket/30002 - positively reviewed,
but not yet in beta, I suppose.
I suppose that with it in it will all work.

>
>
> 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").
>
>
> Let's hope we can fix these issues in a forthcoming release.
>
> Best,
> David.
>
>
> 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.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/46a7de60-7640-4aa1-b558-c50e74953cf4o%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq0t7G7bN3x0OUKzkQTqwPs4sNKD28%3DU0rGxaZgot8B-xA%40mail.gmail.com.

Reply via email to