[FFmpeg-user] cross compile build error (gcc ver. 3.4.4)

Hyun Park hyunya77 at gmail.com
Tue Aug 16 07:52:40 CEST 2011


I'm newbie for ffmpeg.
Recently, I'm trying to build the latest ffmpeg(0.8.2) using arm cross
compile tool chain.
Unfortunately, I met the below build error. (The result was same with
another version too. e.g. 0.6.x)
I used below configure option for build. (arm 720t processor)

--enable-shared --disable-static --disable-avdevice --disable-ffmpeg
--disable-ffplay  --disable-ffprobe --disable-ffserver --disable-debug
--arch=arm --disable-armv6 --disable-armv5te --disable-armv6t2
--target-os=linux --enable-cross-compile
--cross-prefix=$(TOOLCHAINPATH)/$(CC_PREFIX)- --prefix=$(CROSSCOMP_ROOT)/usr
--extra-cflags='$(INC_DIR) $(CPU_ARCH)' --extra-ldflags='$(CPU_ARCH)'
--disable-static --enable-shared --enable-pic --disable-altivec
--disable-amd3dnow --disable-amd3dnowext --disable-mmx --disable-mmx2
--disable-sse --disable-ssse3 --enable-armv5te --disable-armv6
--disable-armv6t2 --disable-armvfp --disable-iwmmxt --disable-mmi
--disable-neon --disable-vis --disable-yasm

I got below errors when compiling some assembly files.
AS    libavcodec/arm/dsputil_arm.o
libavcodec/arm/dsputil_arm.S: Assembler messages:
libavcodec/arm/dsputil_arm.S:25: Error: unknown pseudo-op: `.eabi_attribute'
libavcodec/arm/dsputil_arm.S:110: Error: bad instruction `push {r4-r11,lr}'
libavcodec/arm/dsputil_arm.S:113: Error: bad instruction `ldm r1,{r4-r7}'
libavcodec/arm/dsputil_arm.S:115: Error: bad instruction `stm r0,{r4-r7}'
libavcodec/arm/dsputil_arm.S:120: Error: bad instruction `pop {r4-r11,pc}'
libavcodec/arm/dsputil_arm.S:123: Error: bad instruction `ldm r1,{r4-r8}'
libavcodec/arm/dsputil_arm.S:128: Error: bad instruction `stm r0,{r9-r12}'
libavcodec/arm/dsputil_arm.S:131: Error: bad instruction `pop {r4-r11,pc}'
libavcodec/arm/dsputil_arm.S:134: Error: bad instruction `ldm r1,{r4-r8}'
libavcodec/arm/dsputil_arm.S:139: Error: bad instruction `stm r0,{r9-r12}'
libavcodec/arm/dsputil_arm.S:142: Error: bad instruction `pop {r4-r11,pc}'

It seems like that gcc can't recognize some arm instruction. Is it right?


More information about the ffmpeg-user mailing list