Some of the error messages: =========================================================== [ 41%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/misc/tensorflow/attr_value.pb.cc.o In file included from /var/tmp/portage/media-libs/opencv-3.3.0-r1/work/opencv-3.3.0/modules/dnn/misc/tensorflow/attr_value.pb.cc:5:0: /var/tmp/portage/media-libs/opencv-3.3.0-r1/work/opencv-3.3.0/modules/dnn/misc/tensorflow/attr_value.pb.h:17:2: error: #error This file was generated by an older version of protoc which is #error This file was generated by an older version of protoc which is ^~~~~ /var/tmp/portage/media-libs/opencv-3.3.0-r1/work/opencv-3.3.0/modules/dnn/misc/tensorflow/attr_value.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please #error incompatible with your Protocol Buffer headers. Please ^~~~~ /var/tmp/portage/media-libs/opencv-3.3.0-r1/work/opencv-3.3.0/modules/dnn/misc/tensorflow/attr_value.pb.h:19:2: error: #error regenerate this file with a newer version of protoc. #error regenerate this file with a newer version of protoc. ^~~~~ In file included from /var/tmp/portage/media-libs/opencv-3.3.0-r1/work/opencv-3.3.0/modules/dnn/misc/tensorflow/attr_value.pb.h:32:0, from /var/tmp/portage/media-libs/opencv-3.3.0-r1/work/opencv-3.3.0/modules/dnn/misc/tensorflow/attr_value.pb.cc:5: /var/tmp/portage/media-libs/opencv-3.3.0-r1/work/opencv-3.3.0/modules/dnn/misc/tensorflow/tensor.pb.h:17:2: error: #error This file was generated by an older version of protoc which is #error This file was generated by an older version of protoc which is ^~~~~ ============================================================ The installed version of dev-libs/protobuf is the latest: # eix dev-libs/protobuf [I] dev-libs/protobuf Available versions: 2.5.0-r2(0/8) 2.6.1-r3(0/9) (~)3.0.0_beta3_p1(0/10b3) (~)3.0.2(0/10) (~)3.1.0(0/11) (~)3.3.0(0/13) {emacs examples java python source static-libs test vim-syntax zlib ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" ELIBC="FreeBSD" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6"} Installed versions: 3.3.0(16:09:59 03/09/17)(java zlib -emacs -examples -python -static-libs -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32" PYTHON_TARGETS="python2_7 python3_4 -python3_5 -python3_6") Homepage: https://github.com/google/protobuf/ https://developers.google.com/protocol-buffers/ Description: Google's Protocol Buffers -- an efficient method of encoding structured data * dev-libs/protobuf-c Available versions: 1.0.2-r1 1.1.1 (~)1.2.1-r1(0/1.0.0) (~)1.3.0(0/1.0.0) {static-libs test ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"} Homepage: https://github.com/protobuf-c/protobuf-c/ Description: Protocol Buffers implementation in C Found 2 matches =========================================================== The complete build log is located at https://paste.pound-python.org/show/dgwzmM9o5WIkHntcRqXy/ the output of `emerge --info '=media-libs/opencv-3.3.0-r1::gentoo'` https://paste.pound-python.org/show/cHDyjwkr4syqCAP30KmG/ The ebuild environment file is located at https://paste.pound-python.org/show/JetiAr4p7v9jFfzYYcpY/
*** This bug has been marked as a duplicate of bug 631418 ***