[Ffmpeg-devel] help find compile problems

Ronald S. Bultje rbultje
Sun Dec 10 16:20:04 CET 2006


Hi,

if ARCH_X86_{32,64} isn't defined (that was my own mistake, not a ffmpeg
bug), libavutil/common.h compiles ppc timer code on a x86, resulting in:

$ gcc -DHAVE_AV_CONFIG_H=1 -c -o vp3.o vp3.c -I../libavutil -I.. -Wall
/tmp/ccr54Ahb.s: Assembler messages:
/tmp/ccr54Ahb.s:13925: Error: no such instruction: `mftbu %ecx'
/tmp/ccr54Ahb.s:13926: Error: no such instruction: `mftb %eax'
/tmp/ccr54Ahb.s:13927: Error: no such instruction: `mftbu %edx'
/tmp/ccr54Ahb.s:13928: Warning: using `%dx' instead of `%edx' due to `w'
suffix
/tmp/ccr54Ahb.s:13928: Warning: using `%cx' instead of `%ecx' due to `w'
suffix
/tmp/ccr54Ahb.s:13929: Error: no such instruction: `bne 1b'

Attached patch will make it error out instead, by adding an extra check
for x86s before assuming ppc. This may not be wanted (normally people
shouldn't see it), but it makes such things easier to find if it does
occur. (Feel free to reject.)

Ronald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p
Type: text/x-patch
Size: 381 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061210/b7d865e2/attachment.bin>



More information about the ffmpeg-devel mailing list