gcc -Wall -O3 -march=athlon-xp -funroll-loops -pipe -yet_exec -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o i386/fdct_mmx.o i386/fdct_mmx.c i386/fdct_mmx.c: In function `ff_fdct_sse2': i386/fdct_mmx.c:543: warning: unused variable `i' gcc -Wall -O3 -march=athlon-xp -funroll-loops -pipe -yet_exec -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o i386/cputest.o i386/cputest.c gcc -Wall -O3 -march=athlon-xp -funroll-loops -pipe -yet_exec -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o i386/dsputil_mmx.o i386/dsputil_mmx.c i386/dsputil_mmx.c: In function `h263_h_loop_filter_mmx': i386/dsputil_mmx.c:614: error: can't find a register in class `GENERAL_REGS' while reloading `asm' i386/dsputil_mmx.c: At top level: i386/dsputil_mmx_rnd.h:363: warning: `avg_no_rnd_pixels8_l2_mmx' defined but not used i386/dsputil_mmx_rnd.h:410: warning: `avg_no_rnd_pixels16_l2_mmx' defined but not used i386/dsputil_mmx_avg.h:57: warning: `put_pixels8_l2_3dnow' defined but not used i386/dsputil_mmx_avg.h:129: warning: `put_pixels16_l2_3dnow' defined but not used i386/dsputil_mmx_avg.h:57: warning: `put_pixels8_l2_mmx2' defined but not used i386/dsputil_mmx_avg.h:129: warning: `put_pixels16_l2_mmx2' defined but not used make[1]: *** [i386/dsputil_mmx.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/ffmpeg-0.4.8.20040222/work/ffmpeg-20040222/libavcodec' make: *** [lib] Error 2 !!! ERROR: media-video/ffmpeg-0.4.8.20040222 failed. !!! Function src_compile, Line 64, Exitcode 2 !!! make failed. Reproducible: Always Steps to Reproduce: 1. 2. 3. Expected Results: Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.3-gentoo-r2) ================================================================= System uname: 2.6.3-gentoo-r2 i686 mobile AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.4.3.13p1 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /lib/modules /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc sandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.oregonstate.edu" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://triton3/gentoo-portage" USE="X Xaw3d aalib acl acpi afs alsa apache2 apm arts avi berkdb bonobo cdr crypt cscope cups curl dga directfb doc dvd emacs encode esd ethereal evo fbcon firebird flash foomaticdb freetds gb gd gdbm ggi gif gnome gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile imap imlib informix innodb ipv6 jack java jikes joystick jpeg kde kerberos ladcca lcm ldap leim libg++ libgda libwww lirc mad maildir mbox mcal memlimit mikmod mmx motif mozilla mpeg mpi mule mysql nas ncurses nhc98 nls oci8 odbc oggvorbis opengl oss pam pcmcia pda pdflib perl plotutils png pnp postgres ppds prelude python qt quicktime readline ruby ruby18 samba sasl scanner sdl slang slp snmp socks5 spell ssl svga tcltk tcpd tetex tiff truetype usb wmf wxwindows x86 xface xinerama xml2 xmms xosd xv zeo zlib"
See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13850 These cflags work for me: CFLAGS="-O -march=athlon-xp -funroll-loops -pipe" I had to set USE=-mmx. Johnny
Okay, this is a gcc issue and there is already a gentoo bug so I am closing this as a dupe. The gcc relevant bug is here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13850 *** This bug has been marked as a duplicate of 35667 ***