[MPlayer-users] Compile error (can't find register in class)

Rich Felker dalias at aerifal.cx
Fri Jun 16 15:26:52 CEST 2006


On Wed, Jun 14, 2006 at 05:18:47PM -0700, Jon Drukman wrote:
> i tried building mplayer on a 32 bit pentium 4 system and a 64 bit 
> opteron system, both with red hat enterprise linux 4, and in both cases 
> i get the following error:
> 
> i386/dsputil_mmx.c: In function `transpose4x4':
> i386/dsputil_mmx.c:621: error: can't find a register in class 
> `GENERAL_REGS' while reloading `asm'
> In file included from i386/dsputil_mmx.c:2622:
> 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:1262:1: warning: "PUT_OP" redefined
> i386/dsputil_mmx.c:2377:1: warning: this is the location of the previous 
> definition
> make[1]: *** [i386/dsputil_mmx.o] Error 1
> make[1]: Leaving directory `/opt/build/mplayer/libavcodec'
> 
> if i disable MMX it will compile, but it runs dog slow.  any idea how to 
> overcome this problem?

You omitted the most important line, the gcc command. Probably you
used your own CFLAGS and omitted all optimization options! Inline asm
does not work without at least -O1.

Of course it could be a broken compiler too..

Rich




More information about the MPlayer-users mailing list