Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 241136 - media-plugins/gst-plugins-ffmpeg-0.10.2 doesn't compile with Safe CFLAGS
Summary: media-plugins/gst-plugins-ffmpeg-0.10.2 doesn't compile with Safe CFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-10 18:41 UTC by Steen Eugen "Miravlix" Poulsen
Modified: 2008-12-22 18:56 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steen Eugen "Miravlix" Poulsen 2008-10-10 18:41:20 UTC
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"

h264dsp_mmx.c: In function 'h264_h_loop_filter_luma_mmx2':
dsputil_mmx.c:632: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
dsputil_mmx.c:632: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
dsputil_mmx.c:632: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
dsputil_mmx.c:632: error: 'asm' operand has impossible constraints
dsputil_mmx.c:632: error: 'asm' operand has impossible constraints
dsputil_mmx.c:632: error: 'asm' operand has impossible constraints
dsputil_mmx.c:632: error: 'asm' operand has impossible constraints
h264dsp_mmx.c:403: error: 'asm' operand has impossible constraints
dsputil_mmx.c:632: error: 'asm' operand has impossible constraints
dsputil_mmx.c:632: error: 'asm' operand has impossible constraints
make[8]: *** [libmmxsse_la-dsputil_mmx.lo] Error 1


Reproducible: Always




emerge --info with -Os, but I did try with -O2 too.

Portage 2.2_rc11 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.6.1-r0, 2.6.26-gentoo-r1-vs2.3.0.35.6-hydra i686)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-vs2.3.0.35.6-hydra-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-glibc2.0
Timestamp of tree: Fri, 10 Oct 2008 06:45:04 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
ALSA_CARDS="usb"
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"
ANT_HOME="/usr/share/ant-core"
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="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CCACHE_DIR="/var/tmp/ccache"
CCACHE_SIZE="15G"
CDPATH=".:~/:/usr:/pub/archive:/usr/share/doc"
CFLAGS="-Os -march=native -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-Os -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EBEEP_IGNORE="true"
EDITOR="/usr/bin/emacs"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="-v --reinstall changed-use --usepkg"
EMERGE_WARNING_DELAY="10"
EPAUSE_IGNORE="true"
FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FIGNORE="~"
GCC_SPECS=""
GDK_USE_XFT="1"
GENERATION="2"
GENTOO_MIRRORS="http://ftp.ds.karen.hj.se/gentoo/ http://mirror.uni-c.dk/pub/gentoo/ http://distfiles.gentoo.org/"
HISTCONTROL="ignorespace:erasedups"
HISTFILESIZE="2500"
HISTIGNORE="knock*"
HISTSIZE="2500"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1/info:/usr/share/info/emacs-22"
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"
KDEDIRS="/usr:/usr/local:/usr/kde/3.5"
KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS="-Wl,-O1"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LINGUAS="da en"
LIRC_DEVICES="hauppauge"
LOGNAME="root"
LS_COLORS="no=00:fi=00: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:*.svgz=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:*.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:*.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="-j10"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1/man:/opt/sun-jdk-1.4.2.18/man:/etc/java-config/system-vm/man/:/usr/lib/php5/man/:/usr/kde/3.5/share/man:/usr/qt/3/doc/man"
OLDPWD="/usr/lib"
OPENGL_PROFILE="nvidia"
PAGER="/usr/bin/less"
PATH="/root/bin:/usr/lib/ccache/bin:/usr/lib/icecc/bin:/usr/lib/colorgcc/bin:/srv/shared/sbin:/srv/shared/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.3.1:/opt/sun-jdk-1.4.2.18/bin:/opt/sun-jdk-1.4.2.18/jre/bin:/opt/sun-jdk-1.4.2.18/jre/javaws:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
PKGDIR="/usr/portage/packages"
PKG_CONFIG_PATH="/usr/qt/3/lib/pkgconfig"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/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="save"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_LOGDIR="/var/log/portage"
PORTAGE_PYM_PATH="/usr/lib/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_TMPFS="/dev/shm"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/srv/shared/portage/layman/desktop-effects /srv/shared/portage/layman/gnome"
PREROOTPATH="/usr/lib/icecc/bin:/usr/lib/colorgcc/bin"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/root"
PYTHONDOCS="/usr/share/doc/python-docs-2.5.1/html/lib"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.3.1:/opt/sun-jdk-1.4.2.18/bin:/opt/sun-jdk-1.4.2.18/jre/bin:/opt/sun-jdk-1.4.2.18/jre/javaws:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
RPMDIR="/usr/portage/rpm"
RSYNC_PROXY="proxy:3128"
SHELL="/bin/bash"
SHLVL="1"
SSH_ASKPASS="/usr/bin/gtk2-ssh-askpass"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="screen"
USE="3dnow 3dnowext X a52 aac acl acpi alsa artworkextra avahi bash-completion beagle bluetooth branding bzip2 cairo caps cdda cddb cdio cdr cli cracklib crypt curl dbus dga doc dri dts dvd dvdr dvdread eds emacs emboss encode esd evo exif expat fam fame ffmpeg firefox firefox3 flac fontconfig fortran ftp gif gnome gnome-keyring gnomecd gnutls gpm gstreamer gtk gtkhtml hal iconv id3tag idn imagemagick imlib ithreads jpeg kde kdeenablefinal lame latex lcms libnotify libsamplerate lirc lm_sensors lzma lzo mad md5sum midi mikmod mjpeg mmap mmx mmxext mng mp2 mp3 mpeg mudflap musepack musicbrainz mythtv nautilus ncurses network nls nptl nptlonly nsplugin nuv offensive ogg openal opengl oss pam pcap pch pcre pdf png ppds pth qt3 qt3support qt4 quicktime radio rar readline real realmedia reflection rtc samba sdl session smp sndfile sound spell spl sqlite sqlite3 sse sse2 ssl startup-notification svg sysfs syslog theora threads tiff truetype unicode usb v4l v4l2 vorbis win32codecs wma wmf x264 x86 xanim xattr xcomposite xine xml xorg xpm xulrunner xv xvid xvmc yv12 zlib" ALSA_CARDS="usb" 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="da en" LIRC_DEVICES="hauppauge" USERLAND="GNU" VIDEO_CARDS="nvidia"
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 USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="nvidia"
VMHANDLE="sun-jdk-1.4"
WINDOW_MANAGER="compiz-manager"
XAUTHORITY="/root/.xauth3xmfVF"
XDG_DATA_DIRS="/usr/share:/usr/kde/3.5/share:/usr/local/share"
_="/usr/bin/emerge"
ftp_proxy="http://proxy:3128/"
http_proxy="http://proxy:3128/"
soap_use_proxy="on"
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-10-10 23:13:42 UTC
this sounds like the classical ffmpeg/gst-ffmpeg mismatch but I'm no expert on that one.
Comment 2 Alexis Ballier gentoo-dev 2008-10-22 04:24:46 UTC
This is because gst-ffmpeg uses its own copy of ffmpeg; g'luck fixing that. You may need yet another bunch of cflag mess, patch the inline asm, disable it; take your pick or wait until we can stablize a new ffmpeg and get 0.10.5 stable too.
Comment 3 Edward Hervey 2008-12-12 19:26:39 UTC
It would be good to know if this fails with more recent gst-ffmpeg. 0.10.2 is over a year old and a LOT of improvements have gone in, and a couple regarding user-custom cflags and handling of compilation.

This is too old to be fixable by upstream, and should maybe depend on #245291.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2008-12-22 14:36:05 UTC
(In reply to comment #3)
> It would be good to know if this fails with more recent gst-ffmpeg. 0.10.2 is
> over a year old and a LOT of improvements have gone in, and a couple regarding
> user-custom cflags and handling of compilation.

0.10.5 is the current stable, and 0.10.2 has been removed from portage.
Comment 5 Steen Eugen "Miravlix" Poulsen 2008-12-22 18:56:06 UTC
I'm afraid I've had to revert to a purely stable system as my machine kept crashing with the testing packages, so I no longer have the system available to me that was used for the initial bug report. (wtb ZFS, so I could have saved the old system.)