[MacPorts] #63351: py-grpcio fails to build

MacPorts noreply at macports.org
Wed Aug 11 21:02:43 UTC 2021


#63351: py-grpcio fails to build
-------------------------+--------------------------
  Reporter:  mouse07410  |      Owner:  emcrisostomo
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  py-grpcio   |
-------------------------+--------------------------

Comment (by kencu):

 Thanks for doing the extra step and making the symlink, mouse.

 I see your first error is now this:
 {{{
 :info:build third_party/abseil-
 cpp/absl/functional/internal/function_ref.h:26:1: error: unknown type name
 'ABSL_NAMESPACE_BEGIN'
 :info:build ABSL_NAMESPACE_BEGIN
 :info:build ^
 :info:build third_party/abseil-
 cpp/absl/functional/internal/function_ref.h:27:1: error: expected
 unqualified-id
 }}}

 Is it possible you have MacPorts version of {{{abseil}}} installed, and it
 is conflcting with the integrated one the {{{py-grpcio}}} port is trying
 to use?

 I say that because I notice this in your build log:
 {{{
 :info:build /opt/local/include/absl/base/internal/invoke.h:181:21: note:
 'Invoke' declared here
 :info:build InvokeT<F, Args...> Invoke(F&& f, Args&&... args) {
 }}}
 and then:
 {{{
 $ port provides /opt/local/include/absl/base/internal/invoke.h
 /opt/local/include/absl/base/internal/invoke.h is provided by: abseil
 }}}

 however, when I install the {{{abseil}}} port from MacPorts, and run the
 build of  {{{py-grpcio}}}, it works.

 Nevertheless, perhaps try your build in trace mode to try to eliminate
 such things:
 {{{
 sudo port clean py39-grpcio
 sudo port -v -t destroot py39-grpcio
 }}}
 and if it builds, then
 {{{
 sudo port -v -t -s install py39-grpcio
 }}}

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


More information about the macports-tickets mailing list