Summary: | media-libs/opencv-4.5.2-r{3,5} - caffe_io.cpp:1114:35: error: no matching function for call to ‘google::protobuf::io::CodedInputStream::SetTotalBytesLimit(const int&, int)’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bernd <waebbl-gentoo> |
Component: | Current packages | Assignee: | Paul Zander <negril.nx+gentoo> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | jstein, proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
opencv-4.5.2-r3:20220201-114322.log
opencv-4.5.2-r5:20220201-120433.log |
Description
Bernd
2022-02-02 04:04:39 UTC
Created attachment 764167 [details]
opencv-4.5.2-r3:20220201-114322.log
build log for 4.5.2-r3
Created attachment 764168 [details]
opencv-4.5.2-r5:20220201-120433.log
build log for 4.5.2-r5
(chroot multi) artus /etc # emerge -pqv =opencv-4.5.2-r5 [ebuild UD] media-libs/opencv-4.5.2-r5 [4.5.5] USE="eigen features2d openmp python vtk -contrib -contribcvv -contribdnn -contribfreetype -contribhdf (-contribovis) -contribsfm -contribxfeatures2d -cuda -debug -dnnsamples -download -examples -ffmpeg -gdal -gflags -glog -gphoto2 -gstreamer -gtk3 -ieee1394 -java -jpeg -jpeg2k -lapack -lto -opencl -opencvapps -openexr -opengl -png -qt5 -tesseract -testprograms -threads -tiff -v4l -vaapi -webp -xine" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="avx avx2 f16c fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 -avx512f" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" > /var/tmp/portage/media-libs/opencv-4.5.2-r5/work/opencv-4.5.2/modules/dnn/src/caffe/caffe_io.cpp: In function ‘bool cv::dnn::ReadProtoFromBinary(google::protobuf::io::ZeroCopyInputStream*, google::protobuf::Message*)’: > /var/tmp/portage/media-libs/opencv-4.5.2-r5/work/opencv-4.5.2/modules/dnn/src/caffe/caffe_io.cpp:1114:35: error: no matching function for call to ‘google::protobuf::io::CodedInputStream::SetTotalBytesLimit(const int&, int)’ > 1114 | coded_input.SetTotalBytesLimit(kProtoReadBytesLimit, 536870912); > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > In file included from /var/tmp/portage/media-libs/opencv-4.5.2-r5/work/opencv-4.5.2/modules/dnn/src/caffe/caffe_io.cpp:93: > /usr/include/google/protobuf/io/coded_stream.h:401:8: note: candidate: ‘void google::protobuf::io::CodedInputStream::SetTotalBytesLimit(int)’ > 401 | void SetTotalBytesLimit(int total_bytes_limit); > | ^~~~~~~~~~~~~~~~~~ > /usr/include/google/protobuf/io/coded_stream.h:401:8: note: candidate expects 1 argument, 2 provided This is known incompatibility with >=dev-libs/protobuf-3.18: https://github.com/protocolbuffers/protobuf/pull/8794 https://github.com/protocolbuffers/protobuf/commit/cda795437d00a15f375d3d5e2659adac715459c6 Second argument of function google::protobuf::io::CodedInputStream::SetTotalBytesLimit() was ignored for long time. Amy Liffey: In media-libs/opencv ebuilds: $ grep dev-libs/protobuf opencv-*.ebuild opencv-4.5.2-r3.ebuild: <dev-libs/protobuf-3.19:=[${MULTILIB_USEDEP}] opencv-4.5.2-r5.ebuild: <dev-libs/protobuf-3.19:=[${MULTILIB_USEDEP}] opencv-4.5.4.ebuild: dev-libs/protobuf:=[${MULTILIB_USEDEP}] opencv-4.5.5.ebuild: dev-libs/protobuf:=[${MULTILIB_USEDEP}] $ grep KEYWORDS= opencv-*.ebuild opencv-4.5.2-r3.ebuild:KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~riscv x86" opencv-4.5.2-r5.ebuild:KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~riscv x86" opencv-4.5.4.ebuild:KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~riscv x86" opencv-4.5.5.ebuild:KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" So media-libs/opencv-4.5.4 is already stable, and =media-libs/opencv-4.5.2* can be deleted. If you really need to keep =media-libs/opencv-4.5.2*, then please add trivial patch fixing call to function google::protobuf::io::CodedInputStream::SetTotalBytesLimit(), instead of depending on old dev-libs/protobuf. I want to delete old dev-libs/protobuf soon... (In reply to Arfrever Frehtes Taifersar Arahesis from comment #4) > This is known incompatibility with >=dev-libs/protobuf-3.18: > https://github.com/protocolbuffers/protobuf/pull/8794 > https://github.com/protocolbuffers/protobuf/commit/ > cda795437d00a15f375d3d5e2659adac715459c6 > > Second argument of function > google::protobuf::io::CodedInputStream::SetTotalBytesLimit() was ignored for > long time. I had protobuf-3.18.2 installed at the time of build, as is also shown in the cmake configuration output summary. (In reply to Arfrever Frehtes Taifersar Arahesis from comment #5) > Amy Liffey: > > So media-libs/opencv-4.5.4 is already stable, and =media-libs/opencv-4.5.2* > can be deleted. > > If you really need to keep =media-libs/opencv-4.5.2*, then please add > trivial patch fixing call to function > google::protobuf::io::CodedInputStream::SetTotalBytesLimit(), instead of > depending on old dev-libs/protobuf. I don't need 4.5.2 at all, but was just testing compatibility against vtk-9.1.0 which I'd like the get unmasked. So I was trying to identify packages or versions which won't work. I'd support to remove these versions. |