Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550904 - media-video/ffmpeg-2.2.14 fails to build: libavutil/aes.o: error adding symbols
Summary: media-video/ffmpeg-2.2.14 fails to build: libavutil/aes.o: error adding symbols
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo ARM Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-31 20:15 UTC by Andrius Štikonas
Modified: 2017-09-14 07:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,34.96 KB, application/x-xz)
2015-05-31 20:16 UTC, Andrius Štikonas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrius Štikonas 2015-05-31 20:15:34 UTC
media-video/ffmpeg-2.2.14 fails to build:

/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.8.4/../../../../armv7a-hardfloat-linux-gnueabi/bin/ld: libavutil/aes.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
libavutil/aes.o: error adding symbols: Bad value


Reproducible: Always

Steps to Reproduce:
1. Emerge stable ffmpeg on ARM



[ebuild  r  U ] media-video/ffmpeg-2.2.14 [1.2.6-r1] USE="X aac alsa bzip2 encode fontconfig gnutls gsm hardcoded-tables iconv jpeg2k libass libcaca modplug mp3 network opengl%* opus pulseaudio sdl speex ssh%* theora threads truetype v4l vorbis wavpack%* webp%* xvid zlib (-aacplus) (-altivec) (-amr) -amrenc% (-armv5te) (-armv6) (-armv6t2) (-armvfp) (-bluray) -cdio -celt -cpudetection -debug -doc -examples -faac -fdk -flite (-frei0r) -gme% -iec61883 (-ieee1394) -jack (-ladspa) -libsoxr -libv4l (-mips32r2) (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-neon) -openal -openssl -oss -pic -quvi% (-rtmp) (-schroedinger) -static-libs {-test} -twolame (-vaapi) (-vdpau) (-vpx) (-x264) -x265% (-zvbi) (-vis%)" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash%* fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher"


Portage 2.2.18 (python 3.3.5-final-0, default/linux/arm/13.0/desktop/kde/systemd, gcc-4.8.4, glibc-2.20-r2, 4.0.4-gentoo-gnu armv7l)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.0.4-gentoo-gnu-armv7l-with-gentoo-2.2
KiB Mem:     2070364 total,    464644 free
KiB Swap:    4094972 total,   3965972 free
Timestamp of repository gentoo: Sun, 31 May 2015 18:45:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r2::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/cmake:           2.8.12.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.uk.gentoo.org/gentoo-portage
    priority: -1000

sunxi
    location: /var/lib/layman/sunxi
    masters: gentoo
    priority: 0

gitlab
    location: /var/lib/layman/gitlab
    masters: gentoo
    priority: 1

bliss-overlay
    location: /var/lib/layman/bliss-overlay
    masters: gentoo
    priority: 2

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="@FREE"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -fomit-frame-pointer"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /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 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://www.mirrorservice.org/sites/distfiles.gentoo.org/"
LANG="lt_LT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib acl acpi aio alsa apache2 apng archive arm authdaemond authlib autoipd avahi bash-completion bazaar berkdb bindist bittorrent bluetooth bogofilter bookmarks branding btrfs bugzilla bzip2 c++0x cairo calendar cdda cdr cgi chappa chatzilla chm cli clucene cmake color colordiff context cracklib crypt cryptsetup cups curl custom-optimization cvs cxx d daemon dbus deblob declarative deflate designer device-mapper dhcpd dirac djvu dot dovecot-sasl downloadorder dri drm dts dvd dvdr dvi dvi2tty dvipdfm dynamic eap-sim ebook edit egl eigen emacs embedded emboss enchant encode evdev exif extensions extra extra-algorithms extraengine fakevim fam farstream fat ffmpeg fftw firefox flac fontconfig fontforge foomaticdb fortran fortran2003 fortran95 fpm fpx freetds g3dvl gallium games gbm gd gdbm gdm geoip geoloc geolocation gif git glamor gles gles1 gles2 glew glsl gmp gnuplot gnutls go gold google gpg gpm gptfdisk gpu graphics graphicsmagick graphite graphviz gsl gsm gstreamer gtk gtk3 gtkspell gudev gzip harden hdf5 hdri highlight history hscolour hunspell hwdb icedtea7 iconv icu id3tag imagemagick imaging imap imlib imlib2 intl introspection iodbc ipc ipv6 jabber jadetex javascript jbootstrap jingle jit jpeg jpeg2k json kate kde kdepim kerberos keymap kipi kontact kpathsea kscreen ktp lame lapack lastfm latex latexmk lcms ldap lensfun less libass libcaca libkms libnotify libproxy libsamplerate libssh2 libtiger lightning llvm lto lua luatex lvm lyrics lzma lzo mad magic magnetgenerator maildir managesieve marble math mathml matplotlib matroska md5sum mdnsresponder-compat mediaplayer mediawiki melt mercurial metalink mhash mikmod minizip mjpeg mng mod modemmanager modplug modules monolithic monolithic-build monotone mount mp3 mp4 mpeg mpg123 mplayer mpx multitarget music musicbrainz mysql nat native native-exceptions ncurses nethack network networkmanager new-login nfs nls nntp nptl nsplugin nss ntfs ntfsprogs ntp numpy oauth objc objc++ objc-gc ogg ogg123 ogm okteta okular omega opengl opengtl openid openldap openmp openstreetmap optimization opus otr p2p pam pango parted pcap pcmcia pcntl pcre pcre16 pdf pdftk pdo perl phonon php pkcs11 plasma player plymouth png pnm policykit postgres postproc postscript ppds prediction preview-latex prison privacy privacylists privatestorage projectm psf pstricks pth publishers pulseaudio pyqt4 python qalculate qml qt3support qt4 qt5 quicktime quota qwt r600-llvm-compiler radio radius readline realtime redeyes resolvconf rss rtsp ruby sandbox sasl science script sdk sdl search secure-delete semantic-desktop sensord server session sftp sha512 shapefile shared-dricore shared-glapi sieve skins small-scale smartcard smime smtp sndfile soap sockets socks solver soprano sound soundtouch sparse speech speex spell sql sqlite sqlite3 srt srtp ssh ssl stars startup-notification strong-optimization stun subversion supernodal svg symlink syslog system-boost system-cairo system-ffmpeg system-icu system-jpeg system-libs system-libvncserver system-libyaml system-mpmath system-mupdf system-renpy system-sqlite system-wine systemd sysv-utils taglib tcl tcpd telepathy terminal tex4ht texteffect themedesigner themes theora thesaurus threads thumbnail thumbnails tidy tiff tls tor tordns translator truetype tty-helpers udev udisks udisks2 umfpack unicode unzip upnp-av upower usb v4l v8 vamp video videoslideshow vim vlc vlm vnc vorbis wav wavpack wayland wayland-compositor webcam webdav webkit webkit2 webm webp wifi wma wmf word-perfect wps wxwidgets xa xbase xcb xcomposite xetex xface xft xinerama xkb xml xmlrpc xmlwriter xmp xorg xpm xrandr xrender xv xvfb xvid xvmc xwayland xz youtube zeroconf zip zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="lt en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap omapfb dummy v4l" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Andrius Štikonas 2015-05-31 20:16:50 UTC
Created attachment 404390 [details]
build.log.xz
Comment 2 Andrius Štikonas 2015-06-01 21:55:47 UTC
Building 2.6.3 failed as well...
Comment 3 Alexis Ballier gentoo-dev 2015-06-02 07:17:27 UTC
(In reply to Andrius Štikonas from comment #0)
> Portage 2.2.18 (python 3.3.5-final-0,
> default/linux/arm/13.0/desktop/kde/systemd, gcc-4.8.4, glibc-2.20-r2,
> 4.0.4-gentoo-gnu armv7l)

you should probably switch to default/linux/arm/13.0/armv7a/desktop/kde profile, this would fix your issue

@arm team: what are the default/linux/arm/13.0/desktop/gnome/systemd profiles supposed to mean? this issue is due to the fact that 'armv6t2' useflag is masked and building ffmpeg for armv7 with this useflag disabled will fail
Comment 4 Andrius Štikonas 2015-06-04 22:18:23 UTC
(In reply to Alexis Ballier from comment #3)
> (In reply to Andrius Štikonas from comment #0)
> > Portage 2.2.18 (python 3.3.5-final-0,
> > default/linux/arm/13.0/desktop/kde/systemd, gcc-4.8.4, glibc-2.20-r2,
> > 4.0.4-gentoo-gnu armv7l)
> 
> you should probably switch to default/linux/arm/13.0/armv7a/desktop/kde
> profile, this would fix your issue
> 
> @arm team: what are the default/linux/arm/13.0/desktop/gnome/systemd
> profiles supposed to mean? this issue is due to the fact that 'armv6t2'
> useflag is masked and building ffmpeg for armv7 with this useflag disabled
> will fail

armv6t2 is also masked on default/linux/arm/13.0/armv7a/desktop/kde profile. systemd doesn't seem to affect it, it only masks consolekit flag.
Comment 5 Alexis Ballier gentoo-dev 2015-06-05 07:18:16 UTC
(In reply to Andrius Štikonas from comment #4)
> armv6t2 is also masked on default/linux/arm/13.0/armv7a/desktop/kde profile.
> systemd doesn't seem to affect it, it only masks consolekit flag.

I doubt it:


https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/profiles/arch/arm/armv7a/use.force?revision=1.1&view=markup

https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/profiles/arch/arm/armv7a/use.mask?r1=1.2&r2=1.3
Comment 6 Andrius Štikonas 2015-06-05 10:41:53 UTC
(In reply to Alexis Ballier from comment #5)
> (In reply to Andrius Štikonas from comment #4)
> > armv6t2 is also masked on default/linux/arm/13.0/armv7a/desktop/kde profile.
> > systemd doesn't seem to affect it, it only masks consolekit flag.
> 
> I doubt it:
> 
> 
> https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/profiles/arch/arm/
> armv7a/use.force?revision=1.1&view=markup
> 
> https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/profiles/arch/arm/
> armv7a/use.mask?r1=1.2&r2=1.3

Oh sorry, my mistake. I didn't notice that it was arm, not armv7a.
Comment 7 Alexis Ballier gentoo-dev 2017-09-14 07:36:06 UTC
latest ffmpeg has proper required use and profiles have been fixed I think, closing