Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633900 - media-libs/opencv-3.3.0-r2: libopencv_*.so.3.3.0: undefined references to cv::opt_SSE4_1::* functions
Summary: media-libs/opencv-3.3.0-r2: libopencv_*.so.3.3.0: undefined references to cv:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amy Liffey
URL:
Whiteboard:
Keywords:
: 633978 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-10-10 00:10 UTC by Erik Zeek
Modified: 2019-01-24 09:24 UTC (History)
9 users (show)

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


Attachments
Build log (media-libs:opencv-3.3.0-r2:20171009-215556.log.gz,53.23 KB, application/gzip)
2017-10-10 00:10 UTC, Erik Zeek
Details
build_log (build.log.gz,34.93 KB, application/gzip)
2017-12-07 08:19 UTC, Branko Grubic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Zeek 2017-10-10 00:10:43 UTC
Created attachment 498282 [details]
Build log

OpenCV tries to link against optimized SSE4.1 functions that my Thuban doesn't have. The configure step seems to get it right, but something else doesn't notice.

../../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_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_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_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


emerge --info '=media-libs/opencv-3.3.0-r2::gentoo'
Portage 2.3.11 (python 3.5.4-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-6.4.0, glibc-2.25-r7, 4.13.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.13.5-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.4.1
KiB Mem:    16326532 total,    561012 free
KiB Swap:    6290424 total,   6290424 free
Timestamp of repository gentoo: Mon, 09 Oct 2017 21:30:01 +0000
Head commit of repository gentoo: a97be5e4f3ca5955da6618a2d80bf60d1e6bbff1
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p1.0) 2.29.1
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14::gentoo, 3.5.4::gentoo, 3.6.3::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.9.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.32::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.9.0::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-r7::gentoo
Repositories:

gentoo
    location: /gentoo/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: -i --no-p --omit-dir-times

grub2-themes
    location: /gentoo/local/layman/grub2-themes
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/grub2-themes-overlay.git
    masters: gentoo
    priority: 50

kde
    location: /gentoo/local/layman/kde
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50

science
    location: /gentoo/local/layman/science
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sci.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /gentoo/local/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

x11
    location: /gentoo/local/layman/x11
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/x11
    masters: gentoo
    priority: 50

zeekec
    location: /gentoo/local/portage
    masters: gentoo
    priority: 100

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -ggdb -mtune=native -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -ggdb -mtune=native -march=native"
DISTDIR="/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going -j 3 --rebuild-if-new-slot=y --backtrack=30"
FCFLAGS="-O2 -pipe -ggdb -mtune=native -march=native"
FEATURES="assume-digests binpkg-logs candy cgroup clean-logs collision-protect compress-build-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -ggdb -mtune=native -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 --load-average=15"
PKGDIR="/gentoo/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-i --no-p --omit-dir-times"
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="/gentoo/tmp"
USE="3dnow R S3TC X a52 aac aacplus aacs aalib accessibility acpi activities additions addressbook aesicm aften aimodules airplay alevt alisp all_sfx alsa amd64 amr amrenc anacron ancient android animgif ansi ant ao apache apache2 apm app archive armadillo atm attica audiofile audit auth auto-completion autoipd autotools avahi ayatana baremetal bash-completion bazaar bcmath bdf berkdb bidi bittorrent bl blas blender bloodsuckermaps bluray boost branding btrfs bugzilla bwscheduler bzip2 c++0x c++11 c++14 cacert cairo canna caps ccache cdda cddb cdinstall cdparanoia cdr celt cgi cheats chm cilk clamav clang cli client cloudprint cmake collab collada colordiff contactnotes contacts context contrast contrib convert-mozilla-cookies corefonts cracklib cron crypt cryptography cryptsetup csc cscope css ctype cups curl custom-optimization cxx d d3d9 data dbus debug-frame declarative default-compiler-rt default-libcxx designer detex development devhelp device-mapper dga dhcp dia discouraged distinct-l djvu dmraid dns docbook doctool doom doomsday dos dot double-precision down-root downloadorder dri dri3 drm drmaa drmkms dtmf dts dv dvb dvd dvdnav dvdr dvi dvipdfm ebook egl eigen elf elfutils embedded emboss emf emovix enca encode enscript epspdf epub ethernet evdev excel exceptions exif extensions extra extra-cardsets extra-ciphers extraengine faac faad facedetect faillog fam fancy farstream fastcgi fat fax fbcondecor fcgi fdk festival ffmpeg fftw filter finger firefox firmware fits flac flash flatfile flickr fluidsynth fontconfig fontforge fonts foomaticdb fortran fortran95 fortune fpx frei0r ftp fullscreen fuse gadu games gcj gd gdal gdbm gdml gegl geoclue geoip geolocation geonames geos ghcbootstrap gif gimp git gkrellm glade glamor glgd glib gltf glut gme gml gmp gmtfull gmttria gnome-online-accounts gnomecanvas gnuplot go gold google gopher gost gpac gpg gphoto2 gpm grammar graphics graphite graphviz grass groupwise gsf gsl gsm gstreamer gtk gtk3 gtkhtml gts gui guile gzip gzip-el h224 h281 h323 hash hbci hddtemp hdf hdf5 hdri help hesiod heterogeneous hexen high-ints highlight history hostip hou hpijs hscolour html htmlreport http httpd humanities hunspell hyphenation i18n ical iconv icq icu id3tag ide idea idn ieee1394 ignore-case image imagemagick imaging imap imlib importd inifile inkjar innodb-lz4 innodb-lzo innodb-snappy inotify introspection iostats iproute2 ipv6 ipython irc isag ithreads ivr jadetex jai java javascript jbig jce jit jmf john jpeg jpeg2k json kate kde kdecards kdenlive kdrive kernel kernel-patch keymap kipi kontact kpathsea kvm kwallet ladspa lame lapack lash lasi latex lcms ldap legacy-systray lensfun libass libburn libffi libkms liblockfile libnotify libssh2 libtiger libv4l libvirt libvirtd libwww lightning lights live lldb llvm lm_sensors localstorage lock log log4j logrotate logviewer logwatch lqr lto lua lua-cairo lua-imlib lua-rsvg luatex lvm lxc lyrics lz4 lzma lzo mad mail maildir manhole manual map mapimg maps marble math mathml matplotlib matroska mbrola md5sum mdadm mdnsresponder-compat media mediaplayer mediawiki melt mercurial metadata-analysis-api metapost metis mhash midi mikmod mime minizip mixer mjpeg mmap mms mng mod modpack module modules mono mopac7 mount mozdom mozilla mp3 mp3tunes mp4 mpeg mpi_njtree mplayer mpqc mtp mudflap multilib multimedia multiprocess multiuser musepack music musicbrainz mysql mysqli na_dd na_dtv na_icons nano-syntax nat native-extensions natspec nbconvert ncat ncurses ndiff net nethack netpbm network network-cron networking networkmanager new-clx nfs nfsdcld nfsv4 nfsv41 nls nmap-update nntp nocd nominatim notebook nowin nowlistening nping npp nptl nsplugin nss nsscache nssdb ntfs ntfsprogs ntp numpy nut nuv nvtt oauth objc objc++ objc-gc ocr octave odbcmanual odf ofa offensive offlinehelp ofx ogg ogm okteta okular omega oom openal opencv openexr opengl openinventor openmax openmp openssl opensslcrypt optimization opus orc osc oscar osd osdmenu osgapps osmesa otr ots overlay pager pam pam_ssh pango paranoidmsg parcheck parse-clocks parted pbins pbs pci pcntl pcre pcre16 pdf pdfannotextractor pdl2 pdo pep8 perl pgm pgplot phonon phyp physfs pim pink pipe pkcs11 plasma player playlist plazes plotutils plugins png pnm policykit pop portage portmon positioning posix postfix postproc postscript ppds pptx printsupport proj projectm proprietary-codecs protobuf psf pstricks publishers pulseaudio pvr pygments python q16 q32 q64 q8 qalculate qd qemu qhull qml qnx qos qrcode qt3support qt5 qthelp quesoglc quicktime quota qwt radio ramfs rar raw rc5 rcs readline redland regex remix remote rendering reports resources reviewboard rfc3779 rle rogue romio root rpc rpm rrdcgi rrdtool rss rtc rtf rtmp rtsp rubberband s3tc samba sasl sbcl scale0tilt scanner schroedinger science scipy scotch screen script scripting scripts scripttools scrypt sdk sdl sdl-image sdlgfx search search-index seccomp secure-delete semantic-desktop sensord sensors server session setproctitle setup sftp sha512 shadow shapefile sharedmem shm shmvideo shorten shout sift sigsegv sip sipim skins skydrive skype slp smime smp smpeg sms snappy sndfile snmp soap sockets socks sofalizer solver songs sou sound sounds soup sourceview sox spamassassin sparse spatialite speech speex spell sphinx spice sql sqlite srtp ssh ssh-agent ssl staging stars startup-notification statistics stats steamfonts steamgames_source_engine steamgames_tf2 steamgames_trine2 stream streaming subject-rewrite subtitles subunit subversion suexec suid svc svg swig symlink sync-plugin-portage syslog system-binutils system-boost system-cairo system-clang system-crontab system-ffmpeg system-icu system-jpeg system-jsoncpp system-libs system-libvpx system-libyaml system-llvm system-lua system-mupdf system-qemu system-qt system-renpy system-seabios system-sqlite system-tbb system-wine systemd systeminfo systemtap sysvipc szip t1lib taamey taglib tcl telepathy templates testbed tex4ht texi2html textures tga themes theora thesaurus threads threadsafe thumbnail thunar tidy tiff timezone tk tls tokenizer toolbar tools track-src-odirect transcode translator trayicon truetype tts tty-helpers tv_check tv_combiner tv_pick_cgi twolame udev udisks udunits umfpack uml unicode unicode_collation unique unzip upnp upower urandom urlpicpreview usb utempter utils uudeview uuid v4l vamp vcd vcdx vde vdpau vdr verify-file video videos vimeo virgl virt-network virtfs virtualbox visio visual vlc vlm vnc voice vorbis vpx vserver vte vxml warmstarts wav wavpack weather weather-metar weather-xoap web webcam webdav webinterface webkit webp webpresence websockets wide-unicode widevine widgets wifi wiki winbind wineappdb wininst winpopup wma wma-fixed wmf wordperfect wpg wps wxwidgets wyfv x11extras x264 x265 xa xattr xcb xcomposite xdm-auth xerces-c xetex xface xforms xft xhtml xine xinerama xkb xml xmlpatterns xmlreader xmlrpc xmlwriter xmp xnest xorg xosd xpm xrandr xrender xscreensaver xslt xtended xterm xv xvfb xvid xvmc yahoo-geo youtube zeitgeist zeroconf zeromq zip zlib zmq zsh-completion zvbi" ABI_X86="64 32" ALSA_CARDS="intel8x0 intel8x0m pxa2xx-ac97 pxa2xx-soc hda-intel" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias cgi cgid authn_core authz_core unixd socache_shmcb lbmethod_bytraffic slotmem_shm" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="nss" 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="pc efi-64" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport scripting-javascript wiki-publisher scripting-beanshell" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 ppc ppc64 ppc64abi32 x86_64" RUBY_TARGETS="ruby22 ruby23 ruby24" SANE_BACKENDS="canon canon630u canon_dr canon_pp hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hpsj5s net pnm" USERLAND="GNU" VIDEO_CARDS="r600 radeon" 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
Comment 1 josef.95 2017-10-10 09:26:44 UTC
Yes, I have here exactly the same error with the following CPU
uname -p
AMD Phenom(tm) II X6 1090T Processor

These CPU has the following CPU-Flags (from /proc/cpuinfo)
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr cpb hw_pstate vmmcall npt lbrv svm_lock nrip_save pausefilter
Comment 2 Arfrever Frehtes Taifersar Arahesis 2017-10-12 03:41:27 UTC
*** Bug 633978 has been marked as a duplicate of this bug. ***
Comment 3 Amy Liffey gentoo-dev 2017-10-12 08:51:07 UTC
I will try to disable them then. Working on it.. :) Thanks
Comment 4 Juergen Rose 2017-10-19 17:57:03 UTC
I get the same error with the following system:
...
../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::convertMaps_32f2c16s_SSE41(float const*, short*, unsigned short*, int)'
collect2: error: ld returned 1 exit status
make[2]: *** [modules/phase_unwrapping/CMakeFiles/example_phase_unwrapping_unwrap.dir/build.make:101: bin/example_phase_unwrapping_unwrap] 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:2117: modules/phase_unwrapping/CMakeFiles/example_phase_unwrapping_unwrap.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
 * 
 * If you need support, post the output of `emerge --info '=media-libs/opencv-3.3.0-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/opencv-3.3.0-r2::gentoo'`.
 * The complete build log is located at '/var/log/portage/media-libs:opencv-3.3.0-r2:20171019-091542.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/media-libs/opencv-3.3.0-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/opencv-3.3.0-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0-abi_x86_64.amd64'
 * S: '/var/tmp/portage/media-libs/opencv-3.3.0-r2/work/opencv-3.3.0'
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-7  CLASSPATH="" JAVA_HOME="/usr/lib64/icedtea7"
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER=""
and of course, the output of emerge --info =opencv-3.3.0

>>> Failed to emerge media-libs/opencv-3.3.0-r2, Log file:

>>>  '/var/log/portage/media-libs:opencv-3.3.0-r2:20171019-091542.log'
root@condor:/root(18)# uname -a
Linux condor 4.13.2-gentoo #1 SMP Mon Sep 18 15:07:41 CEST 2017 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz GenuineIntel GNU/Linux
root@condor:/root(19)#
Comment 5 Juergen Rose 2017-10-24 16:48:07 UTC
My cpuflags are:
root@condor:/root(8)# cat /proc/cpuinfo | grep flags
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm tpr_shadow dtherm
...


Any news?
Comment 6 Amy Liffey gentoo-dev 2017-10-24 17:34:37 UTC
(In reply to Juergen Rose from comment #5)
> My cpuflags are:
> root@condor:/root(8)# cat /proc/cpuinfo | grep flags
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm
> constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64
> monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm tpr_shadow dtherm
> ...
> 
> 
> Any news?

Working on it.
Comment 7 Juergen Rose 2017-11-02 15:29:32 UTC
The same issue happens with opencv-3.3.0-r3.
Comment 8 Dale 2017-11-08 07:41:37 UTC
I'm getting this on opencv-3.3.0-r4 just now.  I synced about 3 hours before this post and emerge compiled other packages for a hour or so before this one failed.  I copied from a good bit before "Error 1" and a bit after.  There are actually two "Error 1" listed.  If you need more info, let me know.  


[ 75%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/akaze.cpp.o
cd /var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0-abi_x86_64.amd64/modules/features2d && /usr/bin/x86_64-pc-linux-gnu-g++ -DCVAPI_EXPORTS -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0-abi_x86_64.amd64 -isystem /usr/include/eigen3 -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/features2d/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/features2d/src -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0-abi_x86_64.amd64/modules/features2d -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/core/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/flann/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/imgproc/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/imgcodecs/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/videoio/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/highgui/include   -DNDEBUG -march=native -O2 -pipe   -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 -mpopcnt -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -fPIC   -o CMakeFiles/opencv_features2d.dir/src/akaze.cpp.o -c /var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/features2d/src/akaze.cpp
[ 75%] Linking CXX executable ../../bin/opencv_annotation
cd /var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0-abi_x86_64.amd64/apps/annotation && /usr/bin/cmake -E cmake_link_script CMakeFiles/opencv_annotation.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++  -march=native -O2 -pipe   -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 -mpopcnt -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp  -Wl,-O1 -Wl,--as-needed  -rdynamic CMakeFiles/opencv_annotation.dir/opencv_annotation.cpp.o  -o ../../bin/opencv_annotation -ldl -lm -lpthread -lrt -lGLU -lGL /usr/lib64/libtbb.so ../../lib/libopencv_highgui.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::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_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_s16u16f32_SSE41(short const*, unsigned short*, int, float, float)'
../../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_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::convertMaps_nninterpolate32f1c16s_SSE41(float const*, float const*, short*, 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_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)'
../../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::WarpPerspectiveLine_SSE4::getImpl(double const*)'
../../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::convertMaps_32f1c16s_SSE41(float const*, float const*, short*, unsigned short*, int)'
../../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::WarpAffineInvoker_Blockline_SSE41(int*, int*, short*, int, int, int)'
collect2: error: ld returned 1 exit status
make[2]: *** [apps/annotation/CMakeFiles/opencv_annotation.dir/build.make:103: bin/opencv_annotation] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0-abi_x86_64.amd64'
make[1]: *** [CMakeFiles/Makefile2:2214: apps/annotation/CMakeFiles/opencv_annotation.dir/all] Error 2
[ 75%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/bagofwords.cpp.o
cd /var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0-abi_x86_64.amd64/modules/features2d && /usr/bin/x86_64-pc-linux-gnu-g++ -DCVAPI_EXPORTS -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0-abi_x86_64.amd64 -isystem /usr/include/eigen3 -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/features2d/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/features2d/src -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0-abi_x86_64.amd64/modules/features2d -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/core/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/flann/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/imgproc/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/imgcodecs/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/videoio/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/highgui/include   -DNDEBUG -march=native -O2 -pipe   -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 -mpopcnt -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -fPIC   -o CMakeFiles/opencv_features2d.dir/src/bagofwords.cpp.o -c /var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/features2d/src/bagofwords.cpp
[ 76%] Linking CXX executable ../../bin/opencv_visualisation
cd /var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0-abi_x86_64.amd64/apps/visualisation && /usr/bin/cmake -E cmake_link_script CMakeFiles/opencv_visualisation.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++  -march=native -O2 -pipe   -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 -mpopcnt -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp  -Wl,-O1 -Wl,--as-needed  -rdynamic CMakeFiles/opencv_visualisation.dir/opencv_visualisation.cpp.o  -o ../../bin/opencv_visualisation -ldl -lm -lpthread -lrt -lGLU -lGL /usr/lib64/libtbb.so ../../lib/libopencv_highgui.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 
[ 76%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/blobdetector.cpp.o
cd /var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0-abi_x86_64.amd64/modules/features2d && /usr/bin/x86_64-pc-linux-gnu-g++ -DCVAPI_EXPORTS -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0-abi_x86_64.amd64 -isystem /usr/include/eigen3 -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/features2d/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/features2d/src -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0-abi_x86_64.amd64/modules/features2d -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/core/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/flann/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/imgproc/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/imgcodecs/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/videoio/include -I/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/highgui/include   -DNDEBUG -march=native -O2 -pipe   -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 -mpopcnt -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -fPIC   -o CMakeFiles/opencv_features2d.dir/src/blobdetector.cpp.o -c /var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0/modules/features2d/src/blobdetector.cpp
../../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_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_s16u16f32_SSE41(short const*, unsigned short*, int, float, float)'
../../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_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::convertMaps_nninterpolate32f1c16s_SSE41(float const*, float const*, short*, 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_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)'
../../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::WarpPerspectiveLine_SSE4::getImpl(double const*)'
../../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::convertMaps_32f1c16s_SSE41(float const*, float const*, short*, unsigned short*, int)'
../../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::WarpAffineInvoker_Blockline_SSE41(int*, int*, short*, int, int, int)'
collect2: error: ld returned 1 exit status
make[2]: *** [apps/visualisation/CMakeFiles/opencv_visualisation.dir/build.make:103: bin/opencv_visualisation] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/opencv-3.3.0-r4/work/opencv-3.3.0-abi_x86_64.amd64'
make[1]: *** [CMakeFiles/Makefile2:2273: apps/visualisation/CMakeFiles/opencv_visualisation.dir/all] Error 2
[ 76%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/brisk.cpp.o
Comment 9 Juergen Rose 2017-11-08 09:58:45 UTC
(In reply to josef.95 from comment #1)
> Yes, I have here exactly the same error with the following CPU
> uname -p
> AMD Phenom(tm) II X6 1090T Processor
> 
> These CPU has the following CPU-Flags (from /proc/cpuinfo)
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt
> pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc
> cpuid extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm
> extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
> nodeid_msr cpb hw_pstate vmmcall npt lbrv svm_lock nrip_save pausefilter

I have a similar AMD phenom where I could emerge opencv-3.3.0-r4:
rose@caiman:/home/rose(3)$ uname -p
AMD Phenom(tm) II X6 1090T Processor
rose@caiman:/home/rose(4)$ cat /proc/cpuinfo | grep flags
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt cpb hw_pstate vmmcall npt lbrv svm_lock nrip_save pausefilter
rose@caiman:/home/rose(5)$ qlist -Iv opencv
media-libs/opencv-3.3.0-r4
Comment 10 Juergen Rose 2017-11-08 10:10:12 UTC
rose@caiman:/home/rose(7)$ emerge --info opencv
Portage 2.3.13 (python 3.4.6-final-0, default/linux/amd64/13.0, gcc-6.4.0, glibc-2.25-r9, 4.13.11-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.13.11-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.4.1
KiB Mem:    16174680 total,   3568784 free
KiB Swap:  100663280 total, 100663280 free
Timestamp of repository gentoo: Wed, 08 Nov 2017 03:00:01 +0000
Head commit of repository gentoo: 988a4482ed5f7d16172e8775423c9d9d5e958032
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p2) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14::gentoo, 3.4.6::gentoo, 3.5.4::gentoo, 3.6.3::gentoo
dev-util/cmake:           3.9.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.5::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.28-r2::gentoo, 2.28.1::gentoo, 2.29::gentoo, 2.29.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.4.0-r3::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.9.0::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-r9::gentoo
Repositories:

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

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

g-cpan
    location: /var/lib/cpan
    masters: gentoo
    priority: 1

g-octave
    location: /var/lib/g-octave
    masters: gentoo
    priority: 2

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA NVIDIA-CUDA Nero-AAC-EULA GIMPS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
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/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks 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"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
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="3dnow 3dnowext 64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 amr ao apache2 apng applet archive armadillo arpack asf aspell assistant atlas audiofile automap automount barcode bash-completion berkdb blas blast bluetooth bluray boost btrfs bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cilk clang cli cmake collada contrib cracklib crypt css cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia digitalradio djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples excel exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx ftp fuse gcj gd gdal gdbm gedit geoip geolocation geos gfortran gif gimp git glade glamor glib glpk gml gmp gnome gnome-keyring gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3tag ide imagemagick imap inotify introspection ipod ipv6 irda ithreads jadetex java jbig jit john jpeg jpeg2k kate kdepim kdrive kerberos keymap kpathsea kvm ladspa lame lapack latex lcms ldap lensfun libffi libgda libkms libnotify libsamplerate live lm_sensors lua lzma lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mkl mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mpi-threads mplayer mtp multilib multimedia musepack musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking nfs nls nntp nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ofa ogdi ogg opencl opencv openexr opengl openmp openvg pam pango pcre pda pdf pdl2 perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds ppp preview-latex proj projectm pstricks pulseaudio python q16 q32 qemu qhull qml qt3support qt4 qt5 quicktime raw readline reiserfs reports rle romio rpc rrdcgi rrdtool sage samba sasl schroedinger science sdk sdl seccomp secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite ssl stlport subtitles subversion sudo suexec svg svm swig systemd szip t1lib tbb tcl tcpd tex tex4ht theora thesaurus threads thunderbird tidy tiff tk tools truetype udev udisks unicode usb utempter v4l v4l2 vaapi vala valgrind vdpau video vim-syntax virt-network virtualbox visio vorbis vpx vtk wav wayland webdav webdav-serf webkit wmf wxwidgets x264 xa xattr xcb xen xetex xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zsh-completion zvbi" 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="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="nss" 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="emu efi-64 pc xen" INPUT_DEVICES="keyboard mouse evdev void" KERNEL="linux" L10N="de en fr ru" LCD_DEVICES="cfontz hd44780 mtxorb ncurses X lcd2usb lcdlinux png usblcd SureElec" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en fr ru" LIRC_DEVICES="devinput" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="radeon displaylink" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

media-libs/opencv-3.3.0-r4::gentoo was built with the following:
USE="contrib eigen examples ffmpeg gdal gphoto2 gstreamer gtk java jpeg jpeg2k lapack openexr opengl openmp png python qt5 tesseract threads tiff v4l vaapi xine -contrib_cvv -contrib_hdf -contrib_sfm -contrib_xfeatures2d -cuda -debug -gflags -glog -ieee1394 (-ipp) -libav -opencl -pch -testprograms -vtk -webp" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_4 -python3_5"
Comment 11 Anton Lavrov 2017-11-27 15:28:25 UTC
I also have the same issue with media-libs/opencv-3.3.0-r4 and Phenom II X4 945 - I can attach the logs if needed.

Amy, any news on your work?

# emerge --info '=media-libs/opencv-3.3.0-r4::gentoo'
Portage 2.3.16 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-6.4.0, glibc-2.26-r3, 4.14.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.0-gentoo-x86_64-AMD_Phenom-tm-_II_X4_945_Processor-with-gentoo-2.4.1
KiB Mem:    24655000 total,    381804 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Sun, 26 Nov 2017 03:30:01 +0000
Head commit of repository gentoo: cd45d566ecb6023d591fb06d11e4851eccb7cd46
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p2) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.6-r1::gentoo
dev-util/cmake:           3.10.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.8::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo, 7.2.0::gentoo
sys-devel/gcc-config:     1.9.0::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.26-r3::gentoo
Repositories:

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

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

openstreetmap
    location: /var/lib/layman/openstreetmap
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CC="gcc"
CFLAGS="-O2 -march=native -pipe"
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"
CXX="g++"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="  ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo  ftp://mirror.yandex.ru/gentoo-distfiles  http://src.gentoo.pl  "
LANG="ru_RU.UTF-8"
LC_ALL=""
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/portage_tmpfs"
USE="X a52 aac acl acpi activities alsa amd64 bash-completion bidi bluetooth branding bzip2 cairo cdda cli consolekit cracklib crypt cups cxx dbus declarative djvu dri dts dvd dvdr emboss encode exif fam fbcon ffmpeg firefox flac fontconfig fortran ftp gdbm gif glamor gphoto2 gpm iconv icu imagemagick imap ipv6 jpeg kde kipi kwallet lcms ldap libnotify mad matroska mime mmap mng modules mp3 mp4 mpeg mplayer multilib ncurses nls nptl nsplugin ogg opengl openmp openssl oss pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt4 qt5 readline samba sasl sdl seccomp session spell ssl startup-notification svg syslog tcpd threads tiff truetype udev udisks unicode usb v4l vdpau vim-syntax vorbis wavpack widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ice1712 ice1724" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" 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" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" SANE_BACKENDS="pixma" USERLAND="GNU" VIDEO_CARDS="radeon" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 12 Amy Liffey gentoo-dev 2017-11-27 16:03:11 UTC

(In reply to Anton Lavrov from comment #11)
> I also have the same issue with media-libs/opencv-3.3.0-r4 and Phenom II X4
> 945 - I can attach the logs if needed.
> 
> Amy, any news on your work?
> 
> # emerge --info '=media-libs/opencv-3.3.0-r4::gentoo'
> Portage 2.3.16 (python 3.4.6-final-0,
> default/linux/amd64/13.0/desktop/plasma, gcc-6.4.0, glibc-2.26-r3,
> 4.14.0-gentoo x86_64)
> =================================================================
>                          System Settings
> =================================================================
> System uname:
> Linux-4.14.0-gentoo-x86_64-AMD_Phenom-tm-_II_X4_945_Processor-with-gentoo-2.
> 4.1
> KiB Mem:    24655000 total,    381804 free
> KiB Swap:    2097148 total,   2097148 free
> Timestamp of repository gentoo: Sun, 26 Nov 2017 03:30:01 +0000
> Head commit of repository gentoo: cd45d566ecb6023d591fb06d11e4851eccb7cd46
> sh bash 4.4_p12
> ld GNU ld (Gentoo 2.29.1 p2) 2.29.1
> app-shells/bash:          4.4_p12::gentoo
> dev-java/java-config:     2.2.0-r3::gentoo
> dev-lang/perl:            5.26.1-r1::gentoo
> dev-lang/python:          2.7.14-r1::gentoo, 3.4.6-r1::gentoo
> dev-util/cmake:           3.10.0::gentoo
> dev-util/pkgconfig:       0.29.2::gentoo
> sys-apps/baselayout:      2.4.1-r2::gentoo
> sys-apps/openrc:          0.34.8::gentoo
> sys-apps/sandbox:         2.12::gentoo
> sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
> sys-devel/automake:       1.15.1-r1::gentoo
> sys-devel/binutils:       2.29.1-r1::gentoo
> sys-devel/gcc:            6.4.0::gentoo, 7.2.0::gentoo
> sys-devel/gcc-config:     1.9.0::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.26-r3::gentoo
> Repositories:
> 
> gentoo
>     location: /usr/portage
>     sync-type: rsync
>     sync-uri: rsync://rsync.gentoo.org/gentoo-portage
>     priority: -1000
>     sync-rsync-extra-opts: 
> 
> x-portage
>     location: /usr/local/portage
>     masters: gentoo
>     priority: 0
> 
> openstreetmap
>     location: /var/lib/layman/openstreetmap
>     masters: gentoo
>     priority: 50
> 
> ACCEPT_KEYWORDS="amd64 ~amd64"
> ACCEPT_LICENSE="*"
> CBUILD="x86_64-pc-linux-gnu"
> CC="gcc"
> CFLAGS="-O2 -march=native -pipe"
> 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"
> CXX="g++"
> CXXFLAGS="-O2 -march=native -pipe"
> DISTDIR="/usr/portage/distfiles"
> FCFLAGS="-O2 -pipe"
> FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified
> distlocks ebuild-locks fixlafiles merge-sync multilib-strict news
> parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict
> unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv
> usersandbox usersync xattr"
> FFLAGS="-O2 -pipe"
> GENTOO_MIRRORS="  ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo 
> ftp://mirror.yandex.ru/gentoo-distfiles  http://src.gentoo.pl  "
> LANG="ru_RU.UTF-8"
> LC_ALL=""
> 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/portage_tmpfs"
> USE="X a52 aac acl acpi activities alsa amd64 bash-completion bidi bluetooth
> branding bzip2 cairo cdda cli consolekit cracklib crypt cups cxx dbus
> declarative djvu dri dts dvd dvdr emboss encode exif fam fbcon ffmpeg
> firefox flac fontconfig fortran ftp gdbm gif glamor gphoto2 gpm iconv icu
> imagemagick imap ipv6 jpeg kde kipi kwallet lcms ldap libnotify mad matroska
> mime mmap mng modules mp3 mp4 mpeg mplayer multilib ncurses nls nptl
> nsplugin ogg opengl openmp openssl oss pam pango pcre pdf phonon plasma png
> policykit ppds qml qt3support qt4 qt5 readline samba sasl sdl seccomp
> session spell ssl startup-notification svg syslog tcpd threads tiff truetype
> udev udisks unicode usb v4l vdpau vim-syntax vorbis wavpack widgets
> wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib"
> ABI_X86="64" ALSA_CARDS="ice1712 ice1724" 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" COLLECTD_PLUGINS="df interface irq load
> memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt
> sse sse2 sse3 sse4a" 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" INPUT_DEVICES="evdev"
> KERNEL="linux" L10N="en ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780
> lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
> presenter-minimizer" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice"
> PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5"
> PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4"
> RUBY_TARGETS="ruby22" SANE_BACKENDS="pixma" USERLAND="GNU"
> VIDEO_CARDS="radeon" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK,
> PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
> PORTAGE_RSYNC_EXTRA_OPTS

You could help by sending your build.log. :)

Thank you
Comment 13 Juergen Rose 2017-12-02 00:32:40 UTC
'USE="-contrib -eigen -examples -ffmpeg -gdal -gphoto2 -gtk -gstreamer -java -jpeg -jpeg2k -lapack -openexr -opengl -openmp -png -python -qt5 -tesseract -threads -tiff -v4l -vaapi -xine" MAKEOPTS=-j1  emerge -v1 opencv' fails as well with the same error.
Comment 14 Branko Grubic 2017-12-07 08:19:00 UTC
Created attachment 508634 [details]
build_log

Attaching build log from my ~amd64 box.

Portage 2.3.16 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop, gcc-7.2.0, glibc-2.26-r3, 4.9.66-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.66-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.4.1
KiB Mem:     6044616 total,   1425172 free
KiB Swap:    4194300 total,   4192844 free
Timestamp of repository gentoo: Thu, 07 Dec 2017 00:45:01 +0000
Head commit of repository gentoo: a68d4d6d99bce54902f408696f239223decc25b2
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p2) 2.29.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.6-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.10.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            7.2.0::gentoo
sys-devel/gcc-config:     1.9.0-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

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

packages
    location: /home/packages
    masters: gentoo
    priority: 10

Installed sets: @steam
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
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="--quiet-build"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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 alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gphoto2 gpm gstreamer gtk harfbuzz iconv ipv6 jpeg lcms libnotify mad mmx mmxext mng modules mp3 mp4 mpeg mtp multilib ncurses nls nptl ogg opengl openmp pam pango pch pcre pdf pie png policykit ppds pulseaudio qt3support qt5 readline samba sdl seccomp session smp spell sse sse2 sse3 ssl ssp ssse3 startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb v4l vdpau vorbis vpx wxwidgets x264 x265 xattr xcb xinerama xml 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 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="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-US sr sr-Latn" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US sr sr@latin" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22" SANE_BACKENDS="canon hp" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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
Comment 15 Juergen Rose 2018-01-16 17:28:36 UTC
I get now the same error with the next Intel based system, now with opencv-3.3.0-r4. 'eemerge -v1 opencv' fails with:
...
 ../../lib/libopencv_imgproc.so.3.3.0: undefined reference to `cv::opt_SSE4_1::WarpAffineInvoker_Blockline_SSE41(int*, int*, short*, int, int, int)'
collect2: error: ld returned 1 exit status



root@wildcat:/root(30)# emerge --info '=media-libs/opencv-3.3.0-r4::gentoo'

!!! Your current profile is deprecated and not supported anymore.
!!! Use eselect profile to update your profile.
!!! Please upgrade to the following profile if possible:

        default/linux/amd64/17.0/desktop/gnome/systemd

You may use the following command to upgrade:

        eselect profile set default/linux/amd64/17.0/desktop/gnome/systemd

Portage 2.3.19 (python 2.7.14-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-6.4.0, glibc-2.26-r5, 4.13.3-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.13.3-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-2.4.1
KiB Mem:     3970844 total,   2022788 free
KiB Swap:   12582908 total,  11808576 free
Timestamp of repository gentoo: Tue, 16 Jan 2018 03:00:01 +0000
Head commit of repository gentoo: 394df8fbb8cf7a0b9f48b5baf588e048e934857b
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
distcc[18799] (dcc_trace_version) distcc 3.2rc1 x86_64-pc-linux-gnu; built Aug 28 2017 22:36:36 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r101::sage-on-gentoo, 3.4.6-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.10.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.32::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo, 7.2.0-r1::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r5::gentoo
Repositories:

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

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

g-cpan
    location: /var/lib/cpan
    masters: gentoo
    priority: 1

g-octave
    location: /var/lib/g-octave
    masters: gentoo
    priority: 2

ago
    location: /var/lib/layman/ago
    masters: gentoo
    priority: 50

sage-on-gentoo
    location: /var/lib/layman/sage-on-gentoo
    masters: gentoo science
    priority: 50

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 50

tlp
    location: /var/lib/layman/tlp
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA NVIDIA-CUDA Nero-AAC-EULA GIMPS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/php/apache2-php7.1/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks 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="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en fr ru"
MAKEOPTS="-j3"
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="64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 amr ao apache2 apng applet archive armadillo arpack asf aspell assistant atlas audiofile automap automount barcode bash-completion berkdb blas blast bluetooth bluray boost branding btrfs bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cilk clang cli cmake collada colord contrib crypt css cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia digitalradio djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples excel exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx ftp fuse gcj gd gdal gdbm gedit geoip geolocation geos gfortran gif gimp git glade glamor glib glpk gml gmp gnome gnome-keyring gnome-online-accounts gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile hdaps hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3tag ide imagemagick imap inotify introspection ipod ipv6 ithreads jadetex jbig jit john jpeg jpeg2k kate kde kdepim kdrive kerberos keymap kpathsea kvm ladspa lame lapack latex lcms ldap lensfun libffi libgda libkms libnotify libsamplerate libsecret live lm_sensors lua lzma lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mpi-threads mplayer mtp multilib multimedia musepack musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking nfs nls nntp nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ofa ogdi ogg opencl opencv openexr opengl openmp openvg pam pango pcre pda pdf pdl2 perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds ppp preview-latex proj projectm pstricks pulseaudio python q16 q32 qemu qhull qml qt3support qt5 quicktime raw readline reiserfs reports rle romio rpc rrdcgi rrdtool rtlsdr sage samba sasl schroedinger science sdk sdl seccomp secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite ssl startup-notification stlport subtitles subversion sudo suexec svg svm swig systemd szip t1lib tbb tcl tcpd tex tex4ht theora thesaurus thinkpad threads thunderbird tidy tiff tk tools tracker truetype udev udisks unicode upower usb utempter v4l v4l2 vaapi vala valgrind vdpau video vim-syntax virt-network virtualbox visio vorbis vpx vtk wav wayland webdav webdav-serf webkit wifi wmf wxwidgets x264 xa xattr xcb xen xetex xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zsh-completion zvbi" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog sensors thermal" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="aivdm ashtech earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 navcom ntrip oceanserver oncore rtcm104v2 rtcm104v3 sirf superstar2 tnt tripmate tsip ublox nmea0183 nmea2000 passthrough" GRUB_PLATFORMS="emu efi-64 pc xen" INPUT_DEVICES="keyboard mouse evdev synaptics void" KERNEL="linux" L10N="de en fr ru" LCD_DEVICES="cfontz hd44780 mtxorb ncurses X lcd2usb lcdlinux png usblcd SureElec" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="devinput" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel displaylink" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS




root@wildcat:/root(31)# emerge -pqv '=media-libs/opencv-3.3.0-r4::gentoo'
[ebuild  r  U ] media-libs/opencv-3.3.0-r4 [3.2.0-r3] USE="contrib eigen examples ffmpeg gdal gphoto2 gstreamer gtk jpeg jpeg2k lapack openexr opengl openmp png python qt5 tesseract threads tiff v4l vaapi xine -contrib_cvv -contrib_hdf -contrib_sfm -contrib_xfeatures2d -cuda -debug -gflags -glog -ieee1394 (-ipp) -java -libav -opencl -pch -testprograms -vtk -webp" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_5* -python3_4*" 
[ebuild  rR   ] media-video/vlc-2.2.8-r1  USE="X a52 aalib alsa atmo avcodec avformat bluray cdda cddb dbus dts dvb dvbpsi dvd encode faad ffmpeg flac fontconfig gcrypt gnome gnutls gstreamer httpd jpeg kate libass libnotify libsamplerate libtiger live lua matroska mp3 mpeg mtp musepack ncurses ogg opencv opengl opus png postproc projectm pulseaudio qt5 samba schroedinger sdl shout speex svg swscale theora truetype udev v4l vaapi vdpau vlm vorbis vpx wma-fixed x264 x265 xcb xml xv zvbi (-altivec) (-audioqueue) -bidi -chromaprint -dc1394 -debug (-directx) (-dxva2) -fdk -fluidsynth -gme -growl -ieee1394 -jack -libav -libcaca -libtar -linsys -lirc (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) -modplug (-neon) -omxil -optimisememory -rdp -rtsp -run-as-root -sdl-image -sftp -sid -skins -taglib {-test} -tremor -twolame -upnp -vcdx -vnc -zeroconf" CPU_FLAGS_X86="mmx sse" 

The following packages are causing rebuilds:

  (media-libs/opencv-3.3.0-r4:0/3.3::gentoo, ebuild scheduled for merge) causes rebuilds for:
    (media-video/vlc-2.2.8-r1:0/5-8::gentoo, ebuild scheduled for merge)
Comment 16 josef.95 2018-01-21 23:57:44 UTC
Hm, with the following workaround it builds here successful
CXXFLAGS="${CFLAGS} -mno-sse4.1" emerge -av1 opencv
Comment 17 Juergen Rose 2018-01-27 13:36:47 UTC
(In reply to josef.95 from comment #16)
> Hm, with the following workaround it builds here successful
> CXXFLAGS="${CFLAGS} -mno-sse4.1" emerge -av1 opencv

This workaround works for me too. But I don't understand why I have to set -mno-sse4.1 explicitly, if my CPU_FLAGS_X86 does not contain SSE4:

root@lynx2:/root(14)# grep CPU /etc/portage/make.conf
CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3"                   # lynx2 condor
Comment 18 Reuben Martin 2018-02-03 17:32:35 UTC
Explicitly disabling SSE4.1 compiler optimizations did not work for me. (Phenom II CPU) I had to add -DCPU_DISPATCH=OFF to the ebuild's cmake config.
Comment 19 Juergen Rose 2018-02-07 13:37:41 UTC
I still get the error now with opencv-3.3.0-r5. 

root@condor:/var/tmp/portage/app-office/libreoffice-6.0.0.3/work/libreoffice-6.0.0.3(281)# cpuid2cpuflags 
CPU_FLAGS_X86: mmx mmxext sse sse2 sse3 ssse3
root@condor:/var/tmp/portage/app-office/libreoffice-6.0.0.3/work/libreoffice-6.0.0.3(282)# uname -a
Linux condor 4.15.0-gentoo #1 SMP Mon Jan 29 17:16:24 CET 2018 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz GenuineIntel GNU/Linux


'CXXFLAGS="${CFLAGS} -mno-sse4.1" emerge -av1 opencv' works.
Comment 20 Larry the Git Cow gentoo-dev 2018-05-25 19:26:29 UTC
The bug has been closed via the following commit(s):

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

commit f3c8fe50642f04ec8434ee96f153689cedb8ec5c
Author:     Amy Liffey <amynka@gentoo.org>
AuthorDate: 2018-05-25 19:23:46 +0000
Commit:     Amy Liffey <amynka@gentoo.org>
CommitDate: 2018-05-25 19:26:03 +0000

    media-libs/opencv: version bump 3.4.1
    
    Closes: https://bugs.gentoo.org/642800
    Closes: https://bugs.gentoo.org/633900
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 media-libs/opencv/Manifest                         |   4 +
 .../files/opencv-3.4.0-disable-download.patch      |  29 ++
 media-libs/opencv/metadata.xml                     |   1 +
 media-libs/opencv/opencv-3.4.1.ebuild              | 495 +++++++++++++++++++++
 4 files changed, 529 insertions(+)
Comment 21 Juergen Rose 2018-07-15 15:21:46 UTC
(In reply to Larry the Git Cow from comment #20)
> The bug has been closed via the following commit(s):
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=f3c8fe50642f04ec8434ee96f153689cedb8ec5c
> 
> commit f3c8fe50642f04ec8434ee96f153689cedb8ec5c
> Author:     Amy Liffey <amynka@gentoo.org>
> AuthorDate: 2018-05-25 19:23:46 +0000
> Commit:     Amy Liffey <amynka@gentoo.org>
> CommitDate: 2018-05-25 19:26:03 +0000
> 
>     media-libs/opencv: version bump 3.4.1
>     
>     Closes: https://bugs.gentoo.org/642800
>     Closes: https://bugs.gentoo.org/633900
>     Package-Manager: Portage-2.3.24, Repoman-2.3.6
> 
>  media-libs/opencv/Manifest                         |   4 +
>  .../files/opencv-3.4.0-disable-download.patch      |  29 ++
>  media-libs/opencv/metadata.xml                     |   1 +
>  media-libs/opencv/opencv-3.4.1.ebuild              | 495
> +++++++++++++++++++++
>  4 files changed, 529 insertions(+)



It still fails for me with opencv-3.4.1-r2 on AMD phenom systems.
Comment 22 Shiba 2019-01-23 23:59:30 UTC
My CPU (AMD Athlon 64 X2)
CPU_FLAGS_X86: 3dnow 3dnowext mmx mmxext sse sse2 sse3


So the ebuild sets this:
-DENABLE_SSE=yes -DENABLE_SSE2=yes -DENABLE_SSE3=yes -DENABLE_SSSE3=no -DENABLE_SSE41=no -DENABLE_SSE42=no -DENABLE_POPCNT=no -DENABLE_AVX=no -DENABLE_AVX2=no -DENABLE_FMA3=no


At the end of the configure I get:
--   CPU/HW features:
--     Baseline:                    SSE SSE SSE2 SSE2 SSE3 SSE3 POPCNT
--       requested:                 DETECT
--       required:                  SSE SSE2 SSE3
--       disabled:                  SSSE3 SSE4_1 SSE4_2 POPCNT AVX AVX2 FMA3


Then it compiles fine, however when I try to launch for example Shotcut, it crashes with:
******************************************************************
* FATAL ERROR:                                                   *
* This OpenCV build doesn't support current CPU/HW configuration *
*                                                                *
* Use OPENCV_DUMP_CONFIG=1 environment variable for details      *
******************************************************************

Required baseline features:
SSE - OK
SSE - OK
SSE2 - OK
SSE2 - OK
SSE3 - OK
SSE3 - OK
POPCNT - NOT AVAILABLE
OpenCV(3.4.1) Error: Assertion failed (Missing support for required CPU baseline features. Check OpenCV build configuration and required CPU/HW setup.) in initialize, file /var/tmp/portage/media-libs/opencv-3.4.1-r5/work/opencv-3.4.1/modules/core/src/system.cpp, line 487
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(3.4.1) /var/tmp/portage/media-libs/opencv-3.4.1-r5/work/opencv-3.4.1/modules/core/src/system.cpp:487: error: (-215) Missing support for required CPU baseline features. Check OpenCV build configuration and required CPU/HW setup. in function initialize


To me it seemed a somewhat related flag misconfiguration issue, is it not? Should I file a new bug report?
Comment 23 Branko Grubic 2019-01-24 06:29:20 UTC
(In reply to Shiba from comment #22)
> My CPU (AMD Athlon 64 X2)
> CPU_FLAGS_X86: 3dnow 3dnowext mmx mmxext sse sse2 sse3
> 
> 
> So the ebuild sets this:
> -DENABLE_SSE=yes -DENABLE_SSE2=yes -DENABLE_SSE3=yes -DENABLE_SSSE3=no
> -DENABLE_SSE41=no -DENABLE_SSE42=no -DENABLE_POPCNT=no -DENABLE_AVX=no
> -DENABLE_AVX2=no -DENABLE_FMA3=no
> 
> 
> At the end of the configure I get:
> --   CPU/HW features:
> --     Baseline:                    SSE SSE SSE2 SSE2 SSE3 SSE3 POPCNT
> --       requested:                 DETECT
> --       required:                  SSE SSE2 SSE3
> --       disabled:                  SSSE3 SSE4_1 SSE4_2 POPCNT AVX AVX2 FMA3
> 
> 
> Then it compiles fine, however when I try to launch for example Shotcut, it
> crashes with:
> ******************************************************************
> * FATAL ERROR:                                                   *
> * This OpenCV build doesn't support current CPU/HW configuration *
> *                                                                *
> * Use OPENCV_DUMP_CONFIG=1 environment variable for details      *
> ******************************************************************
> 
> Required baseline features:
> SSE - OK
> SSE - OK
> SSE2 - OK
> SSE2 - OK
> SSE3 - OK
> SSE3 - OK
> POPCNT - NOT AVAILABLE
> OpenCV(3.4.1) Error: Assertion failed (Missing support for required CPU
> baseline features. Check OpenCV build configuration and required CPU/HW
> setup.) in initialize, file
> /var/tmp/portage/media-libs/opencv-3.4.1-r5/work/opencv-3.4.1/modules/core/
> src/system.cpp, line 487
> terminate called after throwing an instance of 'cv::Exception'
>   what():  OpenCV(3.4.1)
> /var/tmp/portage/media-libs/opencv-3.4.1-r5/work/opencv-3.4.1/modules/core/
> src/system.cpp:487: error: (-215) Missing support for required CPU baseline
> features. Check OpenCV build configuration and required CPU/HW setup. in
> function initialize
> 
> 
> To me it seemed a somewhat related flag misconfiguration issue, is it not?
> Should I file a new bug report?

Hi,

I had a similar issue on my cpu which doesn't support POPCNT, in the end I resolved it by appplying upstream patch[1] which fixes POPCNT detection.



[1] https://github.com/opencv/opencv/commit/a2d6fc7ac040c6ef94a36515f9ea24428f8f1ecc
Comment 24 Larry the Git Cow gentoo-dev 2019-01-24 09:24:42 UTC
The bug has been closed via the following commit(s):

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

commit feeb7a004035ddf5a3c45b19399165cff76c6f82
Author:     Amy Liffey <amynka@gentoo.org>
AuthorDate: 2019-01-24 08:54:25 +0000
Commit:     Amy Liffey <amynka@gentoo.org>
CommitDate: 2019-01-24 09:24:08 +0000

    media-libs/opencv: fix popcnt detection
    
    Closes: https://bugs.gentoo.org/633900
    Submitted-by:  Branko Grubic <bitlord0xff@gmail.com>
    Signed-off-by: Amy Liffey <amynka@gentoo.org>
    Package-Manager: Portage-2.3.49, Repoman-2.3.11

 media-libs/opencv/files/opencv-3.4.1-popcnt.patch | 30 +++++++++++++++++++++++
 media-libs/opencv/opencv-3.4.1-r5.ebuild          |  1 +
 2 files changed, 31 insertions(+)