summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-02 12:43:29 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-02 12:54:44 +0100
commit5dcac2b3597dd110e656f56bf37a1b7359e8d240 (patch)
tree2f7525d796aa6cbbbe9658e58b05a60edea0b65e
parentce69eb93417bcd31c7d6422b179c4d47db0ad613 (diff)
downloadpoky-5dcac2b3597dd110e656f56bf37a1b7359e8d240.tar.gz
gst-ffmpeg: Fix build failures from sstate relocation
This is a similar situation to: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=3c96a5386355969428163ddb60216cc989e00b3d Builds were failing with a failure in configure: | checking for i586-poky-linux-gcc... ccache i586-poky-linux-gcc -m32 -march=i586 -L/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/sysroots/qemux86/usr/lib | checking whether the C compiler works... no | configure: error: in `/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/work/i586-poky-linux/gst-ffmpeg-0.10.13-r2/gst-ffmpeg-0.10.13': | configure: error: C compiler cannot create executables | See `config.log' for more details config.log shows: configure:3976: ccache i586-poky-linux-gcc -m32 -march=i586 -L/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/sysroots/qemux86/usr/lib -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed conftest.c >&5 /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux/../../libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.4/ld: cannot find crt1.o: No such file or directory /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux/../../libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.4/ld: cannot find crti.o: No such file or directory /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux/../../libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.4/ld: cannot find crtbegin.o: No such file or directory /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux/../../libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.4/ld: cannot find -lgcc /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-world/build/build/tmp/sysroots/x86_64-linux/usr/bin/i586-poky-linux/../../libexec/i586-poky-linux/gcc/i586-poky-linux/4.6.4/ld: cannot find -lgcc_s collect2: ld returned 1 exit status The reason being the --sysroot option is missing from the gcc commandline and its looking in nightly-x86, not nightly-world in this case. There is no reason to add extra -L options to the compiler, the sysroot already takes care of this. We can therefore simply remove this incorrect CC line. (From OE-Core rev: 78299c87eafbea8331fa062f61095dd8de429109) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-multimedia/gstreamer/gst-ffmpeg_0.10.13.bb5
1 files changed, 1 insertions, 4 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gst-ffmpeg_0.10.13.bb b/meta/recipes-multimedia/gstreamer/gst-ffmpeg_0.10.13.bb
index 3b607bf8cb..a166290cfc 100644
--- a/meta/recipes-multimedia/gstreamer/gst-ffmpeg_0.10.13.bb
+++ b/meta/recipes-multimedia/gstreamer/gst-ffmpeg_0.10.13.bb
@@ -24,7 +24,7 @@ SRC_URI = "http://gstreamer.freedesktop.org/src/${BPN}/${BPN}-${PV}.tar.bz2 \
24SRC_URI[md5sum] = "7f5beacaf1312db2db30a026b36888c4" 24SRC_URI[md5sum] = "7f5beacaf1312db2db30a026b36888c4"
25SRC_URI[sha256sum] = "76fca05b08e00134e3cb92fa347507f42cbd48ddb08ed3343a912def187fbb62" 25SRC_URI[sha256sum] = "76fca05b08e00134e3cb92fa347507f42cbd48ddb08ed3343a912def187fbb62"
26 26
27PR = "r2" 27PR = "r3"
28 28
29GSTREAMER_DEBUG ?= "--disable-debug" 29GSTREAMER_DEBUG ?= "--disable-debug"
30EXTRA_OECONF = "--with-ffmpeg-extra-configure=\"--target-os=linux\" ${GSTREAMER_DEBUG}" 30EXTRA_OECONF = "--with-ffmpeg-extra-configure=\"--target-os=linux\" ${GSTREAMER_DEBUG}"
@@ -37,6 +37,3 @@ FILES_${PN} += "${libdir}/gstreamer-0.10/*.so"
37FILES_${PN}-dbg += "${libdir}/gstreamer-0.10/.debug" 37FILES_${PN}-dbg += "${libdir}/gstreamer-0.10/.debug"
38FILES_${PN}-dev += "${libdir}/gstreamer-0.10/*.la" 38FILES_${PN}-dev += "${libdir}/gstreamer-0.10/*.la"
39FILES_${PN}-staticdev += "${libdir}/gstreamer-0.10/*.a" 39FILES_${PN}-staticdev += "${libdir}/gstreamer-0.10/*.a"
40
41# Hack to get STAGING_LIBDIR into the linker path when building ffmpeg
42CC = "${CCACHE} ${HOST_PREFIX}gcc ${TARGET_CC_ARCH} -L${STAGING_LIBDIR}"