Compilation Error (cross-compile for arm)
Hello, I am trying to compile ffmpeg for an arm-processor. I tried several different configure options, the last one was: ./configure --enable-gpl --enable-postproc --cross-prefix=arm-linux- --enable-cross-compile --arch=armv4l --disable-mmx --disable-mmx2 --disable-ssse3 --disable-ipv6 --disable-ffplay --disable-ffserver --disable-altivec Configure succeeds with no error, but make exits with an error, always at the same position: arm-linux-gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I"/home/folz/workspace/ffmpeg" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -std=c99 -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -O3 -fno-math-errno -c -o libavcodec/mpegaudiodec.o libavcodec/mpegaudiodec.c libavcodec/armv4l/mathops.h: In function `decode_init': libavcodec/armv4l/mathops.h:32: warning: asm operand 4 probably doesn't match constraints libavcodec/armv4l/mathops.h:32: warning: asm operand 5 probably doesn't match constraints libavcodec/armv4l/mathops.h:32: warning: asm operand 4 probably doesn't match constraints libavcodec/armv4l/mathops.h:32: warning: asm operand 5 probably doesn't match constraints libavcodec/armv4l/mathops.h:32: warning: asm operand 4 probably doesn't match constraints libavcodec/armv4l/mathops.h:32: warning: asm operand 5 probably doesn't match constraints libavcodec/armv4l/mathops.h:32: error: impossible constraint in `asm' libavcodec/armv4l/mathops.h:32: error: impossible constraint in `asm' libavcodec/armv4l/mathops.h:32: error: impossible constraint in `asm' libavcodec/armv4l/mathops.h:31: warning: 'hi' might be used uninitialized in this function libavcodec/armv4l/mathops.h:31: warning: 'hi' might be used uninitialized in this function libavcodec/armv4l/mathops.h:31: warning: 'hi' might be used uninitialized in this function make: *** [libavcodec/mpegaudiodec.o] Error 1 That's the following part in mathops.h ("int lo, hi;" is line 31): # define MULL MULL static inline av_const int MULL(int a, int b, unsigned shift) { int lo, hi; __asm__("smull %0, %1, %2, %3 \n\t" "mov %0, %0, lsr %4 \n\t" "add %1, %0, %1, lsl %5 \n\t" : "=&r"(lo), "=&r"(hi) : "r"(b), "r"(a), "i"(shift), "i"(32-shift)); return hi; } Any Idea what could be the problem, or better...how to solve it? I am rather helpless at this point :( -- Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL f?r nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
participants (1)
-
MRiot@gmx.de