Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566080 - media-libs/opencv-3.0.0 profile=hardened fails with error: no matching function for call to ‘min(unsigned int, long unsigned int)’
Summary: media-libs/opencv-3.0.0 profile=hardened fails with error: no matching functi...
Status: RESOLVED OBSOLETE
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:
Depends on:
Blocks:
 
Reported: 2015-11-17 19:01 UTC by Fernando (likewhoa)
Modified: 2016-11-11 10:39 UTC (History)
4 users (show)

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


Attachments
build.log.xz (build.log.xz,27.75 KB, application/x-xz)
2015-11-17 19:05 UTC, Fernando (likewhoa)
Details
New ebuild for opencv-3.0.0 (opencv-3.0.0.ebuild,5.96 KB, text/plain)
2016-02-01 06:54 UTC, Andrew
Details
Patch for opencv-3.0.0 (opencv-3.0.0-min.patch,2.12 KB, patch)
2016-02-01 06:55 UTC, Andrew
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando (likewhoa) 2015-11-17 19:01:17 UTC
Fails on amd64 hardened only. 

Reproducible: Always

Steps to Reproduce:
1. emerge =media-libs/opencv-3.0.0

Actual Results:  
cd /var/tmp/portage/media-libs/opencv-3.0.0/work/opencv-3.0.0_build/modules/cvv && /usr/bin
/i686-pc-linux-gnu-g++  -DCVAPI_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGE
TS_LIB -D__OPENCV_BUILD=1 -I/var/tmp/portage/media-libs/opencv-3.0.0/work/opencv-3.0.0_buil
d/modules/cvv -I/var/tmp/portage/media-libs/opencv-3.0.0/work/opencv_contrib-master/modules
/cvv -I/var/tmp/portage/media-libs/opencv-3.0.0/work/opencv-3.0.0_build -isystem /usr/inclu
de/eigen3 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/
mkspecs/linux-g++ -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtWidgets -I/va
r/tmp/portage/media-libs/opencv-3.0.0/work/opencv_contrib-master/modules/cvv/include -I/var
/tmp/portage/media-libs/opencv-3.0.0/work/opencv_contrib-master/modules/cvv/src -I/var/tmp/
portage/media-libs/opencv-3.0.0/work/opencv-3.0.0/modules/hal/include -I/var/tmp/portage/me
dia-libs/opencv-3.0.0/work/opencv-3.0.0/modules/core/include -I/var/tmp/portage/media-libs/
opencv-3.0.0/work/opencv-3.0.0/modules/flann/include -I/var/tmp/portage/media-libs/opencv-3
.0.0/work/opencv-3.0.0/modules/imgproc/include -I/var/tmp/portage/media-libs/opencv-3.0.0/w
ork/opencv-3.0.0/modules/ml/include -I/var/tmp/portage/media-libs/opencv-3.0.0/work/opencv-
3.0.0/modules/imgcodecs/include -I/var/tmp/portage/media-libs/opencv-3.0.0/work/opencv-3.0.
0/modules/videoio/include -I/var/tmp/portage/media-libs/opencv-3.0.0/work/opencv-3.0.0/modu
les/highgui/include -I/var/tmp/portage/media-libs/opencv-3.0.0/work/opencv-3.0.0/modules/fe
atures2d/include   -DNDEBUG -O2 -march=i686 -pipe    -fsigned-char -W -Wall -Werror=return-
type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=forma
t-security  -Wundef -Winit-self -Wpointer-arith  -Wsign-promo -Wno-narrowing -Wno-delete-no
n-virtual-dtor -fdiagnostics-show-option -pthread -march=i686 -fomit-frame-pointer -msse -m
sse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mfpmath=sse -ffunction-sections -f
visibility=hidden -fvisibility-inlines-hidden -fopenmp -std=c++11 -Wall -Wextra -pedantic -
Wno-shadow -Wno-missing-declarations -fPIC   -fPIC -o CMakeFiles/opencv_cvv.dir/src/view/tr
anslationsmatchview.cpp.o -c /var/tmp/portage/media-libs/opencv-3.0.0/work/opencv_contrib-m
aster/modules/cvv/src/view/translationsmatchview.cpp
/var/tmp/portage/media-libs/opencv-3.0.0/work/opencv_contrib-master/modules/cvv/src/view/po
intmatchview.cpp: In constructor ‘cvv::view::PointMatchView::PointMatchView(std::vector<cv:
:KeyPoint>, std::vector<cv::KeyPoint>, std::vector<cv::DMatch>, cv::Mat, cv::Mat, bool, QWi
dget*)’:
/var/tmp/portage/media-libs/opencv-3.0.0/work/opencv_contrib-master/modules/cvv/src/view/pointmatchview.cpp:33:116: error: no matching function for call to ‘min(unsigned int, long unsigned int)’
  int updateAreaDelay=std::min(std::max(matches.size(),std::max(leftKeyPoints.size(),rightKeyPoints.size()))/10,50lu);
....


Portage 2.2.24 (python 2.7.10-final-0, default/linux/x86/13.0/desktop/plasma, gcc-4.9.3, glibc-2.22-r1, 3.17.7-gentoo i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.17.7-gentoo-i686-Intel-R-_Xeon-R-_CPU_E5420_@_2.50GHz-with-gentoo-2.2
KiB Mem:    28830896 total,   4191448 free
KiB Swap:    1048572 total,   1039276 free
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p42::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10-r2::gentoo, 3.4.3-r2::gentoo, 3.5.0-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.4.0::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.3::gentoo
sys-apps/sandbox:         2.9::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.1-r1::gentoo
sys-devel/gcc:            4.9.3::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: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/gentoo.git
    priority: -1000

ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA @BINARY-REDISTRIBUTABLE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -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="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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 accessibility acl acpi alsa alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol berkdb bindist bluetooth branding build bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam fbcon fbcondecor firefox flac fortran gdbm gif gimp glamor gpm gtk gtk3 iconv ipv6 jpeg kde kipi lcms ldap libnotify livecd loop-aes mad mmx mng modules mpeg ncurses networkmanager nls nouveau nptl nptlonly ogg opengl openmp pam pango pax_kernel pcre pdf phonon plasma png policykit portaudio ppds qml qt3support qt4 qt5 readline sdl seccomp session socks5 spell sse sse2 ssl startup-notification static-libs svg tcpd tiff truetype udev udisks unicode upower usb vdpau vorbis widgets wxwidgets x86 xattr xcb xcomposite xinerama xml xscreensaver xv zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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 synaptics virtualbox" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="af ar as ast az be bg bn bo br brx bs ca ca@valencia ca_XV cs csb cy da de dgo dz el en en_GB en_ZA eo es et eu fa fi fo fr fy ga gd gl gu gu_IN ha he hi hr hsb hu ia id is it ja ka kk km kn kn_IN ko kok ks ku lb lo lt lv mai mi mk ml mn mni mr ms mt my nb nds ne nl nn nr nso oc om or pa pa_IN pl pt pt_BR ro ru rw sa_IN sat sd se sh si sk sl sq sr ss st sv sw sw_TZ ta ta_IN te tg th tn tr ts tt ug uk uz ve ven vi wa xh zh_CN zh_HK zh_TW zu am es_LA fil pt_PT es_ES fr_CA me tl ur bn_IN ca_valencia gug kmr_Latn sid sr_Latn" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware i915 i965 r100 r200 r300 r600 qxl virtualbox nouveau glint intel mach64 mga nv r128 radeon savage tdfx trident vesa via vmware cirrus ast chips i128 i740 imstt s3virge tseng v4l vermilion amdgpu" 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"
USE_PYTHON="2.7 3.4"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Fernando (likewhoa) 2015-11-17 19:05:16 UTC
Created attachment 417246 [details]
build.log.xz
Comment 2 Dmitry Derevyanko 2015-11-25 19:10:36 UTC
It's not connected with hardened. See https://github.com/CVVisualPSETeam/CVVisual/issues/46

Applying patch https://github.com/cpsandbox/opencv_contrib/commit/06eb62c630d3986ff47ab8db076bdd4b7c7a758b solved it for me.
Comment 3 Andrew 2016-02-01 06:54:24 UTC
Created attachment 424384 [details]
New ebuild for opencv-3.0.0
Comment 4 Andrew 2016-02-01 06:55:54 UTC
Created attachment 424386 [details, diff]
Patch for opencv-3.0.0
Comment 5 Andrew 2016-02-01 06:57:52 UTC
Working ebuild (attachment 424384 [details]) and patch (attachment 424386 [details, diff]) for opencv-3.0.0
Comment 6 Jonathan Scruggs (RETIRED) gentoo-dev 2016-11-11 10:39:10 UTC
Opencv 3.0.0 is no longer in portage and this is situation is not reported/updated for 3.1, so closing.