* [PATCH 0/1] fix a LSB test issue
@ 2011-03-07 16:55 Nitin A Kamble
2011-03-07 16:55 ` [PATCH 1/1] gcc-runtime: fix LSB library checks for libstdc++.so.6 Nitin A Kamble
0 siblings, 1 reply; 4+ messages in thread
From: Nitin A Kamble @ 2011-03-07 16:55 UTC (permalink / raw)
To: poky, openembedded-core; +Cc: Jingdong Lu
From: Nitin A Kamble <nitin.a.kamble@intel.com>
More details in the commit email.
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: nitin/misc
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=nitin/misc
Thanks,
Nitin A Kamble <nitin.a.kamble@intel.com>
---
Nitin A Kamble (1):
gcc-runtime: fix LSB library checks for libstdc++.so.6
meta/conf/bitbake.conf | 2 +-
meta/conf/distro/include/poky-eglibc.inc | 2 +-
meta/conf/distro/include/poky-glibc.inc | 2 +-
meta/conf/distro/include/poky-uclibc.inc | 2 +-
.../recipes-devtools/gcc/gcc-configure-runtime.inc | 1 +
meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb | 2 +-
6 files changed, 6 insertions(+), 5 deletions(-)
--
1.7.3.4
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 1/1] gcc-runtime: fix LSB library checks for libstdc++.so.6 2011-03-07 16:55 [PATCH 0/1] fix a LSB test issue Nitin A Kamble @ 2011-03-07 16:55 ` Nitin A Kamble 2011-03-07 17:14 ` [poky] " Khem Raj 0 siblings, 1 reply; 4+ messages in thread From: Nitin A Kamble @ 2011-03-07 16:55 UTC (permalink / raw) To: poky, openembedded-core; +Cc: Jingdong Lu From: Nitin A Kamble <nitin.a.kamble@intel.com> [YOCTO #795] When we run library check of LSB on qemux86 and qemuppc, we got some failures about 'libstdc++.so.6'. Test environment: Platform: Qemu-x86, Qemu-ppc lsb image: poky-image-lsb-qemux86-test.ext3(Feb 26th, auto-build server) Library check of LSB: 4.1.0-1 The error log: Did not find _ZNKSt5ctypeIcE8do_widenEPKcS2_Pc (GLIBCXX_3.4) in libstdc++.so.6 Unmangled symbol name: std::ctype<char>::do_widen(char const*, char const*, char*) const ... found that some weak symbols ('W') change into local ('t') during link time and be stripped. According to compiling log, the option "-fvisibility-inlines-hidden" is used for gcc. And this option caused some weak symbols change into local. see http://bugzilla.pokylinux.org/show_bug.cgi?id=795 for more information on the bug. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Jingdong Lu <jingdong.lu@windriver.com> --- meta/conf/bitbake.conf | 2 +- meta/conf/distro/include/poky-eglibc.inc | 2 +- meta/conf/distro/include/poky-glibc.inc | 2 +- meta/conf/distro/include/poky-uclibc.inc | 2 +- .../recipes-devtools/gcc/gcc-configure-runtime.inc | 1 + meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index cf99a81..473306a 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf @@ -463,7 +463,7 @@ export CFLAGS = "${TARGET_CFLAGS}" export TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION}" export BUILD_CXXFLAGS = "${BUILD_CFLAGS} -fpermissive" -export CXXFLAGS = "${TARGET_CXXFLAGS}" +export CXXFLAGS = "${TARGET_CXXFLAGS} ${CXXFLAGS_EXTRA}" export TARGET_CXXFLAGS = "${TARGET_CFLAGS} -fpermissive" export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \ diff --git a/meta/conf/distro/include/poky-eglibc.inc b/meta/conf/distro/include/poky-eglibc.inc index 3d2c362..44a0146 100644 --- a/meta/conf/distro/include/poky-eglibc.inc +++ b/meta/conf/distro/include/poky-eglibc.inc @@ -19,7 +19,7 @@ PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-initial-nativesdk ?= "eglibc-initia TARGET_OS = "${GLIBCTARGETOS}" -CXXFLAGS += "-fvisibility-inlines-hidden" +CXXFLAGS_EXTRA += "-fvisibility-inlines-hidden" LIBC_DEPENDENCIES = "libsegfault \ eglibc \ diff --git a/meta/conf/distro/include/poky-glibc.inc b/meta/conf/distro/include/poky-glibc.inc index 4be7122..d3f28c0 100644 --- a/meta/conf/distro/include/poky-glibc.inc +++ b/meta/conf/distro/include/poky-glibc.inc @@ -18,7 +18,7 @@ PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-initial-nativesdk ?= "glibc-initial TARGET_OS = "${GLIBCTARGETOS}" -CXXFLAGS += "-fvisibility-inlines-hidden" +CXXFLAGS_EXTRA += "-fvisibility-inlines-hidden" LIBC_DEPENDENCIES = "\ libsegfault \ diff --git a/meta/conf/distro/include/poky-uclibc.inc b/meta/conf/distro/include/poky-uclibc.inc index def9dfe..13c17f9 100644 --- a/meta/conf/distro/include/poky-uclibc.inc +++ b/meta/conf/distro/include/poky-uclibc.inc @@ -15,7 +15,7 @@ USE_NLS_glib-2.0 = "yes" TARGET_OS = "${UCLIBCTARGETOS}" -CXXFLAGS += "-fvisibility-inlines-hidden" +CXXFLAGS_EXTRA += "-fvisibility-inlines-hidden" IMAGE_LINGUAS = "" diff --git a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc index 6cc11e2..d4dfbc2 100644 --- a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc +++ b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc @@ -1,5 +1,6 @@ require gcc-configure-common.inc +CXXFLAGS_EXTA = "" EXTRA_OECONF_PATHS = " \ --with-local-prefix=${STAGING_DIR_TARGET}${prefix} \ --with-gxx-include-dir=${includedir}/c++/ \ diff --git a/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb index 093f9bf..c1e680d 100644 --- a/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb +++ b/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb @@ -1,4 +1,4 @@ -PR = "r2" +PR = "r3" require gcc-${PV}.inc require gcc-configure-runtime.inc -- 1.7.3.4 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [poky] [PATCH 1/1] gcc-runtime: fix LSB library checks for libstdc++.so.6 2011-03-07 16:55 ` [PATCH 1/1] gcc-runtime: fix LSB library checks for libstdc++.so.6 Nitin A Kamble @ 2011-03-07 17:14 ` Khem Raj 2011-03-08 21:21 ` Kamble, Nitin A 0 siblings, 1 reply; 4+ messages in thread From: Khem Raj @ 2011-03-07 17:14 UTC (permalink / raw) To: Nitin A Kamble; +Cc: poky, openembedded-core On Mon, Mar 7, 2011 at 8:55 AM, Nitin A Kamble <nitin.a.kamble@intel.com> wrote: > From: Nitin A Kamble <nitin.a.kamble@intel.com> > > [YOCTO #795] > > When we run library check of LSB on qemux86 and qemuppc, we got some failures > about 'libstdc++.so.6'. > > Test environment: > Platform: Qemu-x86, Qemu-ppc > lsb image: poky-image-lsb-qemux86-test.ext3(Feb 26th, auto-build server) > Library check of LSB: 4.1.0-1 > > The error log: > Did not find _ZNKSt5ctypeIcE8do_widenEPKcS2_Pc (GLIBCXX_3.4) in libstdc++.so.6 > Unmangled symbol name: std::ctype<char>::do_widen(char const*, char const*, > char*) const > ... > > found that some weak symbols ('W') change into local ('t') during link time > and be stripped. According to compiling log, the option > "-fvisibility-inlines-hidden" is used for gcc. And this option caused some weak > symbols change into local. > you could use oe_filter_out functionality to strip out a given option and you wont need to touch so many parts. Just do something like CXXFLAGS = "${@oe_filter_out('-fvisibility-inlines-hidden', '${CXXFLAGS}', d)}" in gcc runtime recipe and you should be set Thanks -Khem > see http://bugzilla.pokylinux.org/show_bug.cgi?id=795 for more information on the bug. > > Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> > Signed-off-by: Jingdong Lu <jingdong.lu@windriver.com> > --- > meta/conf/bitbake.conf | 2 +- > meta/conf/distro/include/poky-eglibc.inc | 2 +- > meta/conf/distro/include/poky-glibc.inc | 2 +- > meta/conf/distro/include/poky-uclibc.inc | 2 +- > .../recipes-devtools/gcc/gcc-configure-runtime.inc | 1 + > meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb | 2 +- > 6 files changed, 6 insertions(+), 5 deletions(-) > > diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf > index cf99a81..473306a 100644 > --- a/meta/conf/bitbake.conf > +++ b/meta/conf/bitbake.conf > @@ -463,7 +463,7 @@ export CFLAGS = "${TARGET_CFLAGS}" > export TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION}" > > export BUILD_CXXFLAGS = "${BUILD_CFLAGS} -fpermissive" > -export CXXFLAGS = "${TARGET_CXXFLAGS}" > +export CXXFLAGS = "${TARGET_CXXFLAGS} ${CXXFLAGS_EXTRA}" > export TARGET_CXXFLAGS = "${TARGET_CFLAGS} -fpermissive" > > export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \ > diff --git a/meta/conf/distro/include/poky-eglibc.inc b/meta/conf/distro/include/poky-eglibc.inc > index 3d2c362..44a0146 100644 > --- a/meta/conf/distro/include/poky-eglibc.inc > +++ b/meta/conf/distro/include/poky-eglibc.inc > @@ -19,7 +19,7 @@ PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-initial-nativesdk ?= "eglibc-initia > > TARGET_OS = "${GLIBCTARGETOS}" > > -CXXFLAGS += "-fvisibility-inlines-hidden" > +CXXFLAGS_EXTRA += "-fvisibility-inlines-hidden" > > LIBC_DEPENDENCIES = "libsegfault \ > eglibc \ > diff --git a/meta/conf/distro/include/poky-glibc.inc b/meta/conf/distro/include/poky-glibc.inc > index 4be7122..d3f28c0 100644 > --- a/meta/conf/distro/include/poky-glibc.inc > +++ b/meta/conf/distro/include/poky-glibc.inc > @@ -18,7 +18,7 @@ PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-initial-nativesdk ?= "glibc-initial > > TARGET_OS = "${GLIBCTARGETOS}" > > -CXXFLAGS += "-fvisibility-inlines-hidden" > +CXXFLAGS_EXTRA += "-fvisibility-inlines-hidden" > > LIBC_DEPENDENCIES = "\ > libsegfault \ > diff --git a/meta/conf/distro/include/poky-uclibc.inc b/meta/conf/distro/include/poky-uclibc.inc > index def9dfe..13c17f9 100644 > --- a/meta/conf/distro/include/poky-uclibc.inc > +++ b/meta/conf/distro/include/poky-uclibc.inc > @@ -15,7 +15,7 @@ USE_NLS_glib-2.0 = "yes" > > TARGET_OS = "${UCLIBCTARGETOS}" > > -CXXFLAGS += "-fvisibility-inlines-hidden" > +CXXFLAGS_EXTRA += "-fvisibility-inlines-hidden" > > IMAGE_LINGUAS = "" > > diff --git a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc > index 6cc11e2..d4dfbc2 100644 > --- a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc > +++ b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc > @@ -1,5 +1,6 @@ > require gcc-configure-common.inc > > +CXXFLAGS_EXTA = "" > EXTRA_OECONF_PATHS = " \ > --with-local-prefix=${STAGING_DIR_TARGET}${prefix} \ > --with-gxx-include-dir=${includedir}/c++/ \ > diff --git a/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb b/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb > index 093f9bf..c1e680d 100644 > --- a/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb > +++ b/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb > @@ -1,4 +1,4 @@ > -PR = "r2" > +PR = "r3" > > require gcc-${PV}.inc > require gcc-configure-runtime.inc > -- > 1.7.3.4 > > _______________________________________________ > poky mailing list > poky@yoctoproject.org > https://lists.yoctoproject.org/listinfo/poky > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [poky] [PATCH 1/1] gcc-runtime: fix LSB library checks for libstdc++.so.6 2011-03-07 17:14 ` [poky] " Khem Raj @ 2011-03-08 21:21 ` Kamble, Nitin A 0 siblings, 0 replies; 4+ messages in thread From: Kamble, Nitin A @ 2011-03-08 21:21 UTC (permalink / raw) To: Khem Raj; +Cc: poky@yoctoproject.org, openembedded-core@lists.openembedded.org > -----Original Message----- > From: Khem Raj [mailto:raj.khem@gmail.com] > Sent: Monday, March 07, 2011 9:14 AM > To: Kamble, Nitin A > Cc: poky@yoctoproject.org; openembedded-core@lists.openembedded.org > Subject: Re: [poky] [PATCH 1/1] gcc-runtime: fix LSB library checks for > libstdc++.so.6 > > On Mon, Mar 7, 2011 at 8:55 AM, Nitin A Kamble > <nitin.a.kamble@intel.com> wrote: > > From: Nitin A Kamble <nitin.a.kamble@intel.com> > > > > [YOCTO #795] > > > > When we run library check of LSB on qemux86 and qemuppc, we got some > failures > > about 'libstdc++.so.6'. > > > > Test environment: > > Platform: Qemu-x86, Qemu-ppc > > lsb image: poky-image-lsb-qemux86-test.ext3(Feb 26th, auto-build > server) > > Library check of LSB: 4.1.0-1 > > > > The error log: > > Did not find _ZNKSt5ctypeIcE8do_widenEPKcS2_Pc (GLIBCXX_3.4) in > libstdc++.so.6 > > Unmangled symbol name: std::ctype<char>::do_widen(char const*, char > const*, > > char*) const > > ... > > > > found that some weak symbols ('W') change into local ('t') during > link time > > and be stripped. According to compiling log, the option > > "-fvisibility-inlines-hidden" is used for gcc. And this option caused > some weak > > symbols change into local. > > > > > you could use oe_filter_out functionality to strip out a given option > and you wont need to touch so many parts. Just do something like > > CXXFLAGS = "${@oe_filter_out('-fvisibility-inlines-hidden', > '${CXXFLAGS}', d)}" in gcc runtime recipe and you should be set > > Thanks > > -Khem Good to know another trick. Thanks Khem. Nitin > > > see http://bugzilla.pokylinux.org/show_bug.cgi?id=795 for more > information on the bug. > > > > Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> > > Signed-off-by: Jingdong Lu <jingdong.lu@windriver.com> > > --- > > meta/conf/bitbake.conf | 2 +- > > meta/conf/distro/include/poky-eglibc.inc | 2 +- > > meta/conf/distro/include/poky-glibc.inc | 2 +- > > meta/conf/distro/include/poky-uclibc.inc | 2 +- > > .../recipes-devtools/gcc/gcc-configure-runtime.inc | 1 + > > meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb | 2 +- > > 6 files changed, 6 insertions(+), 5 deletions(-) > > > > diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf > > index cf99a81..473306a 100644 > > --- a/meta/conf/bitbake.conf > > +++ b/meta/conf/bitbake.conf > > @@ -463,7 +463,7 @@ export CFLAGS = "${TARGET_CFLAGS}" > > export TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION}" > > > > export BUILD_CXXFLAGS = "${BUILD_CFLAGS} -fpermissive" > > -export CXXFLAGS = "${TARGET_CXXFLAGS}" > > +export CXXFLAGS = "${TARGET_CXXFLAGS} ${CXXFLAGS_EXTRA}" > > export TARGET_CXXFLAGS = "${TARGET_CFLAGS} -fpermissive" > > > > export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \ > > diff --git a/meta/conf/distro/include/poky-eglibc.inc > b/meta/conf/distro/include/poky-eglibc.inc > > index 3d2c362..44a0146 100644 > > --- a/meta/conf/distro/include/poky-eglibc.inc > > +++ b/meta/conf/distro/include/poky-eglibc.inc > > @@ -19,7 +19,7 @@ PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc- > initial-nativesdk ?= "eglibc-initia > > > > TARGET_OS = "${GLIBCTARGETOS}" > > > > -CXXFLAGS += "-fvisibility-inlines-hidden" > > +CXXFLAGS_EXTRA += "-fvisibility-inlines-hidden" > > > > LIBC_DEPENDENCIES = "libsegfault \ > > eglibc \ > > diff --git a/meta/conf/distro/include/poky-glibc.inc > b/meta/conf/distro/include/poky-glibc.inc > > index 4be7122..d3f28c0 100644 > > --- a/meta/conf/distro/include/poky-glibc.inc > > +++ b/meta/conf/distro/include/poky-glibc.inc > > @@ -18,7 +18,7 @@ PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc- > initial-nativesdk ?= "glibc-initial > > > > TARGET_OS = "${GLIBCTARGETOS}" > > > > -CXXFLAGS += "-fvisibility-inlines-hidden" > > +CXXFLAGS_EXTRA += "-fvisibility-inlines-hidden" > > > > LIBC_DEPENDENCIES = "\ > > libsegfault \ > > diff --git a/meta/conf/distro/include/poky-uclibc.inc > b/meta/conf/distro/include/poky-uclibc.inc > > index def9dfe..13c17f9 100644 > > --- a/meta/conf/distro/include/poky-uclibc.inc > > +++ b/meta/conf/distro/include/poky-uclibc.inc > > @@ -15,7 +15,7 @@ USE_NLS_glib-2.0 = "yes" > > > > TARGET_OS = "${UCLIBCTARGETOS}" > > > > -CXXFLAGS += "-fvisibility-inlines-hidden" > > +CXXFLAGS_EXTRA += "-fvisibility-inlines-hidden" > > > > IMAGE_LINGUAS = "" > > > > diff --git a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc > b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc > > index 6cc11e2..d4dfbc2 100644 > > --- a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc > > +++ b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc > > @@ -1,5 +1,6 @@ > > require gcc-configure-common.inc > > > > +CXXFLAGS_EXTA = "" > > EXTRA_OECONF_PATHS = " \ > > --with-local-prefix=${STAGING_DIR_TARGET}${prefix} \ > > --with-gxx-include-dir=${includedir}/c++/ \ > > diff --git a/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb > b/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb > > index 093f9bf..c1e680d 100644 > > --- a/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb > > +++ b/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb > > @@ -1,4 +1,4 @@ > > -PR = "r2" > > +PR = "r3" > > > > require gcc-${PV}.inc > > require gcc-configure-runtime.inc > > -- > > 1.7.3.4 > > > > _______________________________________________ > > poky mailing list > > poky@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/poky > > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-08 21:24 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-03-07 16:55 [PATCH 0/1] fix a LSB test issue Nitin A Kamble 2011-03-07 16:55 ` [PATCH 1/1] gcc-runtime: fix LSB library checks for libstdc++.so.6 Nitin A Kamble 2011-03-07 17:14 ` [poky] " Khem Raj 2011-03-08 21:21 ` Kamble, Nitin A
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox