[Ffmpeg-devel] [PATCH] fix x86 asm compilation
Aurelien Jacobs
aurel
Mon May 30 00:39:23 CEST 2005
Hi,
Currently i386/dsputil_mmx.c fails to compiles on x86 when configured
with --disable-opts. (At least for me with gcc 3.3.4)
Here is the error I get :
$ make
make -C libavcodec all
make[1]: Entering directory `/data/mplayer/ffmpeg.run/libavcodec'
gcc -g -Wall -Wno-switch -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o i386/dsputil_mmx.o i386/dsputil_mmx.c
i386/dsputil_mmx.c: In function `dsputil_init_mmx':
i386/dsputil_mmx.c:3389: warning: assignment from incompatible pointer type
i386/dsputil_mmx.c:3390: warning: assignment from incompatible pointer type
i386/dsputil_mmx.c: In function `transpose4x4':
i386/dsputil_mmx.c:617: error: can't find a register in class `GENERAL_REGS' while reloading `asm'
i386/dsputil_mmx.c: At top level:
i386/dsputil_mmx_rnd.h:59: warning: `put_no_rnd_pixels8_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:155: warning: `put_no_rnd_pixels16_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:300: warning: `avg_no_rnd_pixels4_mmx' defined but not used
i386/dsputil_mmx_rnd.h:59: warning: `put_pixels8_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:155: warning: `put_pixels16_l2_mmx' defined but not used
make[1]: *** [i386/dsputil_mmx.o] Error 1
make[1]: Leaving directory `/data/mplayer/ffmpeg.run/libavcodec'
make: *** [lib] Error 2
I've written a small patch which fixes this. I don't like it very much,
but I've no better idea right now.
Aurel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dsputil_mmx-fix.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20050530/ea09318b/attachment.asc>
More information about the ffmpeg-devel
mailing list