[MacPorts] #56349: opencv @ 3.4.1_0+contrib+opencl+python35+tbb: build failure on 10.10.5

MacPorts noreply at macports.org
Mon Apr 30 08:45:24 UTC 2018


#56349: opencv @ 3.4.1_0+contrib+opencl+python35+tbb: build failure on 10.10.5
---------------------+------------------------
  Reporter:  ci42    |      Owner:  stromnov@…
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  opencv  |
---------------------+------------------------

Comment (by mainka):

 It seems that contrib variant is shipped with protobuf headers  generated
 with an incompatible version of protoc (3.5.0). The versions available in
 macports are either 3.4.0 or 3.5.1.
 {{{
 :info:build In file included from /opt/local/var/macports/build
 /_Users_ci_devel_repos_macports_macports-
 ports_graphics_opencv/opencv/work/opencv-3.4.1/modules/dnn/misc/tensorflow/attr_value.pb.cc:4:
 :info:build /opt/local/var/macports/build
 /_Users_ci_devel_repos_macports_macports-
 ports_graphics_opencv/opencv/work/opencv-3.4.1/modules/dnn/misc/tensorflow/attr_value.pb.h:12:2:
 error: This file was generated by a newer version of protoc which is
 :info:build #error This file was generated by a newer version of protoc
 which is
 :info:build  ^
 :info:build /opt/local/var/macports/build
 /_Users_ci_devel_repos_macports_macports-
 ports_graphics_opencv/opencv/work/opencv-3.4.1/modules/dnn/misc/tensorflow/attr_value.pb.h:13:2:
 error: incompatible with your Protocol Buffer headers.  Please update
 :info:build #error incompatible with your Protocol Buffer headers.  Please
 update
 :info:build  ^
 :info:build /opt/local/var/macports/build
 /_Users_ci_devel_repos_macports_macports-
 ports_graphics_opencv/opencv/work/opencv-3.4.1/modules/dnn/misc/tensorflow/attr_value.pb.h:14:2:
 error: your headers.
 :info:build #error your headers.
 }}}

 And {{{modules/dnn/misc/tensorflow/attr_value.pb.h}}} reads:

 {{{
 #if GOOGLE_PROTOBUF_VERSION < 3005000
 #error This file was generated by a newer version of protoc which is
 #error incompatible with your Protocol Buffer headers.  Please update
 #error your headers.
 #endif
 #if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
 #error This file was generated by an older version of protoc which is
 #error incompatible with your Protocol Buffer headers.  Please
 #error regenerate this file with a newer version of protoc.
 #endif
 }}}

 And
 {{{
 $ cd macports-ports/devel/protobuf3-cpp
 $ git log --pretty=oneline .
 869f8ffb42c461ecb0b1a74e28fd4eff623321a9 protobuf3-cpp: support
 OS/compiler combinations without thread local storage.
 a9a89956680347178bba50e3d3ce87052e832878 protobuf3-cpp: new upstream 3.5.1
 release.
 e970e0caf478c295967dca138ddd291e607673c0 protobuf3-cpp: Update to version
 3.4.0
 }}}

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


More information about the macports-tickets mailing list