Opened 2 years ago

Closed 6 months ago

#56349 closed defect (fixed)

opencv @ 3.4.1_0+contrib+opencl+python35+tbb: build failure due to protobuf header version mismatch

Reported by: ci42 Owned by: stromnov (Andrew Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jtressle, fmw42 (Fred Weinhaus), TheLastLovemark
Port: opencv

Description

see the attached log file

Attachments (1)

main.log.zip (2.1 MB) - added by ci42 2 years ago.

Change History (8)

Changed 2 years ago by ci42

Attachment: main.log.zip added

comment:1 Changed 2 years ago by mainka (Jérôme 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

comment:2 Changed 2 years ago by jmroot (Joshua Root)

Summary: opencv @ 3.4.1_0+contrib+opencl+python35+tbb: build failure on 10.10.5opencv @ 3.4.1_0+contrib+opencl+python35+tbb: build failure due to protobuf header version mismatch

comment:3 Changed 2 years ago by jmroot (Joshua Root)

Owner: changed from stromnov@… to stromnov

comment:4 Changed 20 months ago by ryandesign (Ryan Schmidt)

Cc: jtressle fmw42 TheLastLovemark added

Has duplicates #56935, #57107, #57108, #58087.

Andrew, this has been a problem for almost a year. You also have dozens of other open tickets about opencv.

comment:5 Changed 20 months ago by kencu (Ken)

57107 has what looks to be an easy workaround

Last edited 20 months ago by kencu (Ken) (previous) (diff)

comment:6 Changed 15 months ago by kencu (Ken)

has dup 58724

comment:7 Changed 6 months ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed

In d98d7d7369a9f350c609082d8e1147c47831edc1/macports-ports (master):

opencv: update to 3.4.10

Closes: #56349

Note: See TracTickets for help on using tickets.