* [PATCH V2 0/2]fix native package compile error with gcc 4.3.4 on x86 host
@ 2013-02-21 6:23 Hongxu Jia
2013-02-21 6:23 ` [PATCH 1/2] glib-2.0-native:fix do_configure failed " Hongxu Jia
2013-02-21 6:23 ` [PATCH 2/2] qemu-native:fix do_compile " Hongxu Jia
0 siblings, 2 replies; 3+ messages in thread
From: Hongxu Jia @ 2013-02-21 6:23 UTC (permalink / raw)
To: openembedded-core
Change from V1: rebase to commit f9b894eaba94763a8ec790f8635f58b4e7e05381
Add an option `-march' to BUILD_CFLAGS, GCC 4.3.4 on x86 host needs this
option to let the atomic operations ("lock free") be available while it
is used to compile glib-2.0-native
It's a bad idea to modify bitbake.conf to add option -march to BUILD_CFLAGS,
because it's global and its side effect is unknown, such as beecrypt-native
do_compile will fail if we do that.
So it's best to test most of the native recipes to have a check about the
similar problem and fix them separately. The glib-2.0-native and qemu-native
need to be fixed.
[YOCTO #3563]
The following changes since commit c7b23ab68aafc04d9830ef318015912e5d4f0672:
maintainers.inc: update ownership of recipes (2013-02-17 22:33:30 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib hongxu/glib-2.0-native
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/glib-2.0-native
Hongxu Jia (2):
glib-2.0-native:fix do_configure failed with gcc 4.3.4 on x86 host
qemu-native:fix do_compile failed with gcc 4.3.4 on x86 host
meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb | 5 +++++
meta/recipes-devtools/qemu/qemu.inc | 5 +++++
2 files changed, 10 insertions(+)
--
1.7.10.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] glib-2.0-native:fix do_configure failed with gcc 4.3.4 on x86 host
2013-02-21 6:23 [PATCH V2 0/2]fix native package compile error with gcc 4.3.4 on x86 host Hongxu Jia
@ 2013-02-21 6:23 ` Hongxu Jia
2013-02-21 6:23 ` [PATCH 2/2] qemu-native:fix do_compile " Hongxu Jia
1 sibling, 0 replies; 3+ messages in thread
From: Hongxu Jia @ 2013-02-21 6:23 UTC (permalink / raw)
To: openembedded-core
Add an option `-march' to BUILD_CFLAGS, GCC 4.3.4 on x86 host needs this
option to let the atomic operations ("lock free") be available while it
is used to compile glib-2.0-native.
[YOCTO #3563]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb
index d58d489..4012b21 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb
@@ -44,6 +44,11 @@ RDEPENDS_${PN}-ptest_append_libc-glibc = "\
eglibc-localedata-translit-cjk-variants \
"
+# Add an option `-march' to BUILD_CFLAGS, GCC 4.3.4 on x86 host needs this
+# option to let the atomic operations ("lock free") be available while it
+# is used to compile glib-2.0-native
+BUILD_CFLAGS += "-march=${@'${BUILD_ARCH}'.replace('_','-')}"
+
do_configure_prepend() {
sed -i -e '1s,#!.*,#!${USRBINPATH}/env python,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] qemu-native:fix do_compile failed with gcc 4.3.4 on x86 host
2013-02-21 6:23 [PATCH V2 0/2]fix native package compile error with gcc 4.3.4 on x86 host Hongxu Jia
2013-02-21 6:23 ` [PATCH 1/2] glib-2.0-native:fix do_configure failed " Hongxu Jia
@ 2013-02-21 6:23 ` Hongxu Jia
1 sibling, 0 replies; 3+ messages in thread
From: Hongxu Jia @ 2013-02-21 6:23 UTC (permalink / raw)
To: openembedded-core
Add an option `-march' to BUILD_CFLAGS, GCC 4.3.4 on x86 host needs this
option to let the atomic operations ("lock free") be available while it
is used to compile qemu-native.
[YOCTO #3563]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
meta/recipes-devtools/qemu/qemu.inc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 6c44b31..6289bf2 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -38,6 +38,11 @@ EXTRA_OECONF_class-nativesdk = "--target-list=${@get_qemu_target_list(d)} --disa
--disable-curl \
"
+# Add an option `-march' to BUILD_CFLAGS, GCC 4.3.4 on x86 host needs this
+# option to let the atomic operations ("lock free") be available while it
+# is used to compile qemu-native
+BUILD_CFLAGS += "-march=${@'${BUILD_ARCH}'.replace('_','-')}"
+
do_configure_prepend_class-native() {
# Undo the -lX11 added by linker-flags.patch, don't assume that host has libX11 installed
sed -i 's/-lX11//g' Makefile.target
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-21 6:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-21 6:23 [PATCH V2 0/2]fix native package compile error with gcc 4.3.4 on x86 host Hongxu Jia
2013-02-21 6:23 ` [PATCH 1/2] glib-2.0-native:fix do_configure failed " Hongxu Jia
2013-02-21 6:23 ` [PATCH 2/2] qemu-native:fix do_compile " Hongxu Jia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox