* [PATCH 0/1] nativesdk-glib-2.0: cannot build on hosts without libffi.so.5
@ 2013-07-08 4:11 jackie.huang
2013-07-08 4:11 ` [PATCH 1/1] " jackie.huang
0 siblings, 1 reply; 3+ messages in thread
From: jackie.huang @ 2013-07-08 4:11 UTC (permalink / raw)
To: openembedded-core
From: Jackie Huang <jackie.huang@windriver.com>
The following changes since commit e2fa93a52c32522d4831e3d29f87bae4c6625f27:
glib: fix the python script munging for cross compile (2013-07-08 11:25:29 +0800)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib jhuang0/r_bbappend_glib_0708_5
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=jhuang0/r_bbappend_glib_0708_5
Jackie Huang (1):
nativesdk-glib-2.0: cannot build on hosts without libffi.so.5
meta/recipes-core/glib-2.0/glib-2.0_2.36.2.bb | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
--
1.7.4.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] nativesdk-glib-2.0: cannot build on hosts without libffi.so.5
2013-07-08 4:11 [PATCH 0/1] nativesdk-glib-2.0: cannot build on hosts without libffi.so.5 jackie.huang
@ 2013-07-08 4:11 ` jackie.huang
2013-07-08 15:29 ` Saul Wold
0 siblings, 1 reply; 3+ messages in thread
From: jackie.huang @ 2013-07-08 4:11 UTC (permalink / raw)
To: openembedded-core
From: Jackie Huang <jackie.huang@windriver.com>
The compile phase of nativesdk-glib-2.0 tries to run some binaries built
and since the -Wl,rpath doesn't specify the sysroot libraries with libffi.so.5,
attempts to run the binrary on hosts without libffi.so.5 results in an error
message complaining that it cannot find libffi.so.5, to fix this, specify
-Wl,rpath == -Wl,rpath-link
Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
meta/recipes-core/glib-2.0/glib-2.0_2.36.2.bb | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.36.2.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.36.2.bb
index ffe34ac..bd4f526 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.36.2.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.36.2.bb
@@ -46,6 +46,13 @@ RDEPENDS_${PN}-ptest_append_libc-glibc = "\
eglibc-localedata-translit-cjk-variants \
"
+BUILDSDK_LDFLAGS = "-L${STAGING_LIBDIR} \
+ -Wl,-rpath-link,${STAGING_LIBDIR} \
+ -Wl,-rpath,${STAGING_LIBDIR} -Wl,-O1 \
+ -L${STAGING_DIR_HOST}${base_libdir} \
+ -Wl,-rpath-link,${STAGING_DIR_HOST}${base_libdir} \
+ -Wl,-rpath,${STAGING_DIR_HOST}${base_libdir} -Wl,-O1"
+
do_configure_prepend() {
sed -i -e '1s,#!.*,#!${USRBINPATH}/env python,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in
}
--
1.7.4.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] nativesdk-glib-2.0: cannot build on hosts without libffi.so.5
2013-07-08 4:11 ` [PATCH 1/1] " jackie.huang
@ 2013-07-08 15:29 ` Saul Wold
0 siblings, 0 replies; 3+ messages in thread
From: Saul Wold @ 2013-07-08 15:29 UTC (permalink / raw)
To: jackie.huang, Amy Fong; +Cc: openembedded-core
On 07/07/2013 09:11 PM, jackie.huang@windriver.com wrote:
> From: Jackie Huang <jackie.huang@windriver.com>
>
> The compile phase of nativesdk-glib-2.0 tries to run some binaries built
> and since the -Wl,rpath doesn't specify the sysroot libraries with libffi.so.5,
> attempts to run the binrary on hosts without libffi.so.5 results in an error
> message complaining that it cannot find libffi.so.5, to fix this, specify
> -Wl,rpath == -Wl,rpath-link
I am not sure this makes sense, we have relocation code already, and
glib-2.0 DEPENDS on libffi, so it should be available. What binary is
being run? That same binary might be built for the target and would
have to be run native, so I think this is not correct.
Sau!
>
> Signed-off-by: Amy Fong <amy.fong@windriver.com>
> Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
> ---
> meta/recipes-core/glib-2.0/glib-2.0_2.36.2.bb | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.36.2.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.36.2.bb
> index ffe34ac..bd4f526 100644
> --- a/meta/recipes-core/glib-2.0/glib-2.0_2.36.2.bb
> +++ b/meta/recipes-core/glib-2.0/glib-2.0_2.36.2.bb
> @@ -46,6 +46,13 @@ RDEPENDS_${PN}-ptest_append_libc-glibc = "\
> eglibc-localedata-translit-cjk-variants \
> "
>
> +BUILDSDK_LDFLAGS = "-L${STAGING_LIBDIR} \
> + -Wl,-rpath-link,${STAGING_LIBDIR} \
> + -Wl,-rpath,${STAGING_LIBDIR} -Wl,-O1 \
> + -L${STAGING_DIR_HOST}${base_libdir} \
> + -Wl,-rpath-link,${STAGING_DIR_HOST}${base_libdir} \
> + -Wl,-rpath,${STAGING_DIR_HOST}${base_libdir} -Wl,-O1"
> +
> do_configure_prepend() {
> sed -i -e '1s,#!.*,#!${USRBINPATH}/env python,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in
> }
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-07-08 15:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-08 4:11 [PATCH 0/1] nativesdk-glib-2.0: cannot build on hosts without libffi.so.5 jackie.huang
2013-07-08 4:11 ` [PATCH 1/1] " jackie.huang
2013-07-08 15:29 ` Saul Wold
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.