When trying to emerge ffmpeg or apps using ffmpeg like mplayer, I get this error. Other bugs in bugzilla (62477) suggest this has to do with -fPIC compiler option, but I don't have that enabled. I also tried with USE="-mmx", but got the same error. Reproducible: Always Steps to Reproduce: 1.Emerge ffmpeg with these USE flags. Actual Results: gcc -Wall -O2 -mcpu=i686 -march=pentium4 -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o msmpeg4.o msmpeg4.c msmpeg4.c: In function `msmpeg4_pred_dc': msmpeg4.c:720: error: can't find a register in class `GENERAL_REGS' while reloading `asm' wmv2.c: At top level: wmv2.c:104: warning: `wmv2_encode_end' defined but not used make[1]: *** [msmpeg4.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/ffmpeg-0.4.9_pre1/work/ffmpeg-0.4.9-pre1/libavcodec' make: *** [lib] Error 2 Expected Results: Successful compilation. calcium root # emerge info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r13 i686) ================================================================= System uname: 2.6.9-gentoo-r13 i686 Intel(R) Celeron(R) CPU 2.66GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -march=pentium4" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -march=pentium4" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://chod.cwru.edu/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acl alsa apm arts avi berkdb bitmap-fonts cdparanoia cdr crypt cups divx4linux dvd encode esd fam flac foomatic foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imagemagick ipv6 java jpeg kde libwww lirc mad mikmod mmx motif mpeg mysql mythtv ncurses network nls nvidia oggvorbis opengl oss pam pdflib perl pngppds python qt quicktime readline samba sdl spell sse ssl svga tcltk tcpd tiff truetype v4l vim-with-x win32codecs xml xml2 xmms xv xvid zlib"
I did some additional experimenting; this issue only happens when both -mcpu=i686 and -march=pentium4 are in the CFLAGS. If either one of those is removed, ffmpeg emerges fine.
then i'll mark this one as fixed. thanks.