Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471062 - media-libs/opencv-2.4.5 with sys-libs/glibc-2.17 - Speedup: /usr/include/stdc-predef.h:40:1: warning: [...]/work/opencv-2.4.5_build/modules/videostab/precomp.hpp.gch/opencv_videostab_Gentoo.gch: not used because `NDEBUG' is defined [-Winva
Summary: media-libs/opencv-2.4.5 with sys-libs/glibc-2.17 - Speedup: /usr/include/stdc...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-23 07:55 UTC by Dennis Schridde
Modified: 2014-06-14 21:37 UTC (History)
1 user (show)

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


Attachments
build.log (xz compressed) (build.log.xz,32.74 KB, application/x-xz)
2013-05-23 07:56 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2013-05-23 07:55:33 UTC
For every source file of media-libs/opencv-2.4.5, I also get the following message:
/usr/include/stdc-predef.h:40:1: warning: /var/tmp/portage/media-libs/opencv-2.4.5/work/opencv-2.4.5_build/modules/videostab/precomp.hpp.gch/opencv_videostab_Gentoo.gch: not used because `NDEBUG' is defined [-Winvalid-pch]

I assume the build could be sped up a bit, if this warning could be fixed.

Reproducible: Always




Portage 2.2.0_alpha176 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.0, glibc-2.17, 3.9.2-gentoo x86_64)
=================================================================
System uname: Linux-3.9.2-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-gentoo-2.2
KiB Mem:     6108196 total,    795024 free
KiB Swap:    7813116 total,   7747004 free
Timestamp of tree: Thu, 23 May 2013 06:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.4, 3.2.4, 3.3.2
dev-util/cmake:           2.8.11::kde
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.2
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.8.0
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo systemd sage-on-gentoo x11 local enlightenment kde g-ctan
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=athlon64-sse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/neatx/home"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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="-pipe -O2 -march=athlon64-sse3"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--depclean-lib-check=n --with-bdeps=y --keep-going --nospinner"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install 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://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j3"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/cache/portage/gentoo"
PORTDIR_OVERLAY="/var/lib/layman/systemd /var/lib/layman/sage-on-gentoo /var/lib/layman/x11 /var/cache/portage/local /var/cache/portage/overlays/enlightenment /var/cache/portage/overlays/kde /var/lib/g-ctan"
[...]
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cdr cjk cli cracklib crypt cups cxx dbus declarative dri dts dvb dvd dvdr egl emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gmp gpm gstreamer gtk ibus iconv ipv6 jpeg jpeg2k kde kipi latex lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses networkmanager nls nptl ogg openal openexr opengl openmp oss pam pango pch pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 readline samba sdl semantic-desktop session speex spell sse sse2 sse3 ssl startup-notification subversion svg systemd tcpd theora threads tiff truetype udev udisks unicode upnp upower usb vorbis wayland x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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="stage words flow sheets" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="btrfs systemd" 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 ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3" RUBY_TARGETS="ruby18 ruby19" 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"
USE_PYTHON="2.7 3.2 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Dennis Schridde 2013-05-23 07:56:34 UTC
Created attachment 348962 [details]
build.log (xz compressed)
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2013-05-26 17:41:46 UTC
Which package provides that stdc-predef.h? I don't have it...

equery belongs stdc-predef.h
Comment 3 Dennis Schridde 2013-05-26 19:05:51 UTC
(In reply to Andreas K. Hüttel from comment #2)
> Which package provides that stdc-predef.h? I don't have it...
> 
> equery belongs stdc-predef.h

$ q file -v /usr/include/stdc-predef.h 
sys-libs/glibc-2.17 (/usr/include/stdc-predef.h)
Comment 4 Michael Palimaka (kensington) gentoo-dev 2014-04-22 16:39:23 UTC
I guess cmake-utils.eclass passing -DNDEBUG breaks the validity of the PCH.
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2014-06-14 21:37:30 UTC
(In reply to Michael Palimaka (kensington) from comment #4)
> I guess cmake-utils.eclass passing -DNDEBUG breaks the validity of the PCH.

Yep. And this is for us a CANTFIX since OpenCV upstream uses the same define to disable a lot of debug branches in their code... :(

The best suggestion that I have is to file a bug at www.opencv.org

If you do so, please reopen this bug and add the URL to the bug in a comment.