Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 225745

Summary: media-video/mplayerthumbs-0.5b fails to compile with gcc 4.3.1
Product: Gentoo Linux Reporter: Cosimo Salvatore Dilettis <diablo82>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: mplayerthumbs-0.5b-r1.ebuild (patched ebuild)
mplayerthumbs-0.5b-gcc-4.3.patch
folder including updated ebuild, patch and manifest ready for an overlay

Description Cosimo Salvatore Dilettis 2008-06-10 13:47:29 UTC
[...]
make[3]: Entering directory `/var/tmp/portage/media-video/mplayerthumbs-0.5b/work/mplayerthumbs-0.5b/src'
/usr/kde/3.5/bin/kconfig_compiler ./mplayerthumbs.kcfg ./mplayerthumbs.kcfgc; ret=$?; \
        if test "$ret" != 0; then rm -f mplayerthumbs.h ; exit $ret ;  fi
/usr/qt/3/bin/moc ./videopreview.h -o videopreview.moc
/bin/sh ../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon64 -msse3 -O2 -pipe -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common  -c -o videopreview.lo videopreview.cpp
/bin/sh ../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon64 -msse3 -O2 -pipe -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common  -c -o mplayerthumbs.lo mplayerthumbs.cpp
In file included from /usr/qt/3/include/qwindowdefs.h:44,
                 from /usr/qt/3/include/qcolor.h:42,
                 from /usr/kde/3.5/include/kconfigskeleton.h:26,
                 from mplayerthumbs.h:6,
                 from mplayerthumbs.cpp:4:
/usr/qt/3/include/qstring.h: In member function 'char QChar::latin1() const':
/usr/qt/3/include/qstring.h:194: warning: conversion to 'char' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In member function 'void QChar::setCell(uchar)':
/usr/qt/3/include/qstring.h:219: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In member function 'void QChar::setRow(uchar)':
/usr/qt/3/include/qstring.h:220: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In constructor 'QChar::QChar(uchar, uchar)':
/usr/qt/3/include/qstring.h:264: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In constructor 'QStringData::QStringData(QChar*, uint, uint)':
/usr/qt/3/include/qstring.h:362: warning: conversion to 'unsigned int:30' from 'uint' may alter its value
/usr/qt/3/include/qstring.h:362: warning: conversion to 'unsigned int:30' from 'uint' may alter its value
In file included from videopreview.h:24,
                 from videopreview.cpp:21:
/usr/qt/3/include/qstring.h: In member function 'char QChar::latin1() const':
/usr/qt/3/include/qstring.h:194: warning: conversion to 'char' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In member function 'void QChar::setCell(uchar)':
/usr/qt/3/include/qstring.h:219: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In member function 'void QChar::setRow(uchar)':
/usr/qt/3/include/qstring.h:220: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In constructor 'QChar::QChar(uchar, uchar)':
/usr/qt/3/include/qstring.h:264: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In constructor 'QStringData::QStringData(QChar*, uint, uint)':
/usr/qt/3/include/qstring.h:362: warning: conversion to 'unsigned int:30' from 'uint' may alter its value
/usr/qt/3/include/qstring.h:362: warning: conversion to 'unsigned int:30' from 'uint' may alter its value
In file included from /usr/qt/3/include/qobject.h:45,
                 from /usr/kde/3.5/include/kconfigbase.h:26,
                 from /usr/kde/3.5/include/kconfig.h:29,
                 from /usr/kde/3.5/include/kconfigskeleton.h:36,
                 from mplayerthumbs.h:6,
                 from mplayerthumbs.cpp:4:
/usr/qt/3/include/qevent.h: In member function 'void QDropEvent::setAction(QDropEvent::Action)':
/usr/qt/3/include/qevent.h:520: warning: conversion to 'unsigned char' from 'uint' may alter its value
In file included from /usr/qt/3/include/qobject.h:45,
                 from videopreview.h:35,
                 from videopreview.cpp:21:
/usr/qt/3/include/qevent.h: In member function 'void QDropEvent::setAction(QDropEvent::Action)':
/usr/qt/3/include/qevent.h:520: warning: conversion to 'unsigned char' from 'uint' may alter its value
In file included from videopreview.cpp:25:
/usr/qt/3/include/qimage.h: In member function 'bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const':
/usr/qt/3/include/qimage.h:58: warning: suggest parentheses around && within ||
In file included from /usr/kde/3.5/include/kservicetype.h:24,
                 from /usr/kde/3.5/include/kmimetype.h:33,
                 from videopreview.cpp:29:
/usr/kde/3.5/include/ksycocaentry.h: In member function 'virtual void KSycocaEntry::save(QDataStream&)':
/usr/kde/3.5/include/ksycocaentry.h:104: warning: conversion to 'int' from 'Q_ULONG' may alter its value
videopreview.cpp: In member function 'QPixmap VideoPreview::getFrame(const QString&, int)':
videopreview.cpp:221: warning: converting 'false' to pointer type for argument 1 of 'QPixmap::QPixmap(const char**)'
videopreview.cpp: In static member function 'static uint VideoPreview::imageVariance(QImage)':
videopreview.cpp:253: error: 'abs' was not declared in this scope
In file included from /usr/qt/3/include/qwidget.h:49,
                 from /usr/qt/3/include/qdesktopwidget.h:40,
                 from /usr/qt/3/include/qapplication.h:42,
                 from videopreview.moc:13,
                 from videopreview.cpp:258:
/usr/qt/3/include/qsizepolicy.h: In member function 'void QSizePolicy::transpose()':
/usr/qt/3/include/qsizepolicy.h:122: warning: conversion to 'uchar' from 'uint' may alter its value
/usr/qt/3/include/qsizepolicy.h:122: warning: conversion to 'uchar' from 'uint' may alter its value
In file included from videopreview.cpp:258:
/usr/qt/3/include/qmemarray.h: In constructor 'QMemArray<type>::QMemArray(int) [with type = QPoint]':
/usr/qt/3/include/qpointarray.h:56:   instantiated from here
/usr/qt/3/include/qmemarray.h:59: warning: conversion to 'int' from 'long unsigned int' may alter its value
make[3]: *** [videopreview.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-video/mplayerthumbs-0.5b/work/mplayerthumbs-0.5b/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-video/mplayerthumbs-0.5b/work/mplayerthumbs-0.5b/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-video/mplayerthumbs-0.5b/work/mplayerthumbs-0.5b'
make: *** [all] Error 2
 *
 * ERROR: media-video/mplayerthumbs-0.5b failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4084:  Called kde_src_compile
 *             environment, line 2912:  Called kde_src_compile 'all'
 *             environment, line 3032:  Called kde_src_compile 'myconf' 'configure' 'make'
 *             environment, line 3028:  Called die
 * The specific snippet of code:
 *                   emake || die "died running emake, $FUNCNAME:make"
 *  The die message:
 *   died running emake, kde_src_compile:make

Reproducible: Always

Steps to Reproduce:
emerge mplayerthumbs
Actual Results:  
Fails to compile


Portage 2.1.5.4 (default-linux/amd64/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
Timestamp of tree: Tue, 10 Jun 2008 10:33:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -msse3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch parallel_fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common"
LINGUAS="it"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/desktop-effects /usr/portage/local/mine"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl alsa amd64 apache2 bash-completion berkdb bzip2 cairo cdr cli cracklib crypt css cups cxx dbus dri dvd dvdr dvdread encode exif ffmpeg fontconfig fortran gdbm gif gimp glitz gpm hal iconv isdnlog jpeg kde kdeenablefinal kdehiddenvisibility lm_sensors midi mime mmx mng mp3 mplayer msn mudflap musepack musicbrainz mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt4 quicktime readline reflection sdl session spl sse sse2 ssl svg tcpd theora tiff truetype unicode vorbis wmf x264 xcb xcomposite xine xml xorg xv xvid zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-06-10 13:52:14 UTC
It's a GCC 4.3 problem, rather than glibc 2.8
Comment 2 Cosimo Salvatore Dilettis 2008-06-11 01:17:04 UTC
Created attachment 156305 [details]
mplayerthumbs-0.5b-r1.ebuild (patched ebuild)
Comment 3 Cosimo Salvatore Dilettis 2008-06-11 01:17:40 UTC
Created attachment 156307 [details, diff]
mplayerthumbs-0.5b-gcc-4.3.patch
Comment 4 Billy DeVincentis 2008-06-15 15:52:27 UTC
Created attachment 156933 [details]
folder including updated ebuild, patch and manifest ready for an overlay

No need for version bump, patch mentioned above does indeed work.
Comment 5 Peter Alfredsen (RETIRED) gentoo-dev 2008-06-29 12:07:45 UTC
  29 Jun 2008; Peter Alfredsen <loki_val@gentoo.org>
  +files/mplayerthumbs-0.5b-gcc43.patch, mplayerthumbs-0.5b.ebuild:
  Fix for gcc-4.3 wrt bug #225745. Thanks Cosimo Salvatore Dilettis
  <diablo82@gmail.com>