Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631418 - media-libs/opencv-3.3.0 with dev-libs/protobuf-3.4.1 - .../modules/dnn/misc/tensorflow/attr_value.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
Summary: media-libs/opencv-3.3.0 with dev-libs/protobuf-3.4.1 - .../modules/dnn/misc/t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Amy Liffey
URL:
Whiteboard:
Keywords:
: 631470 631494 631566 631732 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-09-19 13:45 UTC by klaus818
Modified: 2017-10-10 06:15 UTC (History)
18 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,41.05 KB, text/x-log)
2017-09-19 13:45 UTC, klaus818
Details
make.log (make.log.gz,3.31 KB, application/gzip)
2017-09-20 09:05 UTC, klaus818
Details
force_3rdparty_protobuf.patch (force_3rdparty_protobuf.patch,376 bytes, patch)
2017-09-20 21:53 UTC, ZappeL
Details | Diff
Ebuild including the patch (opencv-3.3.0-r2.ebuild,11.68 KB, text/plain)
2017-09-26 16:20 UTC, Luke A. Guest
Details
ebuild-patch (r1->r2) (opencv-3.3.0-r1_to_r2.ebuild.patch,1.89 KB, patch)
2017-09-26 22:16 UTC, ZappeL
Details | Diff
build.log (build.log,724.92 KB, text/x-log)
2017-10-09 23:46 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description klaus818 2017-09-19 13:45:21 UTC
Created attachment 495434 [details]
build.log

Portage 2.3.8 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-6.4.0, glibc-2.25-r5, 4.13.2-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.13.2-gentoo-x86_64-Intel-R-_Core-TM-_i3-5005U_CPU_@_2.00GHz-with-gentoo-2.4.1
KiB Mem:     8091784 total,   3091744 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 19 Sep 2017 09:30:01 +0000
Head commit of repository gentoo: 8f4f8db441e135d5d782a269a74e3860d99f2342
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29 p1.0) 2.29
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
dev-util/cmake:           3.9.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.31.2::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29::gentoo
sys-devel/gcc:            6.4.0::gentoo, 7.2.0::ahyangyi-overlay
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

c2p-overlay
    location: /var/lib/layman/c2p-overlay
    sync-type: laymansync
    sync-uri: https://github.com/karolgrudzinski/c2p-overlay.git
    masters: gentoo
    priority: 50

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/kde.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-logs candy compress-build-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb branding brightness-control bzip2 cairo cdda cdr chromium cli cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode epub exif fam fax ffmpeg firefox flac fortran gdbm gif glamor gpm grub gtk hwaccel iconv ipv6 jpeg kde kipi kwallet lcms ldap libnotify lm_sensors mad matroska mng modules mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl office ogg opencl opengl openmp opus pam pango pch pcre pdf phonon pim plasma png policykit postproc ppds pulseaudio qml qt3support qt4 qt5 readline scanner sdl seccomp semantic-desktop session spell ssl startup-notification svg sync-plugin-portage system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-sqlite systemd tcpd tiff truetype udev udisks unicode upower usb vaapi vc vorbis vpx wayland widgets wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="sony_dscf1" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics libevent" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

media-libs/opencv-3.2.0-r3::gentoo was built with the following:
USE="eigen ffmpeg gtk jpeg opencl opengl openmp pch png python qt5 tiff vaapi -contrib -contrib_cvv -contrib_hdf -contrib_sfm -contrib_xfeatures2d -cuda -debug -examples -gdal -gflags -glog -gphoto2 -gstreamer -ieee1394 (-ipp) -java -jpeg2k -lapack -libav -openexr -tesseract -testprograms -threads -v4l -vtk -webp -xine" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_4 -python3_5"
Comment 1 jorgicio 2017-09-19 18:21:14 UTC
Also: watch out of the naming of the file imgcodecs-opencv. It tries to find the imgcodecs-opencv-3.3.0.tar.gz, but it fails at fetch because there must be a dot instead of the second dash.
Comment 2 josef.95 2017-09-19 21:13:35 UTC
@klaus818,
can you please update the error message?! :)
The current attached build.log is not readable :-/
Comment 3 Amy Liffey gentoo-dev 2017-09-19 21:18:14 UTC
(In reply to josef.95 from comment #2)
> @klaus818,
> can you please update the error message?! :)
> The current attached build.log is not readable :-/

It is readable you have to uncompress it.
Comment 4 Amy Liffey gentoo-dev 2017-09-19 21:19:52 UTC
(In reply to klaus818 from comment #0)
> Created attachment 495434 [details]
> build.log
> 
> Portage 2.3.8 (python 3.4.6-final-0,
> default/linux/amd64/13.0/desktop/plasma/systemd, gcc-6.4.0, glibc-2.25-r5,
> 4.13.2-gentoo x86_64)
> =================================================================
>                          System Settings
> =================================================================
> System uname:
> Linux-4.13.2-gentoo-x86_64-Intel-R-_Core-TM-_i3-5005U_CPU_@_2.00GHz-with-
> gentoo-2.4.1
> KiB Mem:     8091784 total,   3091744 free
> KiB Swap:          0 total,         0 free
> Timestamp of repository gentoo: Tue, 19 Sep 2017 09:30:01 +0000
> Head commit of repository gentoo: 8f4f8db441e135d5d782a269a74e3860d99f2342
> sh bash 4.4_p12
> ld GNU ld (Gentoo 2.29 p1.0) 2.29
> app-shells/bash:          4.4_p12::gentoo
> dev-java/java-config:     2.2.0-r3::gentoo
> dev-lang/perl:            5.24.2::gentoo
> dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
> dev-util/cmake:           3.9.2::gentoo
> dev-util/pkgconfig:       0.29.2::gentoo
> sys-apps/baselayout:      2.4.1-r2::gentoo
> sys-apps/openrc:          0.31.2::gentoo
> sys-apps/sandbox:         2.10-r4::gentoo
> sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
> sys-devel/automake:       1.13.4-r1::gentoo, 1.15.1-r1::gentoo
> sys-devel/binutils:       2.29::gentoo
> sys-devel/gcc:            6.4.0::gentoo, 7.2.0::ahyangyi-overlay
> sys-devel/gcc-config:     1.8-r1::gentoo
> sys-devel/libtool:        2.4.6-r4::gentoo
> sys-devel/make:           4.2.1-r1::gentoo
> sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
> sys-libs/glibc:           2.25-r5::gentoo
> Repositories:
> 
> gentoo
>     location: /usr/portage
>     sync-type: rsync
>     sync-uri: rsync://rsync.gentoo.org/gentoo-portage
>     priority: -1000
> 
> c2p-overlay
>     location: /var/lib/layman/c2p-overlay
>     sync-type: laymansync
>     sync-uri: https://github.com/karolgrudzinski/c2p-overlay.git
>     masters: gentoo
>     priority: 50
> 
> kde
>     location: /var/lib/layman/kde
>     sync-type: laymansync
>     sync-uri: https://github.com/gentoo/kde.git
>     masters: gentoo
>     priority: 50
> 
> ACCEPT_KEYWORDS="amd64 ~amd64"
> ACCEPT_LICENSE="*"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-O2 -pipe -march=native"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc
> /usr/share/config /usr/share/gnupg/qualified.txt"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d
> /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild
> /etc/sandbox.d /etc/terminfo"
> CXXFLAGS="-O2 -pipe -march=native"
> DISTDIR="/usr/portage/distfiles"
> EMERGE_DEFAULT_OPTS="--with-bdeps=y"
> FCFLAGS="-O2 -pipe -march=native"
> FEATURES="assume-digests binpkg-logs candy compress-build-logs
> config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles
> merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned
> sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans
> userfetch userpriv usersandbox usersync xattr"
> FFLAGS="-O2 -pipe -march=native"
> GENTOO_MIRRORS="http://distfiles.gentoo.org
> http://www.ibiblio.org/pub/Linux/distributions/gentoo"
> LANG="de_DE.utf8"
> LDFLAGS="-Wl,-O1 -Wl,--as-needed"
> MAKEOPTS="-j4"
> PKGDIR="/usr/portage/packages"
> PORTAGE_CONFIGROOT="/"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
> --omit-dir-times --compress --force --whole-file --delete --stats
> --human-readable --timeout=180 --exclude=/distfiles --exclude=/local
> --exclude=/packages --exclude=/.git"
> PORTAGE_TMPDIR="/var/tmp"
> USE="X a52 aac acl acpi activities alsa amd64 berkdb branding
> brightness-control bzip2 cairo cdda cdr chromium cli cracklib crypt cups cxx
> dbus declarative dri dts dvd dvdr emboss encode epub exif fam fax ffmpeg
> firefox flac fortran gdbm gif glamor gpm grub gtk hwaccel iconv ipv6 jpeg
> kde kipi kwallet lcms ldap libnotify lm_sensors mad matroska mng modules mp3
> mp4 mpeg mtp multilib ncurses networkmanager nls nptl office ogg opencl
> opengl openmp opus pam pango pch pcre pdf phonon pim plasma png policykit
> postproc ppds pulseaudio qml qt3support qt4 qt5 readline scanner sdl seccomp
> semantic-desktop session spell ssl startup-notification svg
> sync-plugin-portage system-harfbuzz system-icu system-jpeg system-libevent
> system-libvpx system-sqlite systemd tcpd tiff truetype udev udisks unicode
> upower usb vaapi vc vorbis vpx wayland widgets wxwidgets x264 x265 xattr xcb
> xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64"
> ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x
> ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3
> trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core
> authz_core socache_shmcb unixd actions alias auth_basic authn_alias
> authn_anon authn_dbm authn_default authn_file authz_dbm authz_default
> authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid
> dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
> filter headers include info log_config logio mem_cache mime mime_magic
> negotiation rewrite setenvif speling status unique_id userdir usertrack
> vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables
> krita karbon braindump author" CAMERAS="sony_dscf1" COLLECTD_PLUGINS="df
> interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2
> fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc"
> GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt
> gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore
> rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox
> ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics libevent"
> KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780
> lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
> presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice"
> PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5"
> PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4"
> RUBY_TARGETS="ruby22" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel
> i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset
> ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark
> ipmark dhcpmac delude chaos account"
> Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL,
> PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
> PORTAGE_RSYNC_EXTRA_OPTS
> 
> =================================================================
>                         Package Settings
> =================================================================
> 
> media-libs/opencv-3.2.0-r3::gentoo was built with the following:
> USE="eigen ffmpeg gtk jpeg opencl opengl openmp pch png python qt5 tiff
> vaapi -contrib -contrib_cvv -contrib_hdf -contrib_sfm -contrib_xfeatures2d
> -cuda -debug -examples -gdal -gflags -glog -gphoto2 -gstreamer -ieee1394
> (-ipp) -java -jpeg2k -lapack -libav -openexr -tesseract -testprograms
> -threads -v4l -vtk -webp -xine" ABI_X86="(64) -32 (-x32)"
> PYTHON_TARGETS="python2_7 python3_4 -python3_5"

Could you go to /var/tmp/portage/media-libs/opencv-3.3.0/work/opencv-3.3.0-abi_x86_64.amd64 

run make and send me log?
Comment 5 klaus818 2017-09-19 21:36:18 UTC
Sorry, my build.log was build.log.gz. I forgot the .gz when I renamed it.
Comment 6 klaus818 2017-09-19 21:37:10 UTC
Sorry, my build.log was build.log.gz. I forgot the .gz when I renamed it.
Comment 7 josef.95 2017-09-19 22:29:31 UTC
Ah yes, rename the build.log to build_log.gz works (and is now readable with less).
Thanks :)
Comment 8 klaus818 2017-09-20 09:04:31 UTC
(In reply to Amy Liffey from comment #4)
> (In reply to klaus818 from comment #0)
> > Created attachment 495434 [details]
> > build.log
> > 
> > Portage 2.3.8 (python 3.4.6-final-0,
> > default/linux/amd64/13.0/desktop/plasma/systemd, gcc-6.4.0, glibc-2.25-r5,
> > 4.13.2-gentoo x86_64)
> > =================================================================
> >                          System Settings
> > =================================================================
> > System uname:
> > Linux-4.13.2-gentoo-x86_64-Intel-R-_Core-TM-_i3-5005U_CPU_@_2.00GHz-with-
> > gentoo-2.4.1
> > KiB Mem:     8091784 total,   3091744 free
> > KiB Swap:          0 total,         0 free
> > Timestamp of repository gentoo: Tue, 19 Sep 2017 09:30:01 +0000
> > Head commit of repository gentoo: 8f4f8db441e135d5d782a269a74e3860d99f2342
> > sh bash 4.4_p12
> > ld GNU ld (Gentoo 2.29 p1.0) 2.29
> > app-shells/bash:          4.4_p12::gentoo
> > dev-java/java-config:     2.2.0-r3::gentoo
> > dev-lang/perl:            5.24.2::gentoo
> > dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
> > dev-util/cmake:           3.9.2::gentoo
> > dev-util/pkgconfig:       0.29.2::gentoo
> > sys-apps/baselayout:      2.4.1-r2::gentoo
> > sys-apps/openrc:          0.31.2::gentoo
> > sys-apps/sandbox:         2.10-r4::gentoo
> > sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
> > sys-devel/automake:       1.13.4-r1::gentoo, 1.15.1-r1::gentoo
> > sys-devel/binutils:       2.29::gentoo
> > sys-devel/gcc:            6.4.0::gentoo, 7.2.0::ahyangyi-overlay
> > sys-devel/gcc-config:     1.8-r1::gentoo
> > sys-devel/libtool:        2.4.6-r4::gentoo
> > sys-devel/make:           4.2.1-r1::gentoo
> > sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
> > sys-libs/glibc:           2.25-r5::gentoo
> > Repositories:
> > 
> > gentoo
> >     location: /usr/portage
> >     sync-type: rsync
> >     sync-uri: rsync://rsync.gentoo.org/gentoo-portage
> >     priority: -1000
> > 
> > c2p-overlay
> >     location: /var/lib/layman/c2p-overlay
> >     sync-type: laymansync
> >     sync-uri: https://github.com/karolgrudzinski/c2p-overlay.git
> >     masters: gentoo
> >     priority: 50
> > 
> > kde
> >     location: /var/lib/layman/kde
> >     sync-type: laymansync
> >     sync-uri: https://github.com/gentoo/kde.git
> >     masters: gentoo
> >     priority: 50
> > 
> > ACCEPT_KEYWORDS="amd64 ~amd64"
> > ACCEPT_LICENSE="*"
> > CBUILD="x86_64-pc-linux-gnu"
> > CFLAGS="-O2 -pipe -march=native"
> > CHOST="x86_64-pc-linux-gnu"
> > CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc
> > /usr/share/config /usr/share/gnupg/qualified.txt"
> > CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d
> > /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild
> > /etc/sandbox.d /etc/terminfo"
> > CXXFLAGS="-O2 -pipe -march=native"
> > DISTDIR="/usr/portage/distfiles"
> > EMERGE_DEFAULT_OPTS="--with-bdeps=y"
> > FCFLAGS="-O2 -pipe -march=native"
> > FEATURES="assume-digests binpkg-logs candy compress-build-logs
> > config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles
> > merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned
> > sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans
> > userfetch userpriv usersandbox usersync xattr"
> > FFLAGS="-O2 -pipe -march=native"
> > GENTOO_MIRRORS="http://distfiles.gentoo.org
> > http://www.ibiblio.org/pub/Linux/distributions/gentoo"
> > LANG="de_DE.utf8"
> > LDFLAGS="-Wl,-O1 -Wl,--as-needed"
> > MAKEOPTS="-j4"
> > PKGDIR="/usr/portage/packages"
> > PORTAGE_CONFIGROOT="/"
> > PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
> > --omit-dir-times --compress --force --whole-file --delete --stats
> > --human-readable --timeout=180 --exclude=/distfiles --exclude=/local
> > --exclude=/packages --exclude=/.git"
> > PORTAGE_TMPDIR="/var/tmp"
> > USE="X a52 aac acl acpi activities alsa amd64 berkdb branding
> > brightness-control bzip2 cairo cdda cdr chromium cli cracklib crypt cups cxx
> > dbus declarative dri dts dvd dvdr emboss encode epub exif fam fax ffmpeg
> > firefox flac fortran gdbm gif glamor gpm grub gtk hwaccel iconv ipv6 jpeg
> > kde kipi kwallet lcms ldap libnotify lm_sensors mad matroska mng modules mp3
> > mp4 mpeg mtp multilib ncurses networkmanager nls nptl office ogg opencl
> > opengl openmp opus pam pango pch pcre pdf phonon pim plasma png policykit
> > postproc ppds pulseaudio qml qt3support qt4 qt5 readline scanner sdl seccomp
> > semantic-desktop session spell ssl startup-notification svg
> > sync-plugin-portage system-harfbuzz system-icu system-jpeg system-libevent
> > system-libvpx system-sqlite systemd tcpd tiff truetype udev udisks unicode
> > upower usb vaapi vc vorbis vpx wayland widgets wxwidgets x264 x265 xattr xcb
> > xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64"
> > ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x
> > ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3
> > trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core
> > authz_core socache_shmcb unixd actions alias auth_basic authn_alias
> > authn_anon authn_dbm authn_default authn_file authz_dbm authz_default
> > authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid
> > dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
> > filter headers include info log_config logio mem_cache mime mime_magic
> > negotiation rewrite setenvif speling status unique_id userdir usertrack
> > vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables
> > krita karbon braindump author" CAMERAS="sony_dscf1" COLLECTD_PLUGINS="df
> > interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2
> > fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc"
> > GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt
> > gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore
> > rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox
> > ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics libevent"
> > KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780
> > lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
> > presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice"
> > PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5"
> > PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4"
> > RUBY_TARGETS="ruby22" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel
> > i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset
> > ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark
> > ipmark dhcpmac delude chaos account"
> > Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL,
> > PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
> > PORTAGE_RSYNC_EXTRA_OPTS
> > 
> > =================================================================
> >                         Package Settings
> > =================================================================
> > 
> > media-libs/opencv-3.2.0-r3::gentoo was built with the following:
> > USE="eigen ffmpeg gtk jpeg opencl opengl openmp pch png python qt5 tiff
> > vaapi -contrib -contrib_cvv -contrib_hdf -contrib_sfm -contrib_xfeatures2d
> > -cuda -debug -examples -gdal -gflags -glog -gphoto2 -gstreamer -ieee1394
> > (-ipp) -java -jpeg2k -lapack -libav -openexr -tesseract -testprograms
> > -threads -v4l -vtk -webp -xine" ABI_X86="(64) -32 (-x32)"
> > PYTHON_TARGETS="python2_7 python3_4 -python3_5"
> 
> Could you go to
> /var/tmp/portage/media-libs/opencv-3.3.0/work/opencv-3.3.0-abi_x86_64.amd64 
> 
> run make and send me log?

make.log.gz as attachment.
Comment 9 klaus818 2017-09-20 09:05:47 UTC
Created attachment 495604 [details]
make.log
Comment 10 Amy Liffey gentoo-dev 2017-09-20 12:20:53 UTC
(In reply to klaus818 from comment #9)
> Created attachment 495604 [details]
> make.log

Do you have dev-libs/protobuf installed? What version? 

Thank you
Comment 11 Amy Liffey gentoo-dev 2017-09-20 12:49:05 UTC
(In reply to Amy Liffey from comment #10)
> (In reply to klaus818 from comment #9)
> > Created attachment 495604 [details]
> > make.log
> 
> Do you have dev-libs/protobuf installed? What version? 
> 
> Thank you

I think I found it. I will try to patch it as soon as possible.

Thank you
Comment 12 Amy Liffey gentoo-dev 2017-09-20 13:06:02 UTC
*** Bug 631470 has been marked as a duplicate of this bug. ***
Comment 13 klaus818 2017-09-20 14:09:32 UTC
(In reply to Amy Liffey from comment #10)
> (In reply to klaus818 from comment #9)
> > Created attachment 495604 [details]
> > make.log
> 
> Do you have dev-libs/protobuf installed? What version? 
> 
> Thank you

[ebuild   R    ] dev-libs/protobuf-3.3.0:0/13::gentoo  USE="zlib -emacs -examples -java -python -static-libs {-test}" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_4 -python3_5 -python3_6"
Comment 14 Amy Liffey gentoo-dev 2017-09-20 18:33:32 UTC
*** Bug 631566 has been marked as a duplicate of this bug. ***
Comment 15 ZappeL 2017-09-20 21:53:51 UTC
Created attachment 495698 [details, diff]
force_3rdparty_protobuf.patch

Had the same issue earlier this day.

I've attached my "quick 'n dirty" patch.

Description:
Forcing use of the "3rdparty" protobuf. (the shipped one)
Comment 16 Amy Liffey gentoo-dev 2017-09-21 12:42:35 UTC
(In reply to zappel from comment #15)
> Created attachment 495698 [details, diff] [details, diff]
> force_3rdparty_protobuf.patch
> 
> Had the same issue earlier this day.
> 
> I've attached my "quick 'n dirty" patch.
> 
> Description:
> Forcing use of the "3rdparty" protobuf. (the shipped one)

That is against gentoo policy but users can add it to their user patches for now. 
I am gonna try to figure out cleaner way.

Thanks

Amy
Comment 17 ZappeL 2017-09-21 19:02:36 UTC
(In reply to Amy Liffey from comment #16)
> (In reply to zappel from comment #15)
> > Created attachment 495698 [details, diff] [details, diff] [details, diff]
> > force_3rdparty_protobuf.patch
> > 
> > Had the same issue earlier this day.
> > 
> > I've attached my "quick 'n dirty" patch.
> > 
> > Description:
> > Forcing use of the "3rdparty" protobuf. (the shipped one)
> 
> That is against gentoo policy but users can add it to their user patches for
> now. 
> I am gonna try to figure out cleaner way.
> 
> Thanks
> 
> Amy

Yes, I know.. Sorry for that.


Nevertheless it's defenetly caused by inconsistent protobuf versions. 
It does build without any patching when doing the following:

# emerge -1O =dev-libs/protobuf-3.1.0 && emerge media-libs/opencv
Comment 18 João Santos 2017-09-24 14:09:34 UTC
I(In reply to zappel from comment #17)
> (In reply to Amy Liffey from comment #16)
> > (In reply to zappel from comment #15)
> > > Created attachment 495698 [details, diff] [details, diff] [details, diff] [details, diff]
> > > force_3rdparty_protobuf.patch
> > > 
> > > Had the same issue earlier this day.
> > > 
> > > I've attached my "quick 'n dirty" patch.
> > > 
> > > Description:
> > > Forcing use of the "3rdparty" protobuf. (the shipped one)
> > 
> > That is against gentoo policy but users can add it to their user patches for
> > now. 
> > I am gonna try to figure out cleaner way.
> > 
> > Thanks
> > 
> > Amy
> 
> Yes, I know.. Sorry for that.
> 
> 
> Nevertheless it's defenetly caused by inconsistent protobuf versions. 
> It does build without any patching when doing the following:
> 
> # emerge -1O =dev-libs/protobuf-3.1.0 && emerge media-libs/opencv

(In reply to zappel from comment #17)
> (In reply to Amy Liffey from comment #16)
> > (In reply to zappel from comment #15)
> > > Created attachment 495698 [details, diff] [details, diff] [details, diff] [details, diff]
> > > force_3rdparty_protobuf.patch
> > > 
> > > Had the same issue earlier this day.
> > > 
> > > I've attached my "quick 'n dirty" patch.
> > > 
> > > Description:
> > > Forcing use of the "3rdparty" protobuf. (the shipped one)
> > 
> > That is against gentoo policy but users can add it to their user patches for
> > now. 
> > I am gonna try to figure out cleaner way.
> > 
> > Thanks
> > 
> > Amy
> 
> Yes, I know.. Sorry for that.
> 
> 
> Nevertheless it's defenetly caused by inconsistent protobuf versions. 
> It does build without any patching when doing the following:
> 
> # emerge -1O =dev-libs/protobuf-3.1.0 && emerge media-libs/opencv

I seemed to have achieved the same result by editing OpenCVFindLibProtobuf.cmake:

OCV_OPTION(BUILD_PROTOBUF "Force to build libprotobuf from sources" OFF) # Previously it was ON
Comment 19 Hanno Zysik (geki) 2017-09-25 19:33:40 UTC
Bugs 631494 and 631732 relate to this one.

I would recommend to depend on package dev-libs/protobuf:0/11 (3.1.0). Solved my issue.

I guess BUILD_PROTOBUF set to OFF and PROTOBUF_UPDATE_FILES set to ON can be passsed by ebuild?
Comment 20 ZappeL 2017-09-25 20:08:45 UTC
(In reply to Hanno Meyer-Thurow (geki) from comment #19)
> Bugs 631494 and 631732 relate to this one.
> 
> I would recommend to depend on package dev-libs/protobuf:0/11 (3.1.0).
> Solved my issue.
> 
> I guess BUILD_PROTOBUF set to OFF and PROTOBUF_UPDATE_FILES set to ON can be
> passsed by ebuild?

I've tested that before. They can.
But sadly it's not working if the local version of protobuf is higher then 3.1.0. It does work the otherway around (but as Amy said, that isn't allowed due policy reasons).


IMHO:
The simplest way to get around this bug is temorary using protbuf 3.1.0 during the build-process. Those generated(version mismatching?) files only used during buildtime(compile). Amy, please correct me if I'm wrong.
Comment 21 Amy Liffey gentoo-dev 2017-09-26 07:30:26 UTC
(In reply to zappel from comment #20)
> (In reply to Hanno Meyer-Thurow (geki) from comment #19)
> > Bugs 631494 and 631732 relate to this one.
> > 
> > I would recommend to depend on package dev-libs/protobuf:0/11 (3.1.0).
> > Solved my issue.
> > 
> > I guess BUILD_PROTOBUF set to OFF and PROTOBUF_UPDATE_FILES set to ON can be
> > passsed by ebuild?
> 
> I've tested that before. They can.
> But sadly it's not working if the local version of protobuf is higher then
> 3.1.0. It does work the otherway around (but as Amy said, that isn't allowed
> due policy reasons).
> 
> 
> IMHO:
> The simplest way to get around this bug is temorary using protbuf 3.1.0
> during the build-process. Those generated(version mismatching?) files only
> used during buildtime(compile). Amy, please correct me if I'm wrong.

No that is not against gentoo policy to set it as configure option in the ebuild I am working on it unfortunately testing does not go that smoothly.

So in short it does build for everyone when protobuf 3.1.0 is installed and PROTOBUF_UPDATE_FILES are ON ?
Comment 22 Luke A. Guest 2017-09-26 16:20:41 UTC
Created attachment 496452 [details]
Ebuild including the patch

This ebuild includes the above patch. Compiles fine.
Comment 23 ZappeL 2017-09-26 16:33:51 UTC
(In reply to Luke A. Guest from comment #22)
> Created attachment 496452 [details]
> Ebuild including the patch
> 
> This ebuild includes the above patch. Compiles fine.

Yes, but Amy said it already. 
My "patch" was only a "hack" and must NOT be used in the ebuild. Consider using the user_patches for that. (https://wiki.gentoo.org/wiki//etc/portage/patches)

I totally agree with her, changing the options in the ebuild is the best solution for that. Maybe this could be set by a useflag (bundled_protopuf or sth. like that). Forcing a specific version of protobuf isn't a good solution from my point of view, besides I'm using protobuf 3.4 .


@Amy: If I can help you testing please let me know.
Comment 24 ZappeL 2017-09-26 22:16:14 UTC
Created attachment 496618 [details, diff]
ebuild-patch (r1->r2)

Maybe this is a bettter way to get around this bug.

What I've done:
- added default useflag "+bpfix"
- check against version 3.1.0 (only applied on mismatch)


Doesn't look perfect for me now, but it does what it has to. I didn't find anything in the ebuild-dev wiki concerning setting vars as a condition on a version of a dependency. i.E. var=(pkg_exists ) 


@Amy: maybe that helps you. I've tested it on diffrent machines (protobuf 3.1.0 - 3.4.1 and gcc 5.4 - 7.2)
Comment 25 Amy Liffey gentoo-dev 2017-09-26 23:00:56 UTC
(In reply to zappel from comment #24)
> Created attachment 496618 [details, diff] [details, diff]
> ebuild-patch (r1->r2)
> 
> Maybe this is a bettter way to get around this bug.
> 
> What I've done:
> - added default useflag "+bpfix"
> - check against version 3.1.0 (only applied on mismatch)
> 
> 
> Doesn't look perfect for me now, but it does what it has to. I didn't find
> anything in the ebuild-dev wiki concerning setting vars as a condition on a
> version of a dependency. i.E. var=(pkg_exists ) 
> 
> 
> @Amy: maybe that helps you. I've tested it on diffrent machines (protobuf
> 3.1.0 - 3.4.1 and gcc 5.4 - 7.2)

I have the patch already its slightly different than yours, but thank you ! :) I think the useflag idea is not really good. Why did you choose it like this? Maybe it has reason and I do not see it yet :)
Comment 26 ZappeL 2017-09-27 07:28:31 UTC
(In reply to Amy Liffey from comment #25)
> (In reply to zappel from comment #24)
> > Created attachment 496618 [details, diff] [details, diff] [details, diff]
> > ebuild-patch (r1->r2)
> > 
> > Maybe this is a bettter way to get around this bug.
> > 
> > What I've done:
> > - added default useflag "+bpfix"
> > - check against version 3.1.0 (only applied on mismatch)
> > 
> > 
> > Doesn't look perfect for me now, but it does what it has to. I didn't find
> > anything in the ebuild-dev wiki concerning setting vars as a condition on a
> > version of a dependency. i.E. var=(pkg_exists ) 
> > 
> > 
> > @Amy: maybe that helps you. I've tested it on diffrent machines (protobuf
> > 3.1.0 - 3.4.1 and gcc 5.4 - 7.2)
> 
> I have the patch already its slightly different than yours, but thank you !
> :) I think the useflag idea is not really good. Why did you choose it like
> this? Maybe it has reason and I do not see it yet :)

Great to hear that your patch is ready. Can you please provide it for testing, or is it already upstream? (haven't synced yet)

Why I added the useflag is quiet simple. I thought maybe is there someone who don't want to apply the patch, so with "-pbfix" it is not applied at all. But you're right, it is some kind of optional. ;)
Comment 27 Amy Liffey gentoo-dev 2017-09-28 20:07:42 UTC
(In reply to zappel from comment #26)
> (In reply to Amy Liffey from comment #25)
> > (In reply to zappel from comment #24)
> > > Created attachment 496618 [details, diff] [details, diff] [details, diff] [details, diff]
> > > ebuild-patch (r1->r2)
> > > 
> > > Maybe this is a bettter way to get around this bug.
> > > 
> > > What I've done:
> > > - added default useflag "+bpfix"
> > > - check against version 3.1.0 (only applied on mismatch)
> > > 
> > > 
> > > Doesn't look perfect for me now, but it does what it has to. I didn't find
> > > anything in the ebuild-dev wiki concerning setting vars as a condition on a
> > > version of a dependency. i.E. var=(pkg_exists ) 
> > > 
> > > 
> > > @Amy: maybe that helps you. I've tested it on diffrent machines (protobuf
> > > 3.1.0 - 3.4.1 and gcc 5.4 - 7.2)
> > 
> > I have the patch already its slightly different than yours, but thank you !
> > :) I think the useflag idea is not really good. Why did you choose it like
> > this? Maybe it has reason and I do not see it yet :)
> 
> Great to hear that your patch is ready. Can you please provide it for
> testing, or is it already upstream? (haven't synced yet)
> 
> Why I added the useflag is quiet simple. I thought maybe is there someone
> who don't want to apply the patch, so with "-pbfix" it is not applied at
> all. But you're right, it is some kind of optional. ;)

Just for simplicity now there is one problem which has to be solved before this goes to tree but.. Does this ebuild work for you? [1]
The protobuf dependency also will be under dnn useflag but just for testing now.

[1] https://gitlab.com/Zelena/hell-overlay/blob/7ad77b5a7210dcd3f7a25240983ac49cd5f8dbb9/media-libs/opencv/opencv-3.3.0.ebuild
Comment 28 Quentin Minster 2017-09-29 02:09:19 UTC
(In reply to Amy Liffey from comment #27)
> Just for simplicity now there is one problem which has to be solved before
> this goes to tree but.. Does this ebuild work for you? [1]
> The protobuf dependency also will be under dnn useflag but just for testing
> now.
> 
> [1]
> https://gitlab.com/Zelena/hell-overlay/blob/
> 7ad77b5a7210dcd3f7a25240983ac49cd5f8dbb9/media-libs/opencv/opencv-3.3.0.
> ebuild


Ebuild works fine here.
Comment 29 Amy Liffey gentoo-dev 2017-09-30 13:12:29 UTC
*** Bug 631732 has been marked as a duplicate of this bug. ***
Comment 30 Hanno Zysik (geki) 2017-09-30 17:25:50 UTC
(In reply to zappel from comment #20)
> (In reply to Hanno Meyer-Thurow (geki) from comment #19)
> > I guess BUILD_PROTOBUF set to OFF and PROTOBUF_UPDATE_FILES set to ON can be
> > passsed by ebuild?
> 
> I've tested that before. They can.
> But sadly it's not working if the local version of protobuf is higher then
> 3.1.0. It does work the otherway around (but as Amy said, that isn't allowed
> due policy reasons).

Sorry to answer just now, have not added myself to CC somehow last time.

Hmm, opencv builds fine here with system protobuf 3.4.1 having BUILD_PROTOBUF set to OFF and PROTOBUF_UPDATE_FILES set to ON.

Is there a special useflag I need to enable to see it failing? Or does runtime fail somehow?

My enabled useflags are: USE="ffmpeg jpeg jpeg2k opencl png threads tiff vaapi webp"
Comment 31 Amy Liffey gentoo-dev 2017-09-30 18:36:46 UTC
*** Bug 631494 has been marked as a duplicate of this bug. ***
Comment 32 Magnus Kessler 2017-10-06 08:34:31 UTC
opencv builds fine for me with system protobuf 3.4.1 having BUILD_PROTOBUF set to OFF and PROTOBUF_UPDATE_FILES set to ON.

gcc version 6.4.0.
Comment 33 Dennis Schridde 2017-10-06 09:24:03 UTC
(In reply to Magnus Kessler from comment #32)
> opencv builds fine for me with system protobuf 3.4.1 having BUILD_PROTOBUF
> set to OFF and PROTOBUF_UPDATE_FILES set to ON.
> 
> gcc version 6.4.0.

I confirm, it works.  You may find a patched ebuild, with -DBUILD_PROTOBUF=OFF, -DPROTOBUF_UPDATE_FILES=ON and a dependency on dev-libs/protobuf:=, in my overlay [1].

[1]: https://github.com/devurandom/gentoo-overlay/commit/363755ed5c92af6b762b94e9b8e80fa46c80afdd
Comment 34 Amy Liffey gentoo-dev 2017-10-06 11:19:38 UTC
(In reply to Dennis Schridde from comment #33)
> (In reply to Magnus Kessler from comment #32)
> > opencv builds fine for me with system protobuf 3.4.1 having BUILD_PROTOBUF
> > set to OFF and PROTOBUF_UPDATE_FILES set to ON.
> > 
> > gcc version 6.4.0.
> 
> I confirm, it works.  You may find a patched ebuild, with
> -DBUILD_PROTOBUF=OFF, -DPROTOBUF_UPDATE_FILES=ON and a dependency on
> dev-libs/protobuf:=, in my overlay [1].
> 
> [1]:
> https://github.com/devurandom/gentoo-overlay/commit/
> 363755ed5c92af6b762b94e9b8e80fa46c80afdd

The main question is does it also build with protobuf-3.3.* ?

Thank you
Comment 35 Hanno Zysik (geki) 2017-10-06 17:19:32 UTC
opencv also builds with protobuf-3.3.0:0/13 here.

ldd linkage output:
/usr/lib64/libopencv_dnn.so.3.3.0
        libprotobuf.so.13 => /usr/lib64/libprotobuf.so.13 (0x00007fbdaaf00000)
Comment 36 Larry the Git Cow gentoo-dev 2017-10-09 14:54:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57e183e7915fe6ee5cefb822b6daf06baf5dc790

commit 57e183e7915fe6ee5cefb822b6daf06baf5dc790
Author:     Amy Liffey <amynka@gentoo.org>
AuthorDate: 2017-10-09 14:41:45 +0000
Commit:     Amy Liffey <amynka@gentoo.org>
CommitDate: 2017-10-09 14:54:34 +0000

    media-libs/opencv: fix protobuf dnn module bug #631418
    
    Suggested-by: Hanno Meyer-Thurow (geki) <h.mth@web.de>
    Suggested-by: Dennis Schridde <devurandom@gmx.net>
    Suggested-by: Magnus Kessler <Magnus.Kessler@gmx.net>
    Suggested-by: zappel@simple-co.de
    Closes: https://bugs.gentoo.org/631418
    
    Package-Manager: Portage-2.3.6, Repoman-2.3.1

 .../opencv/{opencv-3.3.0-r1.ebuild => opencv-3.3.0-r2.ebuild}       | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 37 Bertrand Jacquin 2017-10-09 23:45:30 UTC
Please note that this https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57e183e7915fe6ee5cefb822b6daf06baf5dc790 a different build error is present:

[ 96%] Linking CXX executable ../../bin/opencv_traincascade
cd /var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0-abi_x86_64.amd64/apps/traincascade && /usr/bin/cmake -E cmake_link_script CMakeFiles/opencv_traincascade.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++  -march=native -O2 -pipe -fomit-frame-pointer   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections  -msse -msse2 -msse3 -mssse3 -mpopcnt -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -Wno-overloaded-virtual  -Wl,-O1 -Wl,--as-needed  -rdynamic CMakeFiles/opencv_traincascade.dir/HOGfeatures.cpp.o CMakeFiles/opencv_traincascade.dir/boost.cpp.o CMakeFiles/opencv_traincascade.dir/cascadeclassifier.cpp.o CMakeFiles/opencv_traincascade.dir/features.cpp.o CMakeFiles/opencv_traincascade.dir/haarfeatures.cpp.o CMakeFiles/opencv_traincascade.dir/imagestorage.cpp.o CMakeFiles/opencv_traincascade.dir/lbpfeatures.cpp.o CMakeFiles/opencv_traincascade.dir/old_ml_boost.cpp.o CMakeFiles/opencv_traincascade.dir/old_ml_data.cpp.o CMakeFiles/opencv_traincascade.dir/old_ml_inner_functions.cpp.o CMakeFiles/opencv_traincascade.dir/old_ml_tree.cpp.o CMakeFiles/opencv_traincascade.dir/traincascade.cpp.o  -o ../../bin/opencv_traincascade -ldl -lm -lpthread -lrt -lGLU -lGL /usr/lib64/libtbb.so ../../lib/libopencv_objdetect.so.3.3.0 ../../lib/libopencv_calib3d.so.3.3.0 ../../lib/libopencv_features2d.so.3.3.0 ../../lib/libopencv_highgui.so.3.3.0 ../../lib/libopencv_flann.so.3.3.0 ../../lib/libopencv_videoio.so.3.3.0 ../../lib/libopencv_imgcodecs.so.3.3.0 ../../lib/libopencv_imgproc.so.3.3.0 ../../lib/libopencv_core.so.3.3.0
../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::resizeNN2_SSE4_1(cv::Range const&, cv::Mat const&, cv::Mat&, int*, int, double)'
../../lib/libopencv_core.so.3.3.0: undefined reference to `cv::opt_SSE4_1::cvtScale_SIMD_s16u16f32_SSE41(short const*, unsigned short*, int, float, float)'
../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::WarpAffineInvoker_Blockline_SSE41(int*, int*, short*, int, int, int)'
../../lib/libopencv_core.so.3.3.0: undefined reference to `cv::opt_SSE4_1::cvtScale_SIMD_s32u16f32_SSE41(int const*, unsigned short*, int, float, float)'
../../lib/libopencv_core.so.3.3.0: undefined reference to `cv::opt_SSE4_1::cvtScale_SIMD_u16u16f32_SSE41(unsigned short const*, unsigned short*, int, float, float)'
../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::convertMaps_nninterpolate32f1c16s_SSE41(float const*, float const*, short*, int)'
../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::convertMaps_32f1c16s_SSE41(float const*, float const*, short*, unsigned short*, int)'
../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::convertMaps_32f2c16s_SSE41(float const*, short*, unsigned short*, int)'
../../lib/libopencv_core.so.3.3.0: undefined reference to `cv::opt_SSE4_1::cvtScale_SIMD_f64u16f32_SSE41(double const*, unsigned short*, int, float, float)'
../../lib/libopencv_core.so.3.3.0: undefined reference to `cv::opt_SSE4_1::cvtScale_SIMD_s8u16f32_SSE41(signed char const*, unsigned short*, int, float, float)'
../../lib/libopencv_core.so.3.3.0: undefined reference to `cv::opt_SSE4_1::cvtScale_SIMD_u8u16f32_SSE41(unsigned char const*, unsigned short*, int, float, float)'
../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::resizeNN4_SSE4_1(cv::Range const&, cv::Mat const&, cv::Mat&, int*, int, double)'
../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::WarpPerspectiveLine_SSE4::getImpl(double const*)'
../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::VResizeLanczos4Vec_32f16u_SSE41(unsigned char const**, unsigned char*, unsigned char const*, int)'
../../lib/libopencv_core.so.3.3.0: undefined reference to `cv::opt_SSE4_1::cvtScale_SIMD_f32u16f32_SSE41(float const*, unsigned short*, int, float, float)'
../../lib/libopencv_core.so.3.3.0: undefined reference to `cv::opt_SSE4_1::Cvt_SIMD_f64u16_SSE41(double const*, unsigned short*, int)'
collect2: error: ld returned 1 exit status
make[2]: *** [apps/traincascade/CMakeFiles/opencv_traincascade.dir/build.make:393: bin/opencv_traincascade] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0-abi_x86_64.amd64'
make[1]: *** [CMakeFiles/Makefile2:2058: apps/traincascade/CMakeFiles/opencv_traincascade.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0-abi_x86_64.amd64'
make: *** [Makefile:163: all] Error 2
 * ERROR: media-libs/opencv-3.3.0-r2::gentoo failed (compile phase):
 *   emake failed

Attaching full log
Comment 38 Bertrand Jacquin 2017-10-09 23:46:16 UTC
Created attachment 498280 [details]
build.log
Comment 39 Amy Liffey gentoo-dev 2017-10-10 06:15:03 UTC
(In reply to Bertrand Jacquin from comment #38)
> Created attachment 498280 [details]
> build.log

Please open new bug with full build log and emerge --info.

Thank you