[FFmpeg-user] compilation error for armv6 (pi0)

Abu Abdullah falcon.sheep at gmail.com
Thu Jun 6 21:48:07 EEST 2019


Hi,

I'm facing this issue while compiling ffmpeg on raspberry pi0
***************************
./libavutil/arm/intmath.h: In function ‘yuv2yuv_420p12to12_c’:
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably
doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably
doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably
doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably
doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably
doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
./libavutil/arm/intmath.h:77:5: warning: asm operand 2 probably
doesn’t match constraints
     __asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
     ^~~~~~~
ffbuild/common.mak:60: recipe for target 'libavfilter/colorspacedsp.o' failed
make: *** [libavfilter/colorspacedsp.o] Error 1
make: *** Waiting for unfinished jobs....
*******************************

compilation commands:

export LDFLAGS='-L/opt/vc/lib'
export CFLAGS+='-g -Wno-error -Wno-redundant-decls -I/opt/vc/include
-I/opt/vc/include/interface/vcos/pthreads
-I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/IL
-mcpu=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp -mtune=arm1176jzf-s'
export CPPFLAGS='-g -Wno-error -Wno-redundant-decls -I/opt/vc/include
-I/opt/vc/include/interface/vcos/pthreads
-I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/IL'
export CXXFLAGS="-g -Wno-error -Wno-redundant-decls"

export HAVE_ARMV6_INLINE=yes
export HAVE_ARMV6T2_INLINE=yes

sudo -E ./configure \
 --enable-cross-compile \
 --arch=armel \
 --target-os=linux \
 --enable-shared \
 --disable-static \
 --enable-gpl \
 --enable-libx264 \
 --disable-libopenmpt \
 --disable-neon \
 --enable-omx \
 --enable-nonfree \
 --enable-omx-rpi \
 --enable-mmal \
 --disable-doc \
 --disable-avdevice \
 --disable-postproc \
 --disable-optimizations \
 --disable-mmx \
 --disable-stripping


More information about the ffmpeg-user mailing list