Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 733120 - media-libs/opencv-4.1.2-r3 - .../work/opencv-4.1.2/modules/core/src/parallel_impl.cpp:45:79: error: ‘_mm_pause’ was not declared in this scope
Summary: media-libs/opencv-4.1.2-r3 - .../work/opencv-4.1.2/modules/core/src/parallel_...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-18 07:18 UTC by Jiri Glac
Modified: 2022-09-15 17:38 UTC (History)
0 users

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


Attachments
build.log (build.log.tgz,8.10 KB, application/x-gzip-compressed-tar)
2020-07-18 07:18 UTC, Jiri Glac
Details
emerge.info (emerge.info.tgz,6.17 KB, application/x-compressed-tar)
2020-07-18 07:21 UTC, Jiri Glac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Glac 2020-07-18 07:18:08 UTC
Created attachment 649736 [details]
build.log

I can't compile media-libs/opencv-4.1.2-r3

build log:

FAILED: modules/core/CMakeFiles/opencv_core.dir/src/parallel_impl.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -m32 -DCVAPI_EXPORTS -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/core/include -Imodules/core -isystem .  -DNDEBUG -O2 -march=bdver1 -mprefer-avx128 -mvzeroupper -pipe   -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -mfpmath=387 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC   -std=c++11 -MD -MT modules/core/CMakeFiles/opencv_core.dir/src/parallel_impl.cpp.o -MF modules/core/CMakeFiles/opencv_core.dir/src/parallel_impl.cpp.o.d -o modules/core/CMakeFiles/opencv_core.dir/src/parallel_impl.cpp.o -c /tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/core/src/parallel_impl.cpp
cc1plus: warning: command-line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/core/src/parallel_impl.cpp: In member function ‘void cv::WorkerThread::thread_body()’:
/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/core/src/parallel_impl.cpp:45:79: error: ‘_mm_pause’ was not declared in this scope
   45 | #   define CV_PAUSE(v) do { for (int __delay = (v); __delay > 0; --__delay) { _mm_pause(); } } while (0)
      |                                                                               ^~~~~~~~~
/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/core/src/parallel_impl.cpp:370:21: note: in expansion of macro ‘CV_PAUSE’
  370 |                     CV_PAUSE(16);
      |                     ^~~~~~~~
/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/core/src/parallel_impl.cpp: In member function ‘void cv::ThreadPool::run(const cv::Range&, const cv::ParallelLoopBody&, double)’:
/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/core/src/parallel_impl.cpp:45:79: error: ‘_mm_pause’ was not declared in this scope
   45 | #   define CV_PAUSE(v) do { for (int __delay = (v); __delay > 0; --__delay) { _mm_pause(); } } while (0)
      |                                                                               ^~~~~~~~~
/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2/modules/core/src/parallel_impl.cpp:638:33: note: in expansion of macro ‘CV_PAUSE’
  638 |                                 CV_PAUSE(16);
      |                                 ^~~~~~~~
ninja: build stopped: subcommand failed.
 * ERROR: media-libs/opencv-4.1.2-r3::gentoo failed (compile phase):
 *   ninja -v -j1 -l0 failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 5561:  Called cmake-multilib_src_compile
 *   environment, line 1328:  Called multilib-minimal_src_compile
 *   environment, line 4209:  Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
 *   environment, line 4459:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 4144:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 4142:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
 *   environment, line  761:  Called multilib-minimal_abi_src_compile
 *   environment, line 4203:  Called multilib_src_compile
 *   environment, line 4679:  Called cmake-utils_src_compile
 *   environment, line 1348:  Called cmake-utils_src_make
 *   environment, line 1529:  Called _cmake_ninja_src_make
 *   environment, line  607:  Called eninja
 *   environment, line 1995:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
 * 
 * If you need support, post the output of `emerge --info '=media-libs/opencv-4.1.2-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/opencv-4.1.2-r3::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =opencv-4.1.2
 * The complete build log is located at '/tmp/portage/media-libs/opencv-4.1.2-r3/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/media-libs/opencv-4.1.2-r3/temp/environment'.
 * Working directory: '/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2-abi_x86_32.x86'
 * S: '/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2'

>>> Failed to emerge media-libs/opencv-4.1.2-r3, Log file:
Comment 1 Jiri Glac 2020-07-18 07:18:43 UTC

emerge --info 

Portage 2.3.103 (python 3.7.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.1.0, glibc-2.31-r5, 5.4.44-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.4.44-gentoo-x86_64-x86_64-AMD_FX-tm-8150_Eight-Core_Processor-with-gentoo-2.7
KiB Mem:    16342416 total,   2107104 free
KiB Swap:   12582908 total,  12581628 free
Timestamp of repository gentoo: Sat, 18 Jul 2020 05:00:01 +0000
Head commit of repository gentoo: b24e47c083435bf7b7a7257ba22e13b7feddb5eb
sh bash 5.0_p17
ld GNU ld (Gentoo 2.34 p4) 2.34.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 3.7.10 [disabled]
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18::gentoo, 3.7.8-r1::gentoo, 3.8.3-r1::gentoo, 3.9.0_beta4::gentoo
dev-util/ccache:          3.7.10::gentoo
dev-util/cmake:           3.17.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.34-r1::gentoo
sys-devel/gcc:            10.1.0-r2::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=bdver1 -mprefer-avx128 -mvzeroupper -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /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/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=bdver1 -mprefer-avx128 -mvzeroupper -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://gentoo.mirror.dkm.cz/pub/gentoo ftp://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.sh.cvut.cz/MIRRORS/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs cs_CZ"
MAKEOPTS="-j1"
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="/tmp"
USE="10bit 12bit 24bpp 3dnow 3dnowext 64bit 7zip R X Xaw3d a52 aac aacplus aacs aalib accessibility acl acpi activities addbookmarks additions adobe-cff aes aften aio airplay akonadi alsa amarok amarok2 amavis amd64 amrnb animgif apache2 apm apng archive arp asdf asf asm asn1 aspell ass asyncns atmo attica audacious audio audiofile auto-hinter autoipd automount autoreplace autoshutdown autotrace aux_xml avahi avcodec avformat avx awt berkdb bidi bittorrent bl blksha1 bluetooth bluray bookmarks boost branding brass bs2b btrfs bufferevents bundled-libs bwscheduler bzip2 c++0x cacert cairo caps caps-ng ccache cdb cdda cddax cddb cdio cdr cec celt center-tilde channels chert chm clamav clamd clang classic cli client client-libs clucene colord colordiff community compat contactnotes contrast corefonts coverage cpudetection cracklib crash-reporter crypt crywrap csharp css ctype cups curl custom-cpuopts custom-optimization cvs cxx dbus debug-utils declarative demosaic dep deprecated designer desktopglobe development device-mapper dga dhclient dhcpcd dirac direct2d directfb directx disk-partition divx djvu dlna dmx downloadorder dri dri3 drm dshow dts dvb dvbpsi dvd dvdnav dvdr dvdread dxva2 e2fsprogs eap-tls ebook ecc edit egl eigen elogind emboss emovix enblend enca encode espeak evdev evo examples exceptions exif expat extensions external-fuse extras f2fs faac faad facebook facedetect fam fat fbcon fbosd fbsplash ffmpeg fftw filecaps fileinfo filter filters firefox firmware-loader fits flac flickr fontconfig foomatic foomaticdb fortran freetype frei0r ftp fts3 fuse fusion g3dvl gadu gallium gbm gd gdbm gecko gegl geo geoip geoloc geolocation geos ggi gif gimp git gles gles1 gles2 glib gme gmp gnome-keyring gnutls gold googledrive goom gphoto2 gpl gpm gptfdisk gpu graph graphite graphviz growl gs gsl gtk gtk2 gtk3 gtkstyle gudev gusb gzip h323 hacking handbook hardcoded-tables hardware-carrier harfbuzz hash hddtemp hdf5 hdri headless highlight history holidays hotpixels hpcups hpijs htmlhandbook http hunspell hwdb iconv icq icu id3tag idn ieee1394 imagemagick imap imlib infowidget inkjar inmemory inotify interlaced introspection ipc ipfilter iptables ipv6 jabber java java6 javascript jbig jemalloc jfs jingle jit joystick jpeg jpeg2k json kate kdcraw kde kdenlive kdrive kerberos kexiv2 keymap keyutils kipi kmod kontact kross ktts kwallet ladspa lame lapack lastfm lcms ldap legacy-systray lensfun libass libev libffi libgcrypt libinput libkms libmpeg2 libnet libnotify libproxy librtmp libsecret libsoxr libtar libtiger libtirpc libv4l libv4l2 libxml2 lightning linsys live llvm llvm-shared-libs lm_sensors lmdb logrotate logviewer logwatch lqr lto lua lzma lzo mad magic magnetgenerator maildir matroska md5sum mdnsresponder-compat meanwhile media-library mediaplayer melt memlimit messages migrator mikmod mime minizip mjpeg mmap mmx mmxext mng mod modemmanager modplug modules modutils mono motif mount mozilla mp3 mp3tunes mp4 mpeg mpeg2 mpg123 mpris msn mtp mudflap multilib multimedia musepack musicbrainz mysql mysqli nat-pmp native-headset ncurses neXt nepomuk net netapi netifrc network networkmanager newnet nio-buffers nls nowlistening nptl nsplugin nspluginwrapper nss-pem ntfs ntfsprogs nut nuv nvidia obex objc ocamlopt ofono-headset ogg ogg123 okular omxil opcache open_perms openal opencv openexr opengl openmax openmm openmp openpty openrc openssl optimisememory optimized-qmake opus orc ortp oscar osdmenu osmesa otr pae pam pango pcf pch pci pcre pcre16 pdf pdfimport pdo perl phar phonon php pic pipes pkcs11 pkinit plasma player plib plugins pm-utils pmu png pnm polarssl policykit polling portage portaudio posix postproc postscript ppds ppp prelink printsupport privacy projectm ps psf pulseaudio pvr python python3 qalculate qimageblitz qmi qml qpa qq qrcode qscintilla qt-bundled qt3support qt4 qt5 quicktime quvi qwt radio raptor rar raw rawspeed rdesktop rdoc rdp readline recursion-limit redland reflection regex reiser4 reiserfs resolvconf romio rpc rss rsxs rtc rtmp rtsp ruby rule-generator run-exes samba sasl savedconfig scale0tilt scanfolder scanner schroedinger scim screencast script scrypt sdk sdl sdl-image search seccomp secure-delete semantic-desktop sensord server session sftp sha512 shared-dricore shared-glapi shine shm shout shutdown sid sift simplexml skins skype slang slideshow smbclient smp sms snappy sndfile snmp sockets soprano sound sox speechd speex spell split-usr sql sqlite squish srt srtp sse sse2 sse4_1 sse4a ssh ssh-agent ssl ssse3 staging stars startup-notification static-analyzer statistics stats stl stream streaming subtitles subversion suid svc svg svm switcher swscale symlink sysfs syslog system-cairo system-icu system-jpeg system-libvpx system-sqlite szip taglib tcpd teletext templates testbed texteffect tga theora thin threadsafe thumbnail thumbnails thunar thunderbird tiff timezone tls-heartbeat tokenizer toolame tools tor-hardening tordns transcode translator transmitter transparent-proxy tremor truetype trust twolame type1 ubac udev udisks unicode update-alternatives upnp upower urandom urlpicpreview usb userlocales utils uuid v4l v4l2 vaapi vala vapigen vba vcd vdpau vdr vhosts video virtuoso vlc vlm vmci vmware-tools vnc vorbis vpx vsock wallpapers wav wavpack wayland weather web-services webchannel webdav webdav-neon webdav-serf webinterface webkit webkit2 webm webp webpresence webrtc-aec webserver wext widgets wifi win32 win64 winbind wingdi wma wma-fixed wmf wxwidgets x264 x264-static x265 xa xanim xattr xcb xcomposite xdg xephyr xfs xine xkb xml xmlpatterns xmlreader xmltv xmlwriter xmp xmpp xnest xorg xosd xpdf-headers xpm xrandr xscreensaver xsl xslt xulrunner xv xvfb xvid xvmc yahoo yaml yuv4mpeg zip zip-encryption zlib zvbi" ABI_X86="32 64" ADA_TARGET="gnat_2018" 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_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 slotmem_shm" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="keyboard mouse evdev vmmouse" KERNEL="linux" L10N="cs" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="avermedia avermedia98 avermedia_vdomate hauppauge" LLVM_TARGETS="X86 BPF" OFFICE_IMPLEMENTATION="libreoffice" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7 python3_8" RUBY_TARGETS="ruby25 ruby26 ruby27" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau" 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_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Jiri Glac 2020-07-18 07:21:31 UTC
Created attachment 649738 [details]
emerge.info
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2020-07-30 11:52:03 UTC
Comment on attachment 649736 [details]
build.log

Why did you store a single file in a tar archive? Did you know you can just as well compress files directly, without using tar?
Comment 4 Jiri Glac 2020-08-06 08:19:15 UTC
I don't understand what's wrong with:

tar -zcvf build.log.tgz /tmp/portage/media-libs/opencv-4.1.2-r3/temp/build.log

I have been compressing like this for about 20 years.
Comment 5 Andreas Sturmlechner gentoo-dev 2022-09-15 17:38:28 UTC
Please re-open if this is reproduced with 4.6.0.