Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298995 - media-video/mplayer-1.0_rc4_p20091026-r1 fails to compile in swscale_template.c
Summary: media-video/mplayer-1.0_rc4_p20091026-r1 fails to compile in swscale_template.c
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-30 16:05 UTC by Mart Raudsepp
Modified: 2011-12-16 14:06 UTC (History)
0 users

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


Attachments
build log (media-video:mplayer-1.0_rc4_p20091026-r1:20091230-154531.log,625.02 KB, text/plain)
2009-12-30 16:08 UTC, Mart Raudsepp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mart Raudsepp gentoo-dev 2009-12-30 16:05:15 UTC
I have been unable to upgrade my mplayer for quite some time on my 64bit office machine now.

# USE="directfb -real -schroedinger -speex -dv -enca -live -dirac -mng" emerge -1va mplayer
[ebuild     U ] media-video/mplayer-1.0_rc4_p20091026-r1 [1.0_rc2_p28450] USE="3dnow 3dnowext X a52 aac alsa ass cddb* cdio* directfb* dts* dvb* dvd dvdnav* faac%* faad%* gif iconv jpeg mad mmx mmxext mp3 network%* opengl osdmenu%* png quicktime rar* rtc* samba sdl shm%* sse sse2 theora toolame%* tremor%* truetype twolame%* unicode vorbis x264* xinerama xscreensaver xv xvid -aalib (-altivec) -bidi -bindist -bl -bs2b% -cdparanoia -cpudetection -custom-cpuopts -debug -dga -dirac -doc -dv -dxr3 -enca -encode -esd -fbcon -ftp -ggi -gmplayer% -ipv6 -jack -joystick -ladspa -libcaca -lirc -live -lzo -md5sum -mng -nas -nut% -openal -opencore-amr% -oss -pnm -pulseaudio -pvr -radio -real -schroedinger -speex -ssse3 (-svga) -teletext -tga -v4l -v4l2 -vdpau% (-vidix) (-win32codecs) -xanim -xvmc -zoran (-amrnb%) (-amrwb%) (-arts%) (-custom-cflags%) (-gtk%*) (-mp2%) (-musepack%) (-nemesi%)" VIDEO_CARDS="-mga -nvidia% -s3virge -tdfx (-vesa%*)" 0 kB

....

x86_64-pc-linux-gnu-gcc -DHAVE_AV_CONFIG_H -I.. -I..  -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -march=athlon64 -O2 -pipe -ggdb -fno-omit-frame-pointer -D__STDC_LIMIT_MACROS -D_LARGEFILE_S
OURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I.  -D_REENTRANT -I/usr/include/directfb  -I/usr/include/SDL  -D_REENTRANT -I/usr/include/freetype2     -c -o swscale.o swscale.c
In file included from swscale.c:1407:
swscale_template.c: In function 'yuv2yuv1_MMX2':
swscale_template.c:961: warning: initialization from incompatible pointer type
swscale_template.c:961: warning: initialization from incompatible pointer type
swscale_template.c:961: warning: initialization from incompatible pointer type
swscale_template.c:961: warning: initialization from incompatible pointer type
swscale_template.c: In function 'hScale_MMX2':
swscale_template.c:2104: warning: initialization discards qualifiers from pointer target type
swscale_template.c: In function 'swScale_MMX2':
swscale_template.c:2719: warning: assignment discards qualifiers from pointer target type
swscale_template.c:2720: warning: assignment discards qualifiers from pointer target type
swscale_template.c:2725: warning: assignment discards qualifiers from pointer target type
swscale_template.c:2726: warning: assignment discards qualifiers from pointer target type
swscale_template.c:2732: warning: assignment discards qualifiers from pointer target type
swscale_template.c:2733: warning: assignment discards qualifiers from pointer target type
swscale_template.c:2740: warning: cast from pointer to integer of different size
swscale_template.c:2746: warning: cast from pointer to integer of different size
swscale_template.c:2753: warning: cast from pointer to integer of different size
swscale_template.c:2778: warning: initialization discards qualifiers from pointer target type
swscale_template.c:2779: warning: initialization discards qualifiers from pointer target type
swscale_template.c:2780: warning: initialization discards qualifiers from pointer target type
swscale_template.c: In function 'sws_init_swScale_MMX2':
swscale_template.c:2932: warning: assignment from incompatible pointer type
swscale_template.c:2947: warning: assignment from incompatible pointer type
swscale_template.c:2992: warning: assignment from incompatible pointer type
x86_64-pc-linux-gnu-gcc -DHAVE_AV_CONFIG_H -I.. -I..  -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -march=athlon64 -O2 -pipe -ggdb -fno-omit-frame-pointer -D__STDC_LIMIT_MACROS -D_LARGEFILE_S
OURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I.  -D_REENTRANT -I/usr/include/directfb  -I/usr/include/SDL  -D_REENTRANT -I/usr/include/freetype2     -c -o cavsdsp.o cavsdsp.c
swscale_template.c: In function 'yuv2packed2_MMX2':
swscale_template.c:1358: error: bp cannot be used in asm here
x86_64-pc-linux-gnu-gcc -DHAVE_AV_CONFIG_H -I.. -I..  -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -march=athlon64 -O2 -pipe -ggdb -fno-omit-frame-pointer -D__STDC_LIMIT_MACROS -D_LARGEFILE_S
OURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I.  -D_REENTRANT -I/usr/include/directfb  -I/usr/include/SDL  -D_REENTRANT -I/usr/include/freetype2     -c -o mpegvideo.o mpegvideo.c
make[1]: *** [swscale.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-video/mplayer-1.0_rc4_p20091026-r1/work/mplayer-1.0_rc4_p20091026/libswscale'
make: *** [libswscale/libswscale.a] Error 2
x86_64-pc-linux-gnu-gcc -DHAVE_AV_CONFIG_H -I.. -I..  -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -march=athlon64 -O2 -pipe -ggdb -fno-omit-frame-pointer -D__STDC_LIMIT_MACROS -D_LARGEFILE_S
OURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I.  -D_REENTRANT -I/usr/include/directfb  -I/usr/include/SDL  -D_REENTRANT -I/usr/include/freetype2     -c -o cinepak.o cinepak.c
make: *** Waiting for unfinished jobs....
x86_64-pc-linux-gnu-gcc -DHAVE_AV_CONFIG_H -I.. -I..  -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -march=athlon64 -O2 -pipe -ggdb -fno-omit-frame-pointer -D__STDC_LIMIT_MACROS -D_LARGEFILE_S
OURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I.  -D_REENTRANT -I/usr/include/directfb  -I/usr/include/SDL  -D_REENTRANT -I/usr/include/freetype2     -c -o cljr.o cljr.c
Comment 1 Mart Raudsepp gentoo-dev 2009-12-30 16:07:23 UTC
Portage 2.2_rc60 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-AMD_Athlon-tm-_64_Processor_3500+-with-gentoo-1.12.12
Timestamp of tree: Unknown
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.9-r1
dev-lang/python:     2.5.4-r2, 2.6.3
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ABI="amd64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ALSA_CARDS="ca0106"
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="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"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-march=athlon64 -O2 -pipe -ggdb -fno-omit-frame-pointer"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
COLORTERM="gnome-terminal"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-march=athlon64 -O2 -pipe -ggdb -fno-omit-frame-pointer"
DCCC_PATH="/usr/lib/distcc/bin"
DEFAULT_ABI="amd64"
DISPLAY=":0.0"
DISTCC_LOG=""
DISTCC_VERBOSE="0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--ask --verbose"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FEATURES="assume-digests cvs distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://ftp.linux.ee/pub/gentoo/distfiles/ "
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.19.1/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.3/info"
INPUT_DEVICES="keyboard mouse evdev"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS="-Wl,-O1,--hash-style=gnu,--as-needed"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LINGUAS="et et_EE"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:"
MAKEOPTS="-j2"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.19.1/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.3/man:/etc/java-config/system-vm/man/:/usr/lib64/php5/man/"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OLDPWD="/root"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/arm-none-linux-gnueabi/gcc-bin/4.4.0:/usr/x86_64-pc-linux-gnu/i486-linux-gnu/gcc-bin/4.1.2:/usr/x86_64-pc-linux-gnu/i486-pc-linux-gnu/gcc-bin/4.3.0:/usr/x86_64-pc-linux-gnu/i586-unknown-linux-gnu/gcc-bin/4.2.2:/usr/x86_64-pc-linux-gnu/mipsel-linux-gnu/gcc-bin/4.3.3:/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.3"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc x86-openbsd ppc-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_NICENESS="18"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/home/leio/gentoo/gentoo-x86/"
PORTDIR_OVERLAY="/usr/local/portage /home/leio/gentoo/mine /home/leio/gentoo/perf /home/leio/gentoo/x11"
PORT_LOGDIR="/var/log/portage"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/root"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/arm-none-linux-gnueabi/gcc-bin/4.4.0:/usr/x86_64-pc-linux-gnu/i486-linux-gnu/gcc-bin/4.1.2:/usr/x86_64-pc-linux-gnu/i486-pc-linux-gnu/gcc-bin/4.3.0:/usr/x86_64-pc-linux-gnu/i586-unknown-linux-gnu/gcc-bin/4.2.2:/usr/x86_64-pc-linux-gnu/mipsel-linux-gnu/gcc-bin/4.3.3:/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.3"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby18"
SHELL="/bin/bash"
SHLVL="1"
STAGE1_USE="multilib nptl nptlonly unicode"
SYMLINK_LIB="yes"
SYNC="do_not_sync_use_cvs__rsync://foorsync.europe.gentoo.org/gentoo-portage"
TERM="xterm"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb branding bzip2 cairo caps cdr cli consolekit cracklib crypt cups curl custom-cxxflags cxx dbus djvu dri dts dvb dvd dvdr eds emboss evo exif expat fam firefox flac fontconfig fortran gdbm gif glib gnome gnome-keyring gnutls gpm gstreamer gtk hal iconv inotify jingle jpeg jpeg2k kde lcms libnotify mad mikmod mmx mmxext mng modules mp3 mp4 mpeg msn mudflap multilib nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pch pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection samba sdl session slang soup spell spl sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode urandom usb vorbis x264 xattr xcb xinerama xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ca0106" 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="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="et et_EE" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa" 
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="radeon vesa"
XAUTHORITY="/root/.xauthJXWw0I"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share:/usr/share/gdm"
_="/usr/bin/emerge"
Comment 2 Mart Raudsepp gentoo-dev 2009-12-30 16:08:17 UTC
Created attachment 214631 [details]
build log
Comment 3 Reimar Döffinger 2010-01-01 09:52:03 UTC
Building with -fno-omit-frame-pointer is not and never will be supported by upstream, even if it works the speed cost currently is significant even for x86_64.
Nevertheless MPlayer SVN r30160 should have fixed it.
Comment 4 Wormo (RETIRED) gentoo-dev 2010-01-01 21:53:18 UTC
Mart, does it work for you when leaving out -fno-omit-frame-pointer?
Comment 5 Mart Raudsepp gentoo-dev 2010-01-02 02:34:24 UTC
I will have to test it sometime after 4th January.
Leaving out -fno-omit-frame-pointer is completely out of the question for me. Profiling performance is rendered impossible if I don't pass it. Also, the default on many architectures and compiler versions does not include -fomit-frame-pointer functionality
Comment 6 Reimar Döffinger 2010-01-03 17:22:48 UTC
> Leaving out -fno-omit-frame-pointer is completely out of the question for me.
> Profiling performance is rendered impossible if I don't pass it.

So you are instead profiling code that possibly has little to do performance-wise with production code because it has a register less at the critical points?

> Also, the default on many architectures and compiler versions does not include -fomit-frame-pointer functionality

Obviously it's not required there. It definitely is for x86 though, and to a degree for x86_64 (mostly to reduce differences between x86 and x86_64 asm).
If, like in this case, FFmpeg code is affected, you can however test FFmpeg and report a bug to them.
And trivial cases like this one might get fixed either way. However I doubt the gentoo bugtracker is the right place to report issues with stuff that is officially not supported upstream.
Though adding a warning about such flags in the ebuild might make sense (but please, don't filter them out I don't want more cases like the PIC filtering where nowadays MPlayer would compile just fine if it wasn't for the filtering rules in the ebuild breaking everything).
Comment 7 Mart Raudsepp gentoo-dev 2010-01-04 16:21:33 UTC
(In reply to comment #6)
> > Leaving out -fno-omit-frame-pointer is completely out of the question for me.
> > Profiling performance is rendered impossible if I don't pass it.
> 
> So you are instead profiling code that possibly has little to do
> performance-wise with production code because it has a register less at the
> critical points?

I am profiling the whole system every once in a while, so I have -fno-omit-frame-pointer in my global CFLAGS. mplayer is picking it up, and possibly causing the compile failure (which I have to still test, hopefully tomorrow).

> > Also, the default on many architectures and compiler versions does not include -fomit-frame-pointer functionality
> 
> Obviously it's not required there. It definitely is for x86 though, and to a
> degree for x86_64 (mostly to reduce differences between x86 and x86_64 asm).
> If, like in this case, FFmpeg code is affected, you can however test FFmpeg and
> report a bug to them.

Frame pointers are required on all architectures for any useful sample based profiling, with e.g sysprof or oprofile. If frame pointers don't exist, these tools are not able to generate a stacktrace of the samples it gathers, and so hot spot functions do not have context and are collected in one place, so it's not possible to see what caused that function to be a bottleneck, etc.
That said, I should probably omit frame pointers on my 64bit systems, because there are other issues there for getting a function trace on x86_64 systems, due to necessary interrupt captures not working well yet, so not getting a good stacktrace either way yet on amd64, but frame pointers are required on 32bit for perfect sample based profiling.

> And trivial cases like this one might get fixed either way. However I doubt the
> gentoo bugtracker is the right place to report issues with stuff that is
> officially not supported upstream.

I am including -fno-omit-frame-pointer _globally_ downstream, so downstream should work with it.

> Though adding a warning about such flags in the ebuild might make sense (but
> please, don't filter them out I don't want more cases like the PIC filtering
> where nowadays MPlayer would compile just fine if it wasn't for the filtering
> rules in the ebuild breaking everything).

Not filtering out is fine if it actually compiles and works with it in there...
Comment 8 Alexis Ballier gentoo-dev 2011-12-16 14:06:33 UTC
well, mplayer 1.0_rc4_p20111215 now uses system ffmpeg, if anything, this should be opened against ffmpeg, closing