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

Bug 90916

Summary: ffmpeg-0.4.9_p20050226-r5 fails to compile some provided assembler (maybe PIC related)
Product: Gentoo Linux Reporter: Justin Sanchez <imperito>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED FIXED    
Severity: normal CC: christian.hartmann, dfseifer, gentoo-bugs, gentoo, jrmalaq, k, mail, os, sebastian_ml, theosib
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Justin Sanchez 2005-04-29 16:33:43 UTC
I get the following errors. This might be PIC related, but I'm not sure how. USE="-pic" gives the same error, although the code is still compiled with -fPIC. I'm nt sure where its getting the CFLAGS from, though, mine (according to emerge info) don't have -fPIC.

Reproducible: Always
Steps to Reproduce:
1. Have a system with USE=pic
2. emerge ffmpeg-0.4.9_p20050226-r5 (probably need to use at least mmx, USE="-pic" doesn't help)


Actual Results:  
i686-pc-linux-gnu-gcc -Wall -Wno-switch -O3 -march=pentium4 -funroll-loops -fprefetch-loop-
arrays -pipe -fPIC -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
-D_GNU_SOURCE -c -o i386/vp3dsp_mmx.o i386/vp3dsp_mmx.c
distcc[25059] ERROR: compile /root/.ccache/mpegvideo_.tmp.sanchez.25051.i on 192.168.1.1/1 
failed
i386/mpegvideo_mmx_template.c: In function `dct_quantize_MMX':
i386/mpegvideo_mmx_template.c:93: error: can't find a register in class `GENERAL_REGS' while 
reloading `asm'
make[1]: *** [i386/mpegvideo_mmx.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/ffmpeg-0.4.9_p20050226-r5/work/ffmpeg-0.4.9-
p20050226-shared/libavcodec'
make: *** [lib] Error 2



Expected Results:  
Package compiled cleanly

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.7 
i686)
=============================================================
====
System uname: 2.6.7 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.2.3-r1,dev-lang/python-2.3.5 [2.3.5 (#1, Apr 28 2005, 03:
45:33)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.2.3-r1, 2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.6.3, 1.5, 1.4_p6, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /
usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/
kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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/bind /var/
qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/pub/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ccccom.com/"
LC_ALL="en_US.utf8"
LINGUAS="en ja"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X X509 Xaw3d aac aalib acl acpi alsa apache2 apm arts asterisk audiofile avi bash-
completion berkdb bitmap-fonts bonobo cdda cddb cdparanoia cdr cdrom cjk clamav crypt cscope 
cups curl db2 dga doc dv dvd dvdr emboss encode escreen esd ethereal evo exif faac faad fam 
festival ffmpeg flac foomaticdb fortran freetype ftp gd gdbm gif gimp gimpprint gkrellm gnome 
gnomedb gnuplot gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib 
ipv6 irda jabber java jpeg junit kde ldap libcaca libg++ libgdb libwww lirc live lzo lzw mad 
matroska mbox mbrola mikmod mmx mmx2 mmxext mng motif mozilla mp3 mpeg mpeg4 
mplayer mysql mythtv ncurses nethack network nls nptl nvidia ocaml oci8 odbc offensive ogg 
oggvorbis openal opengl oracle7 oss pam pda pdf pdflib pel perl php pic png pnp postgres ppds 
print python qt quicktime readline real rtc ruby samba sdl serial silc slang sndfile sockets sox 
speex spell sse sse2 ssl svga sysvipc tcltk tcpd tetex tga theora tiff transcode truetype 
truetype-fonts trusted type1-fonts udev unicode usb v4l v4l2 videos vim vorbis wxwindows 
xanim xine xinerama xinetd xml xml2 xmms xprint xv xvid yahoo zaptel zlib linguas_en 
linguas_ja"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LDFLAGS
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-04-29 17:03:49 UTC
The reason is that has_pic() has been corrected. Bug 90391
Comment 2 Justin Sanchez 2005-04-29 18:34:47 UTC
Ah, crazy. Do you know if there is a way to force non PIC compilation for the mmx assembler? 
Comment 3 Luca Barbato gentoo-dev 2005-05-01 05:30:19 UTC
add -fomit-frame-pointer to your cflags.

mmx has lower precedence over pic.
Comment 4 Krzysiek 2005-05-01 10:11:33 UTC
Version ffmpeg-0.4.9_p20050226-r3 fails to compile with similiar error:

i386/dsputil_mmx_avg.h:58: error: can't find a register in class `BREG' while reloading `asm'

but i don't know if this is related to PIC (whatever the PIC is ;-) )
Comment 5 Luca Barbato gentoo-dev 2005-05-01 11:35:08 UTC
same issue and same solution:
disable mmx.
Comment 6 Peter Thomassen 2005-05-01 12:15:59 UTC
Okay, this helps, but nevertheless, it has to be fixed
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-02 00:58:44 UTC
*** Bug 91125 has been marked as a duplicate of this bug. ***
Comment 8 t35t0r 2005-05-02 09:47:24 UTC
I turned off MMX and now the compile of ffmpeg-0.4.9_p20050226-r3 works, but why is it that this error seems to occur only on p4 and not on athlons (x86 or x86_64)?
Comment 9 Peter Thomassen 2005-05-02 14:32:46 UTC
Comment #8 is wrong, am experiencing this bug using Athlon XP 1800+, too.
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-02 14:47:12 UTC
Please sync and retry, should be fixed.
Comment 11 Matt McHenry 2005-05-02 21:39:43 UTC
Yep, works for me now.  Thanks!
Comment 12 Luca Barbato gentoo-dev 2005-05-03 10:26:24 UTC
Then I hope we could close it as fixed...
Comment 13 Johannes Ballé 2005-05-03 10:31:24 UTC
Did you apply the changes to -r3 as well?
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2005-05-05 00:22:51 UTC
*** Bug 91519 has been marked as a duplicate of this bug. ***
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2005-05-05 04:35:51 UTC
*** Bug 91556 has been marked as a duplicate of this bug. ***
Comment 16 Timothy Miller 2005-05-05 07:02:29 UTC
I made one of the duplicate reports.  The bug doesn't appear to be fixed for me.  I resynced and reemerged, and I still get the same compile error.  Is there a mirror I need to remove from my list?
Comment 17 Thomas R. (TRauMa) 2005-05-05 07:04:27 UTC
No. 0.4.9_p20050226-r3, the stable version of ffmpeg here, still has the problem.
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2005-05-05 10:24:40 UTC
Reopenening due to the last two comments.
Comment 19 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-05 11:19:28 UTC
Don't reopen bugs please.

-r5 is fixed, -r3 is not, for -r3, just add that -fomit-frame-pointer flag in your CFLAGS.
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2005-05-05 11:35:33 UTC
Comment #19: That does not make sense. Looking at both Bug 91556 and Bug 91519 

i686-pc-linux-gnu-gcc -O3 -Wall -Wno-switch -Os -march=pentium-m -fomit-frame-pointer -ftracer -pipe -fPIC -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

so I can
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2005-05-05 11:35:33 UTC
Comment #19: That does not make sense. Looking at both Bug 91556 and Bug 91519 

i686-pc-linux-gnu-gcc -O3 -Wall -Wno-switch -Os -march=pentium-m -fomit-frame-pointer -ftracer -pipe -fPIC -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

so I can´t see how adding -fomit-frame-pointer flag to CFLAGS will fix this if it´s already there. 
Comment 22 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-05 12:01:45 UTC
-ftracer and -finline-functions in cflags can be the problem.
Comment 23 Peter Thomassen 2005-05-05 12:48:23 UTC
Then, please make -r5 stable.
Comment 24 Jakub Moc (RETIRED) gentoo-dev 2005-05-06 00:31:02 UTC
*** Bug 91639 has been marked as a duplicate of this bug. ***
Comment 25 Jakub Moc (RETIRED) gentoo-dev 2005-05-06 01:30:53 UTC
*** Bug 91659 has been marked as a duplicate of this bug. ***
Comment 26 Jakub Moc (RETIRED) gentoo-dev 2005-05-06 01:56:59 UTC
Sorry, but -fomit-frame-pointer does not solve anything for -r3.

CFLAGS="-mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="-mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer"

In file included from i386/dsputil_mmx.c:165:
i386/dsputil_mmx_avg.h: In function `put_pixels4_l2_3dnow':
i386/dsputil_mmx_avg.h:58: error: can't find a register in class `BREG' while reloading `asm'
i386/dsputil_mmx.c: In function `dsputil_init_mmx':
i386/dsputil_mmx.c:3076: warning: assignment from incompatible pointer type
i386/dsputil_mmx.c:3077: warning: assignment from incompatible pointer type
i386/dsputil_mmx.c: At top level:
i386/dsputil_mmx_rnd.h:59: warning: `put_no_rnd_pixels8_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:155: warning: `put_no_rnd_pixels16_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:300: warning: `avg_no_rnd_pixels4_mmx' defined but not used
i386/dsputil_mmx_rnd.h:59: warning: `put_pixels8_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:155: warning: `put_pixels16_l2_mmx' defined but not used
make[1]: *** [i386/dsputil_mmx.o] Error 1
make[1]: *** Waiting for unfinished jobs....
i686-pc-linux-gnu-gcc -O3 -Wall -Wno-switch -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -I. -I'/var/tmp/portage/ffmpeg-0.4.9_p20050226-r3/work/ffmpeg-0.4.9-p20050226-shared' -I'/var/tmp/portage/ffmpeg-0.4.9_p20050226-r3/work/ffmpeg-0.4.9-p20050226-shared'/libavcodec -I'/var/tmp/portage/ffmpeg-0.4.9_p20050226-r3/work/ffmpeg-0.4.9-p20050226-shared'/libavformat -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -I/usr/include/SDL -D_REENTRANT -c -o ffplay.o ffplay.c
make[1]: Leaving directory `/var/tmp/portage/ffmpeg-0.4.9_p20050226-r3/work/ffmpeg-0.4.9-p20050226-shared/libavcodec'
make: *** [lib] Error 2
make: *** Waiting for unfinished jobs....

!!! ERROR: media-video/ffmpeg-0.4.9_p20050226-r3 failed.
!!! Function src_compile, Line 111, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

I can
Comment 27 Jakub Moc (RETIRED) gentoo-dev 2005-05-06 01:56:59 UTC
Sorry, but -fomit-frame-pointer does not solve anything for -r3.

CFLAGS="-mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="-mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer"

In file included from i386/dsputil_mmx.c:165:
i386/dsputil_mmx_avg.h: In function `put_pixels4_l2_3dnow':
i386/dsputil_mmx_avg.h:58: error: can't find a register in class `BREG' while reloading `asm'
i386/dsputil_mmx.c: In function `dsputil_init_mmx':
i386/dsputil_mmx.c:3076: warning: assignment from incompatible pointer type
i386/dsputil_mmx.c:3077: warning: assignment from incompatible pointer type
i386/dsputil_mmx.c: At top level:
i386/dsputil_mmx_rnd.h:59: warning: `put_no_rnd_pixels8_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:155: warning: `put_no_rnd_pixels16_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:300: warning: `avg_no_rnd_pixels4_mmx' defined but not used
i386/dsputil_mmx_rnd.h:59: warning: `put_pixels8_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:155: warning: `put_pixels16_l2_mmx' defined but not used
make[1]: *** [i386/dsputil_mmx.o] Error 1
make[1]: *** Waiting for unfinished jobs....
i686-pc-linux-gnu-gcc -O3 -Wall -Wno-switch -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer -I. -I'/var/tmp/portage/ffmpeg-0.4.9_p20050226-r3/work/ffmpeg-0.4.9-p20050226-shared' -I'/var/tmp/portage/ffmpeg-0.4.9_p20050226-r3/work/ffmpeg-0.4.9-p20050226-shared'/libavcodec -I'/var/tmp/portage/ffmpeg-0.4.9_p20050226-r3/work/ffmpeg-0.4.9-p20050226-shared'/libavformat -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -I/usr/include/SDL -D_REENTRANT -c -o ffplay.o ffplay.c
make[1]: Leaving directory `/var/tmp/portage/ffmpeg-0.4.9_p20050226-r3/work/ffmpeg-0.4.9-p20050226-shared/libavcodec'
make: *** [lib] Error 2
make: *** Waiting for unfinished jobs....

!!! ERROR: media-video/ffmpeg-0.4.9_p20050226-r3 failed.
!!! Function src_compile, Line 111, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

I can´t see any reason why to keep a broken "stable" ebuild in portage, unless it gets fixed. It can´t be even compiled. :/
Comment 28 Aniruddha Shankar 2005-05-06 07:13:16 UTC
I have the same problem as Jakub Moc in comment #25. 

My emerge info:
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-ck7 i686)
=================================================================
System uname: 2.6.11-ck7 i686 AMD Athlon(TM) XP 1700+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 29 2005, 23:59:45)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="hi"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac aalib abook acl acpi alsa apache2 apm arts artworkextra audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdda cddb cdio cdr crypt cups curl dts dv eds emboss encode esd fam ffmpeg flac font-server foomaticdb fortran freetype gd gdbm gif gkrellm gnome gnutls gpm gstreamer gtk gtk2 gtkhtml hal howl imagemagick imlib jack java javascript jpeg kde kdeenablefinal kdexdeltas lcms libcaca libg++ libwww lm_sensors logrotate mad md5sum mmx mmxext motif mozilla mp3 mpeg nas ncurses nls nptl nvidia ogg oggvorbis opengl oss pam pdflib perl pic png python qt quicktime readline real rtc sdl slang sndfile socks5 speex spell sse ssl svg svga tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode vcd vorbis wmf wxwindows xml xml2 xmms xprint xv xvid zlib linguas_hi userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 29 Aniruddha Shankar 2005-05-06 07:17:32 UTC
it also failed to compile with and without threads in USE flags and with MAKEOPTS="-j1"
Comment 30 Sebastian 2005-05-06 07:20:44 UTC
r3 still dies allthoug I have -fomit-frame-pointer:

i686-pc-linux-gnu-gcc -O3 -Wall -Wno-switch -O2 -march=athlon-xp -pipe -fomit-frame-pointer -fPIC -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o pthread.o pthread.c
i686-pc-linux-gnu-gcc -O3 -Wall -Wno-switch -O2 -march=athlon-xp -pipe -fomit-frame-pointer -fPIC -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o a52dec.o a52dec.c
i686-pc-linux-gnu-gcc -O3 -Wall -Wno-switch -O2 -march=athlon-xp -pipe -fomit-frame-pointer -fPIC -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o xvidff.o xvidff.c
a52dec.c: In function `dlsymm':
a52dec.c:76: warning: passing arg 2 of `av_log' makes integer from pointer without a cast
a52dec.c: In function `a52_decode_init':
a52dec.c:89: warning: passing arg 2 of `av_log' makes integer from pointer without a cast
i686-pc-linux-gnu-gcc -O3 -Wall -Wno-switch -O2 -march=athlon-xp -pipe -fomit-frame-pointer -fPIC -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o oggvorbis.o oggvorbis.c
i686-pc-linux-gnu-gcc -O3 -Wall -Wno-switch -O2 -march=athlon-xp -pipe -fomit-frame-pointer -fPIC -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
oggvorbis.c: In function `oggvorbis_decode_frame':
oggvorbis.c:246: warning: unused variable `i'
i686-pc-linux-gnu-gcc -O3 -Wall -Wno-switch -O2 -march=athlon-xp -pipe -fomit-frame-pointer -fPIC -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o i386/cputest.o i386/cputest.c
i686-pc-linux-gnu-gcc -O3 -Wall -Wno-switch -O2 -march=athlon-xp -pipe -fomit-frame-pointer -fPIC -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
i686-pc-linux-gnu-gcc -O3 -Wall -Wno-switch -O2 -march=athlon-xp -pipe -fomit-frame-pointer -fPIC -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o i386/mpegvideo_mmx.o i386/mpegvideo_mmx.c
i686-pc-linux-gnu-gcc -O3 -Wall -Wno-switch -O2 -march=athlon-xp -pipe -fomit-frame-pointer -fPIC -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o i386/idct_mmx.o i386/idct_mmx.c
i686-pc-linux-gnu-gcc -O3 -Wall -Wno-switch -O2 -march=athlon-xp -pipe -fomit-frame-pointer -fPIC -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o i386/motion_est_mmx.o i386/motion_est_mmx.c
i686-pc-linux-gnu-gcc -O3 -Wall -Wno-switch -O2 -march=athlon-xp -pipe -fomit-frame-pointer -fPIC -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o i386/simple_idct_mmx.o i386/simple_idct_mmx.c
In file included from i386/dsputil_mmx.c:165:
i386/dsputil_mmx_avg.h: In function `put_pixels4_l2_3dnow':
i386/dsputil_mmx_avg.h:58: error: can't find a register in class `BREG' while reloading `asm'
i686-pc-linux-gnu-gcc -O3 -Wall -Wno-switch -O2 -march=athlon-xp -pipe -fomit-frame-pointer -fPIC -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o i386/fft_sse.o i386/fft_sse.c
i386/dsputil_mmx.c: In function `dsputil_init_mmx':
i386/dsputil_mmx.c:3076: warning: assignment from incompatible pointer type
i386/dsputil_mmx.c:3077: warning: assignment from incompatible pointer type
i386/dsputil_mmx.c: At top level:
i386/dsputil_mmx_rnd.h:59: warning: `put_no_rnd_pixels8_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:155: warning: `put_no_rnd_pixels16_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:300: warning: `avg_no_rnd_pixels4_mmx' defined but not used
i386/dsputil_mmx_rnd.h:59: warning: `put_pixels8_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:155: warning: `put_pixels16_l2_mmx' defined but not used
make[1]: *** [i386/dsputil_mmx.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/ffmpeg-0.4.9_p20050226-r3/work/ffmpeg-0.4.9-p20050226-shared/libavcodec'
make: *** [lib] Error 2

r5 still dies, too. I reported the same errors here -> http://bugs.gentoo.org/show_bug.cgi?id=91639 and was told it was fixed:

rm -f libavformat.a
ar rc libavformat.a utils.o cutils.o os_support.o allformats.o mpeg.o mpegts.o mpegtsenc.o ffm.o crc.o img.o img2.o raw.o rm.o avienc.o avidec.o wav.o swf.o au.o gif.o mov.o mpjpeg.o dv.o yuv4mpeg.o 4xm.o flvenc.o flvdec.o movenc.o psxstr.o idroq.o ipmovie.o nut.o wc3movie.o mp3.o westwood.o segafilm.o idcin.o flic.o sierravmd.o matroska.o sol.o electronicarts.o nsvdec.o asf.o asf-enc.o  pnm.o yuv.o png.o jpeg.o gifdec.o sgi.o avio.o aviobuf.o file.o  framehook.o
i686-pc-linux-gnu-gcc -shared -o libavformat.so utils.o cutils.o os_support.o allformats.o mpeg.o mpegts.o mpegtsenc.o ffm.o crc.o img.o img2.o raw.o rm.o avienc.o avidec.o wav.o swf.o au.o gif.o mov.o mpjpeg.o dv.o yuv4mpeg.o 4xm.o flvenc.o flvdec.o movenc.o psxstr.o idroq.o ipmovie.o nut.o wc3movie.o mp3.o westwood.o segafilm.o idcin.o flic.o sierravmd.o matroska.o sol.o electronicarts.o nsvdec.o asf.o asf-enc.o  pnm.o yuv.o png.o jpeg.o gifdec.o sgi.o avio.o aviobuf.o file.o  framehook.o   -lm -lz -lpthread -ldl -lavcodec -L../libavcodec
ranlib libavformat.a
make[1]: Leaving directory `/var/tmp/portage/ffmpeg-0.4.9_p20050226-r5/work/ffmpeg-0.4.9-p20050226-shared/libavformat'
i686-pc-linux-gnu-gcc -Wl,--warn-common -rdynamic -g  -o ffmpeg_g ffmpeg.o cmdutils.o -L./libavformat -lavformat -L./libavcodec -lavcodec -lm -lz -lpthread -ldl -lxvidcore
i686-pc-linux-gnu-gcc -Wl,--warn-common -rdynamic -g  -o output_example output_example.o -L./libavformat -lavformat -L./libavcodec -lavcodec -lm -lz -lpthread -ldl -lxvidcore
/usr/lib/libpostproc.so.0: undefined reference to `fast_memcpy'
collect2: ld returned 1 exit status
make: *** [output_example] Error 1
make: *** Waiting for unfinished jobs....
/usr/lib/libpostproc.so.0: undefined reference to `fast_memcpy'
collect2: ld returned 1 exit status
make: *** [ffmpeg_g] Error 1


emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.12-rc3 i686)
=================================================================
System uname: 2.6.12-rc3 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May  5 2005, 13:34:23)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.6.3, 1.9.5, 1.7.9-r1, 1.4_p6, 1.5, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/data/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://sunsite.rwth-aachen.de/pub/Linux/gentoo"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="3dnow 3dnowext X alsa crypt cups dvb dvd foomaticdb gnome gtk gtk2 ithreads jpeg mad mmap mmx mmxext ncurses nls no_wxgtk1 oggvorbis png ppds readline rtc spell sse ssl threads truetype truetype-fonts userlocales x86 xv xvid zlib linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY

Cheers

Sebastian
Comment 31 Luca Barbato gentoo-dev 2005-05-06 08:21:00 UTC
that bug is about issues with mmx and cflags please do not attach issues unrelated or fixing them would take more time
Comment 32 Jakub Moc (RETIRED) gentoo-dev 2005-05-06 08:54:30 UTC
Comment #28: Please file a new bug about the other issue with -r5, don
Comment 33 Jakub Moc (RETIRED) gentoo-dev 2005-05-06 08:54:30 UTC
Comment #28: Please file a new bug about the other issue with -r5, don´t mix two problems into one bug.
Comment 34 Sebastian 2005-05-06 09:53:28 UTC
@Comment 30 Jakub Moc: I already did that yesterday and was told it was a dupe of this bug anyway.

http://bugs.gentoo.org/show_bug.cgi?id=91639
Comment 35 Jakub Moc (RETIRED) gentoo-dev 2005-05-06 10:40:16 UTC
Comment #31: You are mixing two different bugs into one... in Bug 91639 and here as well. Anyway, Bug 91639 is reopened now. 
Comment 36 Aniruddha Shankar 2005-05-06 11:37:58 UTC
While -r3 did not merge for me, -r5 did. My emerge info is in comment #26
Comment 37 Thomas R. (TRauMa) 2005-05-06 14:12:32 UTC
Btw, what does "Please don't reopen bugs" mean?. You'd rather have a horde of metoo-posts and dups?
Comment 38 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-06 14:24:36 UTC
Don't arbitrary do, mainly.
Comment 39 Jakub Moc (RETIRED) gentoo-dev 2005-05-06 14:42:50 UTC
Sorry, I don
Comment 40 Jakub Moc (RETIRED) gentoo-dev 2005-05-06 14:42:50 UTC
Sorry, I don´t know what you mean - arbitrarily. IMHO bug that is closed as fixed while it is still not fixed should be reopened so that it can be fixed properly. 

It was pretty obvious from Comment #4 and Comment #8 and also Bug 91125 (dupe of this one) that this bug affects -r3 as well, so I don´t understand why unstable version has been fixed and stable version left broken in portage without any explanation, causing more duplicate bugs on this one. 

So how much better is it now that this bug is marked FIXED and the stable ebuild still cannot be compiled? Huh? 
Comment 41 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-06 14:52:01 UTC
Bug #91125 was wrongly duped to that by me.
I'm sorry for this, I've just input the wrong bug# when duping it. -r5 should be fine on its own right now.
Comment 42 Luca Barbato gentoo-dev 2005-05-06 16:34:11 UTC
On a side note I marked the r5 stable as I planned some days ago, I hope that fixed everything for everybody