Bug 9375 - libav textrel QA warning
Summary: libav textrel QA warning
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: multimedia (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 2.1 M4
Assignee: Jussi Kukkonen
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-04-01 13:01 UTC by Martin Jansa
Modified: 2016-04-07 11:56 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Jansa 2016-04-01 13:01:40 UTC
Since switch from libav to ffmpeg (or last ffmpeg upgrade) we're seeing couple of textrel QA warnings again

ffmpeg-3.0: ELF binary '/home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/ffmpeg/3.0-r0/packages-split/libavcodec/usr/lib/libavcodec.so.57.24.102' has relocations in .text [textrel]
ffmpeg-3.0: ELF binary '/home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/ffmpeg/3.0-r0/packages-split/libswresample/usr/lib/libswresample.so.2.0.101' has relocations in .text [textrel]
ffmpeg-3.0: ELF binary '/home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/ffmpeg/3.0-r0/packages-split/libavfilter/usr/lib/libavfilter.so.6.31.100' has relocations in .text [textrel]
ffmpeg-3.0: ELF binary '/home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/ffmpeg/3.0-r0/packages-split/libswscale/usr/lib/libswscale.so.4.0.100' has relocations in .text [textrel]
ffmpeg-3.0: ELF binary '/home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/ffmpeg/3.0-r0/packages-split/libpostproc/usr/lib/libpostproc.so.54.0.100' has relocations in .text [textrel]

gstreamer1.0-libav-1.6.3: ELF binary '/home/jenkins/oe/world/shr-core/tmp-glibc/work/i586-oe-linux/gstreamer1.0-libav/1.6.3-r0/packages-split/gstreamer1.0-libav/usr/lib/gstreamer-1.0/libgstlibav.so' has relocations in .text [textrel]

Either fix them or mark them as known with INSANE_SKIP. Showing these errors in every build only causes people to ignore such issues (and other QA warnings as well).
Comment 1 Martin Jansa 2016-04-01 13:03:54 UTC
It was already reported with libav-9.18

http://logs.nslu2-linux.org/buildlogs/oe/world/log.report.20151120_143839.log
Comment 2 Martin Jansa 2016-04-01 13:06:52 UTC
And even older versions as well:

gstreamer1.0-libav-1.4.1: ELF binary '/tmp/work/i586-oe-linux/gstreamer1.0-libav/1.4.1-r0/packages-split/gstreamer1.0-libav/usr/lib/gstreamer-1.0/libgstlibav.so' has relocations in .text [textrel]

libav-9.16: ELF binary '/tmp/work/armv5te-oe-linux-gnueabi/libav/9.16-r0/packages-split/libavcodec/usr/lib/libavcodec.so.54.35.0' has relocations in .text [textrel]

http://logs.nslu2-linux.org/buildlogs/oe/world/fido/log.report.20141231_153342.log
Comment 3 Martin Jansa 2016-04-01 13:08:50 UTC
And older discussion about this:
http://patchwork.openembedded.org/patch/94315/
Comment 4 Jussi Kukkonen 2016-04-07 11:56:03 UTC
commit 3d56864fd3ea190a2fa203bba37aa4125919e676
Author: Jussi Kukkonen <jussi.kukkonen@intel.com>
Date:   Wed Apr 6 11:19:12 2016 +0300

    ffmpeg, gstreamer1.0-libav: add textrel INSANE_SKIPs
    
    ffmpeg disables PIC on some platforms even when --enable-pic is
    set, apparently for performance reasons. Add INSANE_SKIPS for the
    relevant packages.
    
    Fixes [YOCTO #9375].
    
    (From OE-Core rev: 4438a1125bb15ed19c78833f4d8a5b108cd91d30)
    
    Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>