Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518946 - media-video/ffmpeg-2.3.1 - 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
Summary: media-video/ffmpeg-2.3.1 - ld: libavutil/aes.o: relocation R_ARM_MOVW_ABS_NC ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-03 15:46 UTC by Spekadyon
Modified: 2014-08-12 09:36 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Spekadyon 2014-08-03 15:46:41 UTC
Emerging media-video/ffmpeg-2.3.1 on arm fails. libavutil/libavutil.so.52 can't be generated due to problems with symbols in (at least) libavutil/aes.o. The following error is returned: 
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.8.3/../../../../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

Reproducible: Always

Steps to Reproduce:
1. emerge \=media-video/ffmpeg-2.3.1
Actual Results:  
emerge process fails due to the previously mentioned error.


Complete error message:

armv7a-hardfloat-linux-gnueabi-gcc -I. -I/var/tmp/portage/media-video/ffmpeg-2.3.1/work/ffmpeg-2.3.1/ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DHAVE_AV_CONFIG_H -O2 -pipe -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -fomit-frame-pointer  -O2 -pipe -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -fomit-frame-pointer -march=armv7-a -std=c99 -fomit-frame-pointer -marm -pthread -I/usr/include/opus -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O2 -pipe -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -fomit-frame-pointer -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -Wno-maybe-uninitialized  -MMD -MF libswresample/swresample.d -MT libswresample/swresample.o -c -o libswresample/swresample.o /var/tmp/portage/media-video/ffmpeg-2.3.1/work/ffmpeg-2.3.1/libswresample/swresample.c
armv7a-hardfloat-linux-gnueabi-gcc -shared -Wl,-soname,libavutil.so.52 -Wl,-Bsymbolic -Wl,--version-script,libavutil/libavutil.ver -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,-O1 -Wl,--as-needed  -Wl,--as-needed -Wl,--warn-common -Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample -o libavutil/libavutil.so.52 libavutil/adler32.o libavutil/aes.o libavutil/arm/cpu.o libavutil/arm/float_dsp_init_arm.o libavutil/arm/float_dsp_init_neon.o libavutil/arm/float_dsp_neon.o libavutil/atomic.o libavutil/audio_fifo.o libavutil/avstring.o libavutil/base64.o libavutil/blowfish.o libavutil/bprint.o libavutil/buffer.o libavutil/channel_layout.o libavutil/cpu.o libavutil/crc.o libavutil/des.o libavutil/dict.o libavutil/display.o libavutil/downmix_info.o libavutil/error.o libavutil/eval.o libavutil/fifo.o libavutil/file.o libavutil/file_open.o libavutil/fixed_dsp.o libavutil/float_dsp.o libavutil/frame.o libavutil/hash.o libavutil/hmac.o libavutil/imgutils.o libavutil/intfloat_readwrite.o libavutil/intmath.o libavutil/lfg.o libavutil/lls1.o libavutil/lls2.o libavutil/log.o libavutil/log2_tab.o libavutil/lzo.o libavutil/mathematics.o libavutil/md5.o libavutil/mem.o libavutil/murmur3.o libavutil/opt.o libavutil/parseutils.o libavutil/pixdesc.o libavutil/random_seed.o libavutil/rational.o libavutil/rc4.o libavutil/ripemd.o libavutil/samplefmt.o libavutil/sha.o libavutil/sha512.o libavutil/stereo3d.o libavutil/threadmessage.o libavutil/time.o libavutil/timecode.o libavutil/tree.o libavutil/utils.o libavutil/xga_font_data.o libavutil/xtea.o  -lxvidcore -lvorbisenc -lvorbis -logg -ltheoraenc -ltheoradec -logg -lspeex -lopus -lmp3lame -lfdk-aac -lm -lbz2 -lz -pthread
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.8.3/../../../../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
collect2: error: ld returned 1 exit status
/var/tmp/portage/media-video/ffmpeg-2.3.1/work/ffmpeg-2.3.1/library.mak:106: recipe for target 'libavutil/libavutil.so.52' failed
make: *** [libavutil/libavutil.so.52] Error 1
make: *** Waiting for unfinished jobs....


emerge --info:

Portage 2.2.10 (default/linux/arm/13.0/armv7a, gcc-4.8.3, glibc-2.19-r1, 3.14.4+ armv7l)
=================================================================
System uname: Linux-3.14.4+-armv7l-with-gentoo-2.2
KiB Mem:     2069788 total,    298028 free
KiB Swap:    1572860 total,   1567052 free
Timestamp of tree: Sat, 02 Aug 2014 21:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p47
dev-lang/python:          2.7.8, 3.3.5-r1
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.15 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo x-portage njlg
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="*"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -fomit-frame-pointer"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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"
CXXFLAGS="-O2 -pipe -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs buildpkg compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo "
LANG="fr_FR.utf8"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/gentoo-overlay"
SYNC="rsync://192.168.1.4/gentoo-portage"
USE="arm berkdb bzip2 caps cli cracklib crypt cxx dri gdbm iconv ipv6 modules ncurses neon nls nptl openmp pam pcre readline session ssl threads unicode vhosts 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" 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" 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 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-08 13:51:15 UTC
Please attach the entire build log to this bug report.