[MPlayer-users] Bug:can't compile the latest svn for xsca le with iwmmxt

杭杰 technic123 at 126.com
Sat Jul 21 01:54:18 CEST 2007


  When I cross compile the latest mplayer source for xscale (with iwmmxt),
I have errors as following:
  arm-softfloat-linux-gnu-gcc -I../libavcodec -I../libavformat -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I.. -I../libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4   -pipe -ffast-math -fomit-frame-pointer    -c -o native/RTjpegN.o native/RTjpegN.c
{standard input}: Assembler messages:
{standard input}:799: Error: bad instruction `movq [r3,#0],%mm6'
{standard input}:802: Error: bad instruction `movq [r2,#0],%mm7'
{standard input}:806: Error: bad instruction `movq [r1],#8,%mm0'
{standard input}:807: Error: bad instruction `movq [r0,#0],%mm2'
{standard input}:808: Error: bad instruction `movq %mm0,%mm1'
{standard input}:809: Error: bad instruction `movq %mm2,%mm3'
{standard input}:810: Error: bad instruction `punpcklwd %mm6,%mm0'
{standard input}:811: Error: bad instruction `punpckhwd %mm6,%mm1'
{standard input}:812: Error: bad instruction `punpcklwd %mm7,%mm2'
{standard input}:813: Error: bad instruction `punpckhwd %mm7,%mm3'
{standard input}:814: Error: bad instruction `pmaddwd %mm2,%mm0'
{standard input}:815: Error: bad instruction `pmaddwd %mm3,%mm1'
{standard input}:816: Error: bad instruction `psrad #16,%mm0'
{standard input}:817: Error: bad instruction `psrad #16,%mm1'
{standard input}:818: Error: bad instruction `packssdw %mm1,%mm0'
{standard input}:819: Error: bad instruction `movq %mm0,[r0],#8'
{standard input}:882: Error: bad instruction `movq [r3,#0],%mm2'
{standard input}:883: Error: bad instruction `movq [r0,#0],%mm0'
{standard input}:884: Error: bad instruction `movq %mm0,%mm1'
{standard input}:885: Error: bad instruction `punpcklbw %mm2,%mm0'
{standard input}:888: Error: bad instruction `movq %mm0,[r9],#8'
{standard input}:889: Error: bad instruction `punpckhbw %mm2,%mm1'
{standard input}:890: Error: bad instruction `movq %mm1,[r1,#8]'
{standard input}:894: Error: bad instruction `movq [r0,#0],%mm0'
{standard input}:895: Error: bad instruction `movq %mm0,%mm1'
{standard input}:896: Error: bad instruction `punpcklbw %mm2,%mm0'
{standard input}:900: Error: bad instruction `movq %mm0,[r1,#16]'
...
{standard input}:6410: Error: bad instruction `pxor %mm6,%mm1'
{standard input}:6411: Error: bad instruction `pxor %mm6,%mm3'
{standard input}:6412: Error: bad instruction `pcmpgtw %mm7,%mm1'
{standard input}:6413: Error: bad instruction `pcmpgtw %mm7,%mm3'
{standard input}:6414: Error: bad instruction `por %mm0,%mm5'
{standard input}:6415: Error: bad instruction `por %mm2,%mm5'
{standard input}:6416: Error: bad instruction `por %mm1,%mm5'
{standard input}:6417: Error: bad instruction `por %mm3,%mm5'
{standard input}:6422: Error: bad instruction `movq %mm5,[sp,#8]'
{standard input}:6446: Error: bad instruction `emms'
make[1]: *** [native/RTjpegN.o] Error 1
make[1]: Leaving directory `/home/tec/Download/pxa270_build/mplayer-checkout-2007-07-20/libmpcodecs'
make: *** [libmpcodecs/libmpcodecs.a] error 2


  It seems that both MMX & iWMMXt option are turned on. When I use a compiler without iWMMXt, it compiles OK.

  my compiler configuration is:
    Using built-in specs.
    Target: arm-softfloat-linux-gnu
    Configured with: /home/tec/Download/crosstool-0.43/build/arm-softfloat-linux-gnu/gcc-4.0.2-glibc-2.3.6/gcc-4.0.2/configure  
--target=arm-softfloat-linux-gnu --host=x86_64-host_unknown-linux-gnu --prefix=/opt/crosstool/gcc-4.0.2-glibc-2.3.6/
arm-softfloat-linux-gnu     --with-float=soft --with-cpu=iwmmxt --enable-cxx-flags=-mcpu=iwmmxt --with-abi=iwmmxt --enable-cxx-flags=-mabi=iwmmxt --with-headers=/opt/crosstool/gcc-4.0.2-glibc-2.3.6/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/
include     --with-local-prefix=/opt/crosstool/gcc-4.0.2-glibc-2.3.6/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu --disable-nls
--enable-threads=posix     --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99
 --enable-long-long
Thread model: posix
gcc version 4.0.2


The attachments are config.mak, config.h and configure.log generated by configure.




人 山 人 海 盛 景,尽 在 梦 幻 西 游  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.mak
Type: application/octet-stream
Size: 10586 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20070721/8cbe5c8e/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.h
Type: text/x-chdr
Size: 40321 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20070721/8cbe5c8e/attachment.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: text/x-log
Size: 147884 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20070721/8cbe5c8e/attachment.bin>


More information about the MPlayer-users mailing list