[Ffmpeg-devel] gcc4 support & MMX fixups (from Debian)

jason jason
Fri Jan 27 16:33:46 CET 2006


On Tue, 2006-01-10 at 00:29 +0200, Petri Damsten wrote:
> On Sunday 08 January 2006 22:23, Mike Melanson wrote:
> > A xine developer just committed this and a few other fixes to the xine
> > tree. Are they worth rolling into the official tree?
> 
> Just some notes to this...
> 
> My project is using ffmpeg and I have been trying to get it to compile on 
> Fedora Core 4 i386 (gcc 4.0.2). With current cvs I get errors:
> 
> In file included from i386/dsputil_mmx.c:2492:
> i386/h264dsp_mmx.c:49:1: warning: "SBUTTERFLY" redefined
> i386/dsputil_mmx.c:1525:1: warning: this is the location of the previous 
> definition
> i386/h264dsp_mmx.c:865:1: warning: "PUT_OP" redefined
> i386/dsputil_mmx.c:2377:1: warning: this is the location of the previous 
> definition
> i386/h264dsp_mmx.c: In function 'h264_h_loop_filter_luma_mmx2':
> i386/dsputil_mmx.c:621: error: can't find a register in class 'GENERAL_REGS' 
> while reloading 'asm'
> i386/dsputil_mmx.c:621: error: can't find a register in class 'GENERAL_REGS' 
> while reloading 'asm'
> make[4]: *** [dsputil_mmx.lo] Error 1

I get the same error with current cvs of ffmpeg, if I compile with the
following compiler/config options :

gcc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)
./configure --disable-opts --enable-pp --enable-shared

If I remove --disable-opts, it compiles fine, but I don't know why.

Cheers,
Jason





More information about the ffmpeg-devel mailing list