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

Gianluigi Tiesi mplayer
Sun Jan 29 20:13:35 CET 2006


On Fri, Jan 27, 2006 at 06:01:25PM +0100, Michael Niedermayer wrote:
> Hi
> 
> On Fri, Jan 27, 2006 at 03:33:46PM +0000, jason wrote:
> > 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.
> 
> this is a known gcc issue, report it to the gcc devels, not to us this is a
> compiler bug!
> (if enough people do they might actually fix it one day ... or not)
> 

manually compile the files that cannot be compiled with -O0 by adding -O2 to the
command line.

Bye

-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/





More information about the ffmpeg-devel mailing list