On Mon, 16 Oct 2023, 14:04 Emmanuel Charpentier, <
[email protected]> wrote:

> Nope...
>
> `make cython` succeeds. Bit `make build fails :
>

oops, sorry, you need to clean sagelib first.

make sagelib-clean sagelib-uninstall



> ```
> [sagelib-10.2.beta7]     [85/85] Cythonizing sage/symbolic/expression.pyx
> [sagelib-10.2.beta7]     multiprocessing.pool.RemoteTraceback:
> [sagelib-10.2.beta7]     """
> [sagelib-10.2.beta7]     Traceback (most recent call last):
> [sagelib-10.2.beta7]       File
> "/usr/lib/python3.11/multiprocessing/pool.py", line 125, in worker
> [sagelib-10.2.beta7]         result = (True, func(*args, **kwds))
> [sagelib-10.2.beta7]                         ^^^^^^^^^^^^^^^^^^^
> [sagelib-10.2.beta7]       File
> "/usr/lib/python3.11/multiprocessing/pool.py", line 48, in mapstar
> [sagelib-10.2.beta7]         return list(map(*args))
> [sagelib-10.2.beta7]                ^^^^^^^^^^^^^^^^
> [sagelib-10.2.beta7]       File
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.11/lib/python3.11/site-packages/Cython/Build/Dependencies.py",
> line 1325, in cythonize_one_helper
> [sagelib-10.2.beta7]         return cythonize_one(*m)
> [sagelib-10.2.beta7]                ^^^^^^^^^^^^^^^^^
> [sagelib-10.2.beta7]       File
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.11/lib/python3.11/site-packages/Cython/Build/Dependencies.py",
> line 1301, in cythonize_one
> [sagelib-10.2.beta7]         raise CompileError(None, pyx_file)
> [sagelib-10.2.beta7]     Cython.Compiler.Errors.CompileError:
> sage/combinat/combinat_cython.pyx
> [sagelib-10.2.beta7]     """
> [sagelib-10.2.beta7]
> [sagelib-10.2.beta7]     The above exception was the direct cause of the
> following exception:
> [sagelib-10.2.beta7]
> [sagelib-10.2.beta7]     Traceback (most recent call last):
> [sagelib-10.2.beta7]       File "<string>", line 2, in <module>
> [sagelib-10.2.beta7]       File "<pip-setuptools-caller>", line 34, in
> <module>
> [sagelib-10.2.beta7]       File "/usr/local/sage-10/src/setup.py", line
> 108, in <module>
> [sagelib-10.2.beta7]         extensions = cythonize(
> [sagelib-10.2.beta7]                      ^^^^^^^^^^
> [sagelib-10.2.beta7]       File
> "/usr/local/sage-10/local/var/lib/sage/venv-python3.11/lib/python3.11/site-packages/Cython/Build/Dependencies.py",
> line 1125, in cythonize
> [sagelib-10.2.beta7]         result.get(99999)  # seconds
> [sagelib-10.2.beta7]         ^^^^^^^^^^^^^^^^^
> [sagelib-10.2.beta7]       File
> "/usr/lib/python3.11/multiprocessing/pool.py", line 774, in get
> [sagelib-10.2.beta7]         raise self._value
> [sagelib-10.2.beta7]     Cython.Compiler.Errors.CompileError:
> sage/combinat/combinat_cython.pyx
> [sagelib-10.2.beta7]
> ************************************************************************
> [sagelib-10.2.beta7]     Error building the Sage library
> [sagelib-10.2.beta7]
> ************************************************************************
> [sagelib-10.2.beta7]     Please email sage-devel (
> http://groups.google.com/group/sage-devel)
> [sagelib-10.2.beta7]     explaining the problem and including the relevant
> part of the log file
> [sagelib-10.2.beta7]
> /usr/local/sage-10/logs/pkgs/sagelib-10.2.beta7.log
> [sagelib-10.2.beta7]     Describe your computer, operating system, etc.
> [sagelib-10.2.beta7]
> ************************************************************************
> [sagelib-10.2.beta7]     error: subprocess-exited-with-error
> [sagelib-10.2.beta7]
> [sagelib-10.2.beta7]     × python setup.py develop did not run
> successfully.
> [sagelib-10.2.beta7]     │ exit code: 1
> [sagelib-10.2.beta7]     ╰─> See above for output.
> [sagelib-10.2.beta7]
> [sagelib-10.2.beta7]     note: This error originates from a subprocess,
> and is likely not a problem with pip.
> [sagelib-10.2.beta7]     full command:
> /usr/local/sage-10/local/var/lib/sage/venv-python3.11/bin/python3 -c '
> [sagelib-10.2.beta7]     exec(compile('"'"''"'"''"'"'
> [sagelib-10.2.beta7]     # This is <pip-setuptools-caller> -- a caller
> that pip uses to run setup.py
> [sagelib-10.2.beta7]     #
> [sagelib-10.2.beta7]     # - It imports setuptools before invoking
> setup.py, to enable projects that directly
> [sagelib-10.2.beta7]     #   import from `distutils.core` to work with
> newer packaging standards.
> [sagelib-10.2.beta7]     # - It provides a clear error message when
> setuptools is not installed.
> [sagelib-10.2.beta7]     # - It sets `sys.argv[0]` to the underlying
> `setup.py`, when invoking `setup.py` so
> [sagelib-10.2.beta7]     #   setuptools doesn'"'"'t think the script is
> `-c`. This avoids the following warning:
> [sagelib-10.2.beta7]     #     manifest_maker: standard file '"'"'-c'"'"'
> not found".
> [sagelib-10.2.beta7]     # - It generates a shim setup.py, for handling
> setup.cfg-only projects.
> [sagelib-10.2.beta7]     import os, sys, tokenize
> [sagelib-10.2.beta7]
> [sagelib-10.2.beta7]     try:
> [sagelib-10.2.beta7]         import setuptools
> [sagelib-10.2.beta7]     except ImportError as error:
> [sagelib-10.2.beta7]         print(
> [sagelib-10.2.beta7]             "ERROR: Can not execute `setup.py` since
> setuptools is not available in "
> [sagelib-10.2.beta7]             "the build environment.",
> [sagelib-10.2.beta7]             file=sys.stderr,
> [sagelib-10.2.beta7]         )
> [sagelib-10.2.beta7]         sys.exit(1)
> [sagelib-10.2.beta7]
> [sagelib-10.2.beta7]     __file__ = %r
> [sagelib-10.2.beta7]     sys.argv[0] = __file__
> [sagelib-10.2.beta7]
> [sagelib-10.2.beta7]     if os.path.exists(__file__):
> [sagelib-10.2.beta7]         filename = __file__
> [sagelib-10.2.beta7]         with tokenize.open(__file__) as f:
> [sagelib-10.2.beta7]             setup_py_code = f.read()
> [sagelib-10.2.beta7]     else:
> [sagelib-10.2.beta7]         filename = "<auto-generated setuptools
> caller>"
> [sagelib-10.2.beta7]         setup_py_code = "from setuptools import
> setup; setup()"
> [sagelib-10.2.beta7]
> [sagelib-10.2.beta7]     exec(compile(setup_py_code, filename, "exec"))
> [sagelib-10.2.beta7]     '"'"''"'"''"'"' %
> ('"'"'/usr/local/sage-10/src/setup.py'"'"',), "<pip-setuptools-caller>",
> "exec"))' --no-user-cfg develop --no-deps
> [sagelib-10.2.beta7]     cwd: /usr/local/sage-10/src/
> [sagelib-10.2.beta7]   Rolling back uninstall of sagemath-standard
> [sagelib-10.2.beta7]   Moving to
> /usr/local/sage-10/local/var/lib/sage/venv-python3.11/lib/python3.11/site-packages/sagemath-standard.egg-link
> [sagelib-10.2.beta7]    from
> /tmp/pip-uninstall-8mtj1z6r/sagemath-standard.egg-link
> [sagelib-10.2.beta7] error: subprocess-exited-with-error
> [sagelib-10.2.beta7]
> [sagelib-10.2.beta7] × python setup.py develop did not run successfully.
> [sagelib-10.2.beta7] │ exit code: 1
> [sagelib-10.2.beta7] ╰─> See above for output.
> [sagelib-10.2.beta7]
> [sagelib-10.2.beta7] note: This error originates from a subprocess, and is
> likely not a problem with pip.
> [sagelib-10.2.beta7]
> ********************************************************************************
> [sagelib-10.2.beta7] Error installing
> [sagelib-10.2.beta7]
> ********************************************************************************
> [sagelib-10.2.beta7]
> [sagelib-10.2.beta7] real 0m51,149s
> [sagelib-10.2.beta7] user 2m36,755s
> [sagelib-10.2.beta7] sys 0m8,185s
> make[4]: *** [Makefile:3373 : sagelib-SAGE_VENV-no-deps] Erreur 1
> make[3]: *** [Makefile:3373 :
> /usr/local/sage-10/local/var/lib/sage/venv-python3.11/var/lib/sage/installed/sagelib-10.2.beta7]
> Erreur 2
> make[2]: *** [Makefile:2849 : all-build] Erreur 2
> make[2] : on quitte le répertoire « /usr/local/sage-10/build/make »
>
> real 0m51,674s
> user 2m39,788s
> sys 0m11,577s
> ***************************************************************
> Error building Sage.
>
> The following package(s) may have failed to build (not necessarily
> during this run of 'make all-build'):
>
> * package:         sagelib-10.2.beta7
>   last build time: 16 oct. 15:01
>   log file:        /usr/local/sage-10/logs/pkgs/sagelib-10.2.beta7.log
>
> It is safe to delete any log files and build directories, but they
> contain information that is helpful for debugging build problems.
> WARNING: If you now run 'make' again, the build directory of the
> same version of the package will, by default, be deleted. Set the
> environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.
>
> make[1]: *** [Makefile:40 : all-build] Erreur 1
> make[1] : on quitte le répertoire « /usr/local/sage-10 »
> make: *** [Makefile:16 : build] Erreur 2
>
> real 0m52,809s
> user 2m41,021s
> sys 0m12,733s
> ```
>
> Hints ?
>
>
> Le lundi 16 octobre 2023 à 10:37:35 UTC+2, Dima Pasechnik a écrit :
>
>> On Mon, Oct 16, 2023 at 09:16:46AM +0200, [email protected] wrote:
>> > More examination of the `install.log` file shows a raft of Cython
>> errors. `install.log` (compressed) enclosed.
>> I think this shows that certain patch for Cython 3.0.2 (Cython PR #5690)
>> must have been included.
>> E.g. it's in the branch of https://github.com/sagemath/sage/pull/36332,
>> the file build/pkgs/cython/patches/5690.patch there
>>
>> So you can do
>>
>> git pull <...> pull/36332/head
>>
>> (where <...> should be the remote name of main Sagemath git repo, often
>> called origin, or upstream)
>> to install it, and then run
>>
>> make cython
>>
>> followed by
>>
>> make build
>>
>>
>>
>> Dima
>>
>> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-release/26384ee2-c77e-4b3f-a5ba-a228f30972c9n%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-release/26384ee2-c77e-4b3f-a5ba-a228f30972c9n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-release/CAAWYfq2eve3YxW3HfHF1thvC%2BY1a0QESxiMZKHY4tu8yQtN6rg%40mail.gmail.com.

Reply via email to