From: Darren Hart <dvhart@linux.intel.com>
To: "poky@yoctoproject.org" <poky@yoctoproject.org>,
Dongxiao Xu <dongxiao.xu@intel.com>
Subject: gst-ffmpeg linker failure
Date: Thu, 02 Dec 2010 11:16:34 -0800 [thread overview]
Message-ID: <4CF7F092.9020703@linux.intel.com> (raw)
I see the following failure trying to build gst-ffmpeg for qemux86-64 on both Ubuntu 10.10 and Fedora 13. It seems to be complaining that things aren't being built with -fPIC.
From log.do_compile:
x86_64-poky-linux-libtool: link: ccache x86_64-poky-linux-gcc -L/vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib -shared -fPIC -DPIC .libs/libgstffmpeg_la-gstffmpeg.o .libs/libgstffmpeg_la-gstffmpegprotocol.o .libs/libgstffmpeg_la-gstffmpegcodecmap.o .libs/libgstffmpeg_la-gstffmpegenc.o .libs/libgstffmpeg_la-gstffmpegdec.o .libs/libgstffmpeg_la-gstffmpegdemux.o .libs/libgstffmpeg_la-gstffmpegdeinterlace.o .libs/libgstffmpeg_la-gstffmpegscale.o -Wl,--whole-archive ../../gst-libs/ext/ffmpeg/libavformat/.libs/libavformat.a -Wl,--no-whole-archive -Wl,-rpath -Wl,/vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib -L/vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/.libs -L/vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libvorbisenc.so /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libvorbis.so /vol/1/dvhart/poky.git
/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libogg.so /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libgstbase-0.10.so /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libgstreamer-0.10.so /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libgobject-2.0.so /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libgmodule-2.0.so /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libxml2.so -ldl /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libz.so -lm /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libgthread-2.0.so -lpthread /vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-poky-linux/usr/lib/libglib-2.0.so -lrt -pthread -pthread -O2 -Wl,-O1 -Wl,--as-needed -pthread -pthread -Wl,-soname -Wl,libgstffmpeg.so -Wl,-version-script -Wl,.libs/libgstffmpeg.ver -o .libs/libgstffmpeg.so
/vol/1/dvhart/poky.git/build/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/4.5.1/ld: .libs/libgstffmpeg_la-gstffmpeg.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
.libs/libgstffmpeg_la-gstffmpeg.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libgstffmpeg.la] Error 1
make[3]: Leaving directory `/vol/1/dvhart/poky.git/build/tmp/work/x86_64-poky-linux/gst-ffmpeg-0.10.1-r5/gst-ffmpeg-0.10.1/ext/ffmpeg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/vol/1/dvhart/poky.git/build/tmp/work/x86_64-poky-linux/gst-ffmpeg-0.10.1-r5/gst-ffmpeg-0.10.1/ext'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/vol/1/dvhart/poky.git/build/tmp/work/x86_64-poky-linux/gst-ffmpeg-0.10.1-r5/gst-ffmpeg-0.10.1'
make: *** [all] Error 2
FATAL: oe_runmake failed
ERROR: Task failed: ('function do_compile failed', '/vol/1/dvhart/poky.git/build/tmp/work/x86_64-poky-linux/gst-ffmpeg-0.10.1-r5/temp/log.do_compile.22338')
--
Darren Hart
Yocto Linux Kernel
next reply other threads:[~2010-12-02 19:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-02 19:16 Darren Hart [this message]
2010-12-02 23:27 ` gst-ffmpeg linker failure Gary Thomas
2010-12-03 0:50 ` Xu, Dongxiao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CF7F092.9020703@linux.intel.com \
--to=dvhart@linux.intel.com \
--cc=dongxiao.xu@intel.com \
--cc=poky@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox