[MacPorts] #70563: py310-grpcio 1.48.4_9.darwin_23.arm64: fails to build

MacPorts noreply at macports.org
Thu Aug 15 02:19:08 UTC 2024


#70563: py310-grpcio 1.48.4_9.darwin_23.arm64: fails to build
---------------------+--------------------------
 Reporter:  areilly  |      Owner:  (none)
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:
 Keywords:           |       Port:  py310-grpcio
---------------------+--------------------------
 {{{
 % sudo port install py310-grpcio
 --->  Computing dependencies for py310-grpcio
 --->  Fetching archive for py310-grpcio
 --->  Attempting to fetch py310-grpcio-1.48.4_9.darwin_23.arm64.tbz2 from
 https://packages.macports.org/py310-grpcio
 --->  Attempting to fetch py310-grpcio-1.48.4_9.darwin_23.arm64.tbz2 from
 http://mirror.fcix.net/macports/packages/py310-grpcio
 --->  Attempting to fetch py310-grpcio-1.48.4_9.darwin_23.arm64.tbz2 from
 http://jog.id.packages.macports.org/macports/packages/py310-grpcio
 --->  Building py310-grpcio
 Error: Failed to build py310-grpcio: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_grpc/py310-grpcio/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port py310-grpcio failed
 }}}


 The build fails thusly:


 {{{
 :info:build Error compiling Cython file:
 :info:build ------------------------------------------------------------
 :info:build ...
 :info:build     return 1
 :info:build   else:
 :info:build     return 0
 :info:build cdef grpc_arg_pointer_vtable default_vtable
 :info:build default_vtable.copy = &_copy_pointer
 :info:build                       ^
 :info:build ------------------------------------------------------------
 :info:build src/python/grpcio/grpc/_cython/_cygrpc/vtable.pyx.pxi:34:22:
 Cannot assign type 'void *(*)(void *) except? NULL' to 'void *(*)(void *)
 noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to
 the type of the value being assigned.
 }}}


 Some digging on stackoverflow suggests that grpc ''requires''
 cython>=0.29.8,<3.0.0rc1 but macports has 3.0.10.
 I have installed py310-cython-compat @0.29.37, but I can't run it, and the
 build of grpc does not appear to be able to find it (it installs into
 /opt/local/lib/py310-cython-compat/ which seems unlike other python
 installs).

-- 
Ticket URL: <https://trac.macports.org/ticket/70563>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list