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

Luca Barbato lu_zero
Tue Jan 10 03:10:38 CET 2006


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
> 
> With gentoo patch posted here earlier:
> /tmp/ccyR2jDE.s: Assembler messages:
> /tmp/ccyR2jDE.s:7775: Error: suffix or operands invalid for `dec'
> /tmp/ccyR2jDE.s:9417: Error: suffix or operands invalid for `dec'
> /tmp/ccyR2jDE.s:11613: Error: suffix or operands invalid for `dec'
> /tmp/ccyR2jDE.s:13223: Error: suffix or operands invalid for `dec'
> /tmp/ccyR2jDE.s:14865: Error: suffix or operands invalid for `dec'
> /tmp/ccyR2jDE.s:16679: Error: suffix or operands invalid for `dec'
> make[4]: *** [dsputil_mmx.lo] Error 1

Looks like we are stumbling in a lot of interesting gcc bugs. With 
another iteration gcc-2.95 iced..

lu

-- 

Luca Barbato

Gentoo/linux Developer		Gentoo/PPC Operational Leader
http://dev.gentoo.org/~lu_zero





More information about the ffmpeg-devel mailing list