Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79228 - [grpc] FTBFS

Attached to Project: Arch Linux
Opened by Xeonacid (Xeonacid) - Friday, 28 July 2023, 08:36 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Saturday, 29 July 2023, 08:58 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Massimiliano Torromeo (mtorromeo)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Error compiling Cython file:
------------------------------------------------------------
...
return 1
else:
return 0

cdef grpc_arg_pointer_vtable default_vtable
default_vtable.copy = &_copy_pointer
^
------------------------------------------------------------

src/python/grpcio/grpc/_cython/_cygrpc/vtable.pyx.pxi:34:22: Cannot assign type 'void *(*)(void *) except *' to 'void *(*)(void *) noexcept'

Error compiling Cython file:
------------------------------------------------------------
...
else:
return 0

cdef grpc_arg_pointer_vtable default_vtable
default_vtable.copy = &_copy_pointer
default_vtable.destroy = &_destroy_pointer
^
------------------------------------------------------------

src/python/grpcio/grpc/_cython/_cygrpc/vtable.pyx.pxi:35:25: Cannot assign type 'void (*)(void *) except *' to 'void (*)(void *) noexcept'

Error compiling Cython file:
------------------------------------------------------------
...
return 0

cdef grpc_arg_pointer_vtable default_vtable
default_vtable.copy = &_copy_pointer
default_vtable.destroy = &_destroy_pointer
default_vtable.cmp = &_compare_pointer
^
------------------------------------------------------------

src/python/grpcio/grpc/_cython/_cygrpc/vtable.pyx.pxi:36:21: Cannot assign type 'int (*)(void *, void *) except? -1' to 'int (*)(void *, void *) noexcept'

Error compiling Cython file:
------------------------------------------------------------
...
cdef grpc_ssl_server_credentials_options* c_options = NULL
c_options = grpc_ssl_server_credentials_create_options_using_config_fetcher(
GRPC_SSL_REQUEST_AND_REQUIRE_CLIENT_CERTIFICATE_AND_VERIFY
if force_client_auth else
GRPC_SSL_DONT_REQUEST_CLIENT_CERTIFICATE,
_server_cert_config_fetcher_wrapper,
^
------------------------------------------------------------

src/python/grpcio/grpc/_cython/_cygrpc/credentials.pyx.pxi:310:4: Cannot assign type 'grpc_ssl_certificate_config_reload_status (void *, grpc_ssl_server_certificate_config **) except * nogil' to 'grpc_ssl_server_certificate_config_callback'

Error compiling Cython file:
------------------------------------------------------------
...


cdef class CallbackWrapper:

def __cinit__(self, object future, object loop, CallbackFailureHandler failure_handler):
self.context.functor.functor_run = self.functor_run
^
------------------------------------------------------------

src/python/grpcio/grpc/_cython/_cygrpc/aio/callback_common.pyx.pxi:36:47: Cannot assign type 'void (grpc_completion_queue_functor *, int) except *' to 'void (*)(grpc_completion_queue_functor *, int) noexcept'
Compiling src/python/grpcio/grpc/_cython/cygrpc.pyx because it changed.
[1/1] Cythonizing src/python/grpcio/grpc/_cython/cygrpc.pyx
Traceback (most recent call last):
File "/build/grpc/src/grpc-1.56.2/setup.py", line 486, in <module>
CYTHON_EXTENSION_MODULES, need_cython = cython_extensions_and_necessity()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build/grpc/src/grpc-1.56.2/setup.py", line 481, in cython_extensions_and_necessity
return commands.try_cythonize(extensions,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build/grpc/src/grpc-1.56.2/src/python/grpcio/commands.py", line 191, in try_cythonize
return Cython.Build.cythonize(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
cythonize_one(*args)
File "/usr/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: src/python/grpcio/grpc/_cython/cygrpc.pyx
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/xeonacid/build

A full log is in attachment.

Steps to reproduce: extra-x86_64-build
This task depends upon

Closed by  Massimiliano Torromeo (mtorromeo)
Saturday, 29 July 2023, 08:58 GMT
Reason for closing:  Fixed
Additional comments about closing:  grpc-1.56.2-2
Comment by loqs (loqs) - Friday, 28 July 2023, 13:43 GMT
Please try replacing cython with cython0 in makedepends as grpc does not support cython 3 [1].
Edit:
Same issue with urh [2], sagemath [3], libimobiledevice [4], memray [5], vapoursynth [6] and python-cuda [7].
jack_mixer python-basemap rdma-core vidcutter

[1] https://github.com/grpc/grpc/pull/33738
[2] https://github.com/jopohl/urh/pull/1063
[3] https://github.com/sagemath/sage/issues/29863
[4] https://github.com/libimobiledevice/libimobiledevice/issues/1474
[5] https://github.com/bloomberg/memray/commit/e7ccddacb1d0464e91641ab7119a1e20b590c1a6
[6] https://github.com/vapoursynth/vapoursynth/commit/81358bce15d8fbc1bcfa77d8632e8063d6f01c0a
[7] https://github.com/NVIDIA/cuda-python/issues/44

Loading...