Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 546508 - media-libs/opencv-2.4.10 emerge failure inconsistent operand constraints in an ‘asm’
Summary: media-libs/opencv-2.4.10 emerge failure inconsistent operand constraints in a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 378027
  Show dependency tree
 
Reported: 2015-04-13 23:55 UTC by email200202
Modified: 2015-05-23 19:50 UTC (History)
5 users (show)

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


Attachments
fix from upstream git (opencv-2.4.10-fix-546508.patch,824 bytes, patch)
2015-04-17 05:35 UTC, Thomas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description email200202 2015-04-13 23:55:34 UTC
media-libs/opencv-2.4.10 emerge failed on ~x86 machine with the following message:
/var/tmp/portage/media-libs/opencv-2.4.10/work/opencv-2.4.10/modules/core/src/cmdparser.cpp:10:6: warning: ‘void {anonymous}::helpParser()’ defined but not used [-Wunused-function] 
 void helpParser() 
      ^ 
[  1%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o 
[  1%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lapack.cpp.o 
/var/tmp/portage/media-libs/opencv-2.4.10/work/opencv-2.4.10/modules/core/src/system.cpp: In function ‘(static initializers for /var/tmp/portage/media-libs/opencv-2.4.10/work/opencv-2.4.10/modules/core/src/system.cpp)’: 
/var/tmp/portage/media-libs/opencv-2.4.10/work/opencv-2.4.10/modules/core/src/system.cpp:280:10: error: inconsistent operand constraints in an ‘asm’ 
         ); 
          ^ 
modules/core/CMakeFiles/opencv_core.dir/build.make:238: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o' failed 
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o] Error 1 
make[2]: *** Waiting for unfinished jobs.... 
CMakeFiles/Makefile2:691: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed 
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 
Makefile:136: recipe for target 'all' failed 
make: *** [all] Error 2 
 * ERROR: media-libs/opencv-2.4.10::gentoo failed (compile phase): 
 *   emake failed 


Reproducible: Always

Steps to Reproduce:
1.emerge --sync on ~x86 machine
2.emerge -av1 media-libs/opencv

Actual Results:  
The emerge fails with the above message

Expected Results:  
The emerge should not fail.

The machine configuration:

GENTOO_VM=icedtea-bin-7  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-7.2.5.3" 
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER="" 

# emerge --info =opencv-2.4.10 
Portage 2.2.18 (python 2.7.9-final-0, default/linux/x86/13.0/desktop, gcc-4.9.2, glibc-2.20-r2, 3.19.3-gentoo i686) 
================================================================= 
                         System Settings 
================================================================= 
System uname: Linux-3.19.3-gentoo-i686-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-gentoo-2.2 
KiB Mem:     3498680 total,   1218692 free 
KiB Swap:    8388604 total,   8381220 free 
Timestamp of repository gentoo: Sun, 12 Apr 2015 23:00:01 +0000 
sh bash 4.3_p33-r2 
ld GNU ld (Gentoo 2.25 p1.0) 2.25 
distcc 3.2rc1 i686-pc-linux-gnu [disabled] 
ccache version 3.2.1 [disabled] 
app-shells/bash:          4.3_p33-r2::gentoo 
dev-java/java-config:     2.2.0::gentoo 
dev-lang/perl:            5.20.2::gentoo 
dev-lang/python:          2.7.9-r2::gentoo, 3.4.3::gentoo 
dev-util/ccache:          3.2.1-r1::gentoo 
dev-util/cmake:           3.2.1::gentoo 
dev-util/pkgconfig:       0.28-r2::gentoo 
sys-apps/baselayout:      2.2::gentoo 
sys-apps/openrc:          0.13.11::gentoo 
sys-apps/sandbox:         2.6-r1::gentoo 
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo 
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo 
sys-devel/binutils:       2.25::gentoo 
sys-devel/gcc:            4.9.2::gentoo 
sys-devel/gcc-config:     1.8::gentoo 
sys-devel/libtool:        2.4.6-r1::gentoo 
sys-devel/make:           4.1-r1::gentoo 
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers) 
sys-libs/glibc:           2.20-r2::gentoo 
Repositories: 

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

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

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

Installed sets: @system 
ACCEPT_KEYWORDS="x86 ~x86" 
ACCEPT_LICENSE="* PUEL" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-march=prescott -O2 -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/lib/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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" 
CXXFLAGS="-march=prescott -O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
EMERGE_DEFAULT_OPTS="--quiet-build=n --with-bdeps=y" 
FCFLAGS="-O2 -march=i686 -pipe" 
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" 
FFLAGS="-O2 -march=i686 -pipe" 
GENTOO_MIRRORS="http://distfiles.gentoo.org" 
LANG="en_US.UTF-8" 
LC_ALL="en_US.UTF-8" 
LDFLAGS="-Wl,-O1 -Wl,--as-needed" 
MAKEOPTS="-j5 -s " 
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" 
PORTAGE_TMPDIR="/var/tmp" 
USE="X a52 aac aacs aalib acl acpi alsa asf berkdb bidi bluetooth bluray branding bzip2 cairo cdda cdio cdr cli consolekit cracklib crypt cups cxx dbus declarative directfb dri dts dv dvb dvd dvdr dvi emboss enca encode exif extensions extras faac faad fam fbcon ffmpeg firefox flac fontconfig fortran gcj gdbm gif glamor gpm graphviz gstreamer gtk gtk2 httpd iconv icu imagemagick imlib ipod java jpeg jpeg2k kde lcms ldap libcaca libmpeg2 libnotify live lua lzo mad matroska mjpeg mng modplug modules mp3 mp4 mpeg multislot mysql ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit postproc ppds profile qt3support qt4 quicktime readline rtc rtmp samba scanner script sdl session speex spell sql sqlite ssl startup-notification subversion svg svga tcpd theora threads tiff toolame truetype twolame udev udisks unicode upower usb v4l vcd vidix vlm vorbis webkit wxwidgets x264 x86 xanim xcb xine xinerama xml xv xvid xvmc zlib" ABI_X86="32" ALSA_CARDS="intel8x0" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ar" LIRC_DEVICES="all" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jouni Kosonen 2015-04-14 00:21:35 UTC
There's an upstream fix for that one:
https://github.com/Itseez/opencv/commit/ea50be0529c248961e1b66293f8a9e4b807294a6
Comment 2 Thomas 2015-04-17 05:35:52 UTC
Created attachment 401422 [details, diff]
fix from upstream git

if someone needs the patch as a file, here it is...
(worked fine for me, media-libs/opencv-2.4.10)
Comment 3 email200202 2015-04-21 23:09:15 UTC
The patch worked for me.
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2015-05-23 19:50:51 UTC
Patch added, thanks!