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

Petri Damsten petri.damsten
Mon Jan 9 23:29:58 CET 2006


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

After that I took the libavcodec/i386 dir from xine cvs which seems to work.

Petri

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060110/e738a288/attachment.pgp>



More information about the ffmpeg-devel mailing list