Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-2736

ffmpeg fail to compile on ARMv7 (raspberry pi 2) -- recompile with -fPIC

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None

      Full log on: https://bpaste.net/show/aaeaa6c625c2

      armv7a-hardfloat-linux-gnueabi-gcc shared -Wl,-soname,libavutil.so.54 -Wl,-Bsymbolic -Wl,version-script,libavutil/libavutil.ver -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,-O1 -Wl,sort-common -Wl,as-needed -Wl,as-needed -Wl,-z,noexecstack -Wl,-warn-common -Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample -o libavutil/libavutil.so.54 libavutil/adler32.o libavutil/aes.o libavutil/arm/cpu.o libavutil/arm/float_dsp_init_arm.o libavutil/arm/float_dsp_init_vfp.o libavutil/arm/float_dsp_vfp.o libavutil/atomic.o libavutil/audio_fifo.o libavutil/avstring.o libavutil/base64.o libavutil/blowfish.o libavutil/bprint.o libavutil/buffer.o libavutil/camellia.o libavutil/cast5.o libavutil/channel_layout.o libavutil/color_utils.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/intmath.o libavutil/lfg.o libavutil/lls.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/pixelutils.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/twofish.o libavutil/utils.o libavutil/xga_font_data.o libavutil/xtea.o -lXv -lX11 -lXext -lXfixes -lXext -lX11 -lcdio_paranoia -lcdio_cdda -lcdio -lasound -lssl -lcrypto -lGL -lxvidcore -lx265 -lwebp -lwavpack -lvorbisenc -lvorbis -logg -lvo-aacenc -ltwolame -ltwolame -ltheoraenc -ltheoradec -logg -lssh -lopenjpeg -DOPJ_STATIC -lmp3lame -lfreetype -lfaac -lbluray -lass -lm -llzma -lbz2 -lz -pthread
      /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.9.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.7.2/work/ffmpeg-2.7.2/library.mak:111: recipe for target 'libavutil/libavutil.so.54' failed
      make: *** [libavutil/libavutil.so.54] Error 1
      make: ** Esperando que outros processos terminem.

      • ERROR: media-video/ffmpeg-2.7.2 failed (compile phase):
      • emake failed
      • If you need support, post the output of `emerge --info '=media-video/ffmpeg-2.7.2'`,
      • the complete build log and the output of `emerge -pqv '=media-video/ffmpeg-2.7.2'`.
      • The complete build log is located at '/var/log/portage/media-video:ffmpeg-2.7.2:20150826-014149.log'.
      • For convenience, a symlink to the build log is located at '/var/tmp/portage/media-video/ffmpeg-2.7.2/temp/build.log'.
      • The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-2.7.2/temp/environment'.
      • Working directory: '/var/tmp/portage/media-video/ffmpeg-2.7.2/work/ffmpeg-2.7.2-.arm'
      • S: '/var/tmp/portage/media-video/ffmpeg-2.7.2/work/ffmpeg-2.7.2'

      >>> Failed to emerge media-video/ffmpeg-2.7.2, Log file:

      >>> '/var/log/portage/media-video:ffmpeg-2.7.2:20150826-014149.log'

      • Messages for package media-video/ffmpeg-2.7.2:
      • ERROR: media-video/ffmpeg-2.7.2 failed (compile phase):
      • emake failed
      • If you need support, post the output of `emerge --info '=media-video/ffmpeg-2.7.2'`,
      • the complete build log and the output of `emerge -pqv '=media-video/ffmpeg-2.7.2'`.
      • The complete build log is located at '/var/log/portage/media-video:ffmpeg-2.7.2:20150826-014149.log'.
      • For convenience, a symlink to the build log is located at '/var/tmp/portage/media-video/ffmpeg-2.7.2/temp/build.log'.
      • The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-2.7.2/temp/environment'.
      • Working directory: '/var/tmp/portage/media-video/ffmpeg-2.7.2/work/ffmpeg-2.7.2-.arm'
      • S: '/var/tmp/portage/media-video/ffmpeg-2.7.2/work/ffmpeg-2.7.2'
      • GNU info directory index is up-to-date.
      • IMPORTANT: 3 config files in '/etc' need updating.
      • See the CONFIGURATION FILES section of the emerge
      • man page to learn how to update config files.
      • IMPORTANT: 3 news items need reading for repository 'gentoo'.
      • Use eselect news to read news items.

            Unassigned Unassigned
            coffnix coffnix
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: