Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ffmpeg failing to build on ARM
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
natesully
n00b
n00b


Joined: 23 Feb 2006
Posts: 49

PostPosted: Sat Nov 05, 2011 10:57 pm    Post subject: ffmpeg failing to build on ARM Reply with quote

I'm having trouble building ffmpeg on a Cortex-A8 host. Specifically, I get "selected processor does not support 'vpush {d8-d15}'" and other similar errors when building the dsputil_vfp.S file. Since I have -mcpu=cortex-a8 and -mfpu=neon in make.conf, I think my processor definitely supports vpush, that is a NEON instruction. I tried -mfpu=vfp and vfpv3 just in case, nothing seems to work.

Anyone have similar problems, or know how to fix this?
Back to top
View user's profile Send private message
natesully
n00b
n00b


Joined: 23 Feb 2006
Posts: 49

PostPosted: Mon Nov 07, 2011 3:45 am    Post subject: Reply with quote

Well, I found one way - disable VFP and NEON (./configure --disable-armvfp --disable-neon). That's lame, but I really can't figure out how to get ffmpeg to compile with either. After looking here: https://roundup.libav.org/issue1141 I think the config system used by the library might be a little busted on ARM.
Back to top
View user's profile Send private message
donc_oe
n00b
n00b


Joined: 26 Feb 2012
Posts: 8

PostPosted: Sun Mar 25, 2012 10:04 pm    Post subject: Reply with quote

hi, i'm having the same issue with ffmpeg-0.7.8 on an arm machine.

Code:
Portage 2.1.10.44 (default/linux/arm/10.0, gcc-4.5.3, glibc-2.13-r4, 2.6.38-1001-ac100 armv7l)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.38-1001-ac100-armv7l-ARMv7_Processor_rev_0_-v7l-with-gentoo-2.0.3
Timestamp of tree: Sun, 25 Mar 2012 08:30:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.2-r3
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl arm berkdb bzip2 cli cracklib crypt cups cxx fortran gdbm gpm iconv ipv6 modules mudflap ncurses nls nptl nptlonly openmp pam pcre pppd readline savedconfig session ssl sysfs tcpd unicode xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev tegra" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Code:
[ebuild  N    ] media-video/ffmpeg-0.7.8  USE="bzip2 encode hardcoded-tables qt-faststart zlib (-3dnow) (-3dnowext) -X -aac -alsa (-altivec) (-amr) -avx -bindist (-celt) -cpudetection -custom-cflags -debug -dirac -doc -faac (-frei0r) -gsm (-ieee1394) -jack -jpeg2k (-mmx) (-mmxext) -mp3 -network -oss -pic (-rtmp) (-schroedinger) -sdl -speex (-ssse3) -static-libs -test -theora -threads -truetype -v4l (-vaapi) (-vdpau) -vorbis (-vpx) (-x264) -xvid" VIDEO_CARDS="(-nvidia)"

Code:
AS   libavcodec/arm/dsputil_arm.o
AS   libavcodec/arm/dsputil_armv6.o
CC   libavcodec/arm/dsputil_init_arm.o
CC   libavcodec/arm/dsputil_init_armv5te.o
CC   libavcodec/arm/dsputil_init_armv6.o
CC   libavcodec/arm/dsputil_init_vfp.o
AS   libavcodec/arm/dsputil_vfp.o
libavcodec/arm/dsputil_vfp.S: Assembler messages:
libavcodec/arm/dsputil_vfp.S:45: Error: selected processor does not support ARM mode `vpush {d8-d15}'
libavcodec/arm/dsputil_vfp.S:46: Error: selected processor does not support ARM mode `fmrx r12,fpscr'
libavcodec/arm/dsputil_vfp.S:48: Error: selected processor does not support ARM mode `fmxr fpscr,r12'
libavcodec/arm/dsputil_vfp.S:50: Error: selected processor does not support ARM mode `vldmia r1!,{s0-s3}'
libavcodec/arm/dsputil_vfp.S:51: Error: selected processor does not support ARM mode `vldmia r2!,{s8-s11}'
libavcodec/arm/dsputil_vfp.S:52: Error: selected processor does not support ARM mode `vldmia r1!,{s4-s7}'
libavcodec/arm/dsputil_vfp.S:53: Error: selected processor does not support ARM mode `vldmia r2!,{s12-s15}'
libavcodec/arm/dsputil_vfp.S:54: Error: selected processor does not support ARM mode `vmul.f32 s8,s0,s8'
libavcodec/arm/dsputil_vfp.S:57: Error: selected processor does not support ARM mode `vmul.f32 s12,s4,s12'
libavcodec/arm/dsputil_vfp.S:58: Error: selected processor does not support ARM mode `vldmiage r1!,{s16-s19}'
libavcodec/arm/dsputil_vfp.S:59: Error: selected processor does not support ARM mode `vldmiage r2!,{s24-s27}'
libavcodec/arm/dsputil_vfp.S:60: Error: selected processor does not support ARM mode `vldmiage r1!,{s20-s23}'
libavcodec/arm/dsputil_vfp.S:61: Error: selected processor does not support ARM mode `vldmiage r2!,{s28-s31}'
libavcodec/arm/dsputil_vfp.S:62: Error: selected processor does not support ARM mode `vmulge.f32 s24,s16,s24'
libavcodec/arm/dsputil_vfp.S:63: Error: selected processor does not support ARM mode `vstmia r0!,{s8-s11}'
libavcodec/arm/dsputil_vfp.S:64: Error: selected processor does not support ARM mode `vstmia r0!,{s12-s15}'
libavcodec/arm/dsputil_vfp.S:65: Error: selected processor does not support ARM mode `vmulge.f32 s28,s20,s28'
libavcodec/arm/dsputil_vfp.S:66: Error: selected processor does not support ARM mode `vldmiagt r1!,{s0-s3}'
libavcodec/arm/dsputil_vfp.S:67: Error: selected processor does not support ARM mode `vldmiagt r2!,{s8-s11}'
libavcodec/arm/dsputil_vfp.S:68: Error: selected processor does not support ARM mode `vldmiagt r1!,{s4-s7}'
libavcodec/arm/dsputil_vfp.S:69: Error: selected processor does not support ARM mode `vldmiagt r2!,{s12-s15}'
libavcodec/arm/dsputil_vfp.S:70: Error: selected processor does not support ARM mode `vmulge.f32 s8,s0,s8'
libavcodec/arm/dsputil_vfp.S:71: Error: selected processor does not support ARM mode `vstmiage r0!,{s24-s27}'
libavcodec/arm/dsputil_vfp.S:72: Error: selected processor does not support ARM mode `vstmiage r0!,{s28-s31}'
libavcodec/arm/dsputil_vfp.S:76: Error: selected processor does not support ARM mode `fmxr fpscr,r12'
libavcodec/arm/dsputil_vfp.S:77: Error: selected processor does not support ARM mode `vpop {d8-d15}'
libavcodec/arm/dsputil_vfp.S:88: Error: selected processor does not support ARM mode `vpush {d8-d15}'
libavcodec/arm/dsputil_vfp.S:90: Error: selected processor does not support ARM mode `vldmdb r2!,{s0-s3}'
libavcodec/arm/dsputil_vfp.S:91: Error: selected processor does not support ARM mode `vldmia r1!,{s8-s11}'
libavcodec/arm/dsputil_vfp.S:92: Error: selected processor does not support ARM mode `vldmdb r2!,{s4-s7}'
libavcodec/arm/dsputil_vfp.S:93: Error: selected processor does not support ARM mode `vldmia r1!,{s12-s15}'
libavcodec/arm/dsputil_vfp.S:94: Error: selected processor does not support ARM mode `vmul.f32 s8,s3,s8'
libavcodec/arm/dsputil_vfp.S:95: Error: selected processor does not support ARM mode `vmul.f32 s9,s2,s9'
libavcodec/arm/dsputil_vfp.S:96: Error: selected processor does not support ARM mode `vmul.f32 s10,s1,s10'
libavcodec/arm/dsputil_vfp.S:97: Error: selected processor does not support ARM mode `vmul.f32 s11,s0,s11'
libavcodec/arm/dsputil_vfp.S:100: Error: selected processor does not support ARM mode `vldmdbge r2!,{s16-s19}'
libavcodec/arm/dsputil_vfp.S:101: Error: selected processor does not support ARM mode `vmul.f32 s12,s7,s12'
libavcodec/arm/dsputil_vfp.S:102: Error: selected processor does not support ARM mode `vldmiage r1!,{s24-s27}'
libavcodec/arm/dsputil_vfp.S:103: Error: selected processor does not support ARM mode `vmul.f32 s13,s6,s13'
libavcodec/arm/dsputil_vfp.S:104: Error: selected processor does not support ARM mode `vldmdbge r2!,{s20-s23}'
libavcodec/arm/dsputil_vfp.S:105: Error: selected processor does not support ARM mode `vmul.f32 s14,s5,s14'
libavcodec/arm/dsputil_vfp.S:106: Error: selected processor does not support ARM mode `vldmiage r1!,{s28-s31}'
libavcodec/arm/dsputil_vfp.S:107: Error: selected processor does not support ARM mode `vmul.f32 s15,s4,s15'
libavcodec/arm/dsputil_vfp.S:108: Error: selected processor does not support ARM mode `vmulge.f32 s24,s19,s24'
libavcodec/arm/dsputil_vfp.S:109: Error: selected processor does not support ARM mode `vldmdbgt r2!,{s0-s3}'
libavcodec/arm/dsputil_vfp.S:110: Error: selected processor does not support ARM mode `vmulge.f32 s25,s18,s25'
libavcodec/arm/dsputil_vfp.S:111: Error: selected processor does not support ARM mode `vstmia r0!,{s8-s13}'
libavcodec/arm/dsputil_vfp.S:112: Error: selected processor does not support ARM mode `vmulge.f32 s26,s17,s26'
libavcodec/arm/dsputil_vfp.S:113: Error: selected processor does not support ARM mode `vldmiagt r1!,{s8-s11}'
libavcodec/arm/dsputil_vfp.S:114: Error: selected processor does not support ARM mode `vmulge.f32 s27,s16,s27'
libavcodec/arm/dsputil_vfp.S:115: Error: selected processor does not support ARM mode `vmulge.f32 s28,s23,s28'
libavcodec/arm/dsputil_vfp.S:116: Error: selected processor does not support ARM mode `vldmdbgt r2!,{s4-s7}'
libavcodec/arm/dsputil_vfp.S:117: Error: selected processor does not support ARM mode `vmulge.f32 s29,s22,s29'
libavcodec/arm/dsputil_vfp.S:118: Error: selected processor does not support ARM mode `vstmia r0!,{s14-s15}'
libavcodec/arm/dsputil_vfp.S:119: Error: selected processor does not support ARM mode `vmulge.f32 s30,s21,s30'
libavcodec/arm/dsputil_vfp.S:120: Error: selected processor does not support ARM mode `vmulge.f32 s31,s20,s31'
libavcodec/arm/dsputil_vfp.S:121: Error: selected processor does not support ARM mode `vmulge.f32 s8,s3,s8'
libavcodec/arm/dsputil_vfp.S:122: Error: selected processor does not support ARM mode `vldmiagt r1!,{s12-s15}'
libavcodec/arm/dsputil_vfp.S:123: Error: selected processor does not support ARM mode `vmulge.f32 s9,s2,s9'
libavcodec/arm/dsputil_vfp.S:124: Error: selected processor does not support ARM mode `vmulge.f32 s10,s1,s10'
libavcodec/arm/dsputil_vfp.S:125: Error: selected processor does not support ARM mode `vstmiage r0!,{s24-s27}'
libavcodec/arm/dsputil_vfp.S:126: Error: selected processor does not support ARM mode `vmulge.f32 s11,s0,s11'
libavcodec/arm/dsputil_vfp.S:127: Error: selected processor does not support ARM mode `vstmiage r0!,{s28-s31}'
libavcodec/arm/dsputil_vfp.S:130: Error: selected processor does not support ARM mode `vpop {d8-d15}'
make: *** [libavcodec/arm/dsputil_vfp.o] Error 1
emake failed
 * ERROR: media-video/ffmpeg-0.7.8 failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 2171:  Called die
 * The specific snippet of code:
 *       emake || die;


i tried EXTRA_ECONF="--disable-armvfp --disable-neon" but that didn't work either....

any ideas?
Back to top
View user's profile Send private message
ssvb
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2003
Posts: 96

PostPosted: Mon Mar 26, 2012 10:40 pm    Post subject: Reply with quote

You can try adding EXTRA_FFMPEG_CONF="--extra-cflags=-mfpu=neon" line to your /etc/make.conf or consider using libav-9999, see https://bugs.gentoo.org/show_bug.cgi?id=349814#c22

edit: Actually it would be EXTRA_FFMPEG_CONF="--extra-cflags=-mfpu=vfpv3-d16" for tegra2. In any case, ffmpeg uses ad-hoc build scripts and just ignores your CFLAGS.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum