[MacPorts] #69262: py310-grpcio @1.48.4: ERROR Source build is not a directory

MacPorts noreply at macports.org
Sun May 19 14:36:38 UTC 2024


#69262: py310-grpcio @1.48.4: ERROR Source build is not a directory
---------------------------+--------------------------
  Reporter:  ryandesign    |      Owner:  emcrisostomo
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.9.1
Resolution:                |   Keywords:
      Port:  py310-grpcio  |
---------------------------+--------------------------

Comment (by FlyingSamson):

 I can also confirm this. I had a look into the `work/grpc-1.48.4` and
 indeed there is no `build` folder to be found in there.
 I then tried removing the [https://github.com/macports/macports-
 ports/blob/e9b4122d00e4a48082412ccdcb7535279a9893be/devel/grpc/Portfile#L241
 build.target    build line] from the portfile. This seems to solve this
 problem, leaving me with a classic "How did that ever work" feeling.
 However, unfortunately a little further down the line all hell breaks
 loose with multiple errors such as
 {{{

 :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 *(*)(vo
 id *) noexcept'. Exception values are incompatible. Suggest adding
 'noexcept' to the type of the value being assigned.
 }}}

 This is most likely due to a too new cython version being used during the
 build step (see also [https://stackoverflow.com/questions/77498090
 /suggest-adding-noexcept-to-type-error-when-compiling-grpcio-into-p4a this
 SO thread]).
 The cython version required by grpc also changed recently in version
 [https://github.com/grpc/grpc/commit/4bea12353c2f0f5a52746821f1e3f961592c7ca0
 1.63] from pre 3.0.0 to at least 3.0.0.
 The "easiest" solution might be to update grpc to a more recent version.

-- 
Ticket URL: <https://trac.macports.org/ticket/69262#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list