* Native packages compiled with host gcc set in PATH and with LD_LIBRARY_PATH to libstd++
@ 2016-03-04 15:13 Chris Z.
2016-05-06 8:43 ` Chris Z.
0 siblings, 1 reply; 4+ messages in thread
From: Chris Z. @ 2016-03-04 15:13 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 683 bytes --]
Hi,
I have set newer gcc(4.9) in PATH and with proper LD_LIBRARY_PATH. Default
system gcc is 4.4.
Bulding cmake-native fails when bootstrap cmake tries to compile cmake
native binary.
This is due to the fact that bootstrap was compiled with newer glibcxx and
it can't be found in system/host /usr/lib, /usr/lib64 nor in -rpath.
rpath is set to
-Wl,-rpath,${STAGING_LIBDIR_NATIVE} \
-Wl,-rpath,${STAGING_BASE_LIBDIR_NATIVE} \
from BUILD_LDFLAGS var in bitbake.conf which is expand in native class.
What is the correct approach to fix this ? Or I shouldn't use gcc from PATH
for compilation of native packages ?
[-- Attachment #2: Type: text/html, Size: 852 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Native packages compiled with host gcc set in PATH and with LD_LIBRARY_PATH to libstd++ 2016-03-04 15:13 Native packages compiled with host gcc set in PATH and with LD_LIBRARY_PATH to libstd++ Chris Z. @ 2016-05-06 8:43 ` Chris Z. 2016-05-06 13:55 ` Khem Raj 0 siblings, 1 reply; 4+ messages in thread From: Chris Z. @ 2016-05-06 8:43 UTC (permalink / raw) To: yocto [-- Attachment #1: Type: text/plain, Size: 815 bytes --] Hi, Any tips ? On Fri, Mar 4, 2016 at 4:13 PM, Chris Z. <winotu.email@gmail.com> wrote: > Hi, > > I have set newer gcc(4.9) in PATH and with proper LD_LIBRARY_PATH. Default > system gcc is 4.4. > > Bulding cmake-native fails when bootstrap cmake tries to compile cmake > native binary. > > This is due to the fact that bootstrap was compiled with newer glibcxx and > it can't be found in system/host /usr/lib, /usr/lib64 nor in -rpath. > > rpath is set to > -Wl,-rpath,${STAGING_LIBDIR_NATIVE} \ > -Wl,-rpath,${STAGING_BASE_LIBDIR_NATIVE} \ > > from BUILD_LDFLAGS var in bitbake.conf which is expand in native class. > > What is the correct approach to fix this ? Or I shouldn't use gcc from > PATH for compilation of native packages ? > [-- Attachment #2: Type: text/html, Size: 1261 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Native packages compiled with host gcc set in PATH and with LD_LIBRARY_PATH to libstd++ 2016-05-06 8:43 ` Chris Z. @ 2016-05-06 13:55 ` Khem Raj 2016-05-06 14:38 ` Woronicz, Bartosz ( NSN - PL/Wroclaw) 0 siblings, 1 reply; 4+ messages in thread From: Khem Raj @ 2016-05-06 13:55 UTC (permalink / raw) To: Chris Z.; +Cc: yocto [-- Attachment #1.1: Type: text/plain, Size: 1250 bytes --] > On May 6, 2016, at 1:43 AM, Chris Z. <winotu.email@gmail.com> wrote: > > Hi, > > Any tips ? you need to insert your non-standard install of gcc-4.9 and glibc into OE build via BUILD_CFLAGS and prepending it to your PATH variable that bitbake will see. > > On Fri, Mar 4, 2016 at 4:13 PM, Chris Z. <winotu.email@gmail.com <mailto:winotu.email@gmail.com>> wrote: > Hi, > > I have set newer gcc(4.9) in PATH and with proper LD_LIBRARY_PATH. Default system gcc is 4.4. > > Bulding cmake-native fails when bootstrap cmake tries to compile cmake native binary. > > This is due to the fact that bootstrap was compiled with newer glibcxx and it can't be found in system/host /usr/lib, /usr/lib64 nor in -rpath. > > rpath is set to > -Wl,-rpath,${STAGING_LIBDIR_NATIVE} \ > -Wl,-rpath,${STAGING_BASE_LIBDIR_NATIVE} \ > > from BUILD_LDFLAGS var in bitbake.conf which is expand in native class. > > What is the correct approach to fix this ? Or I shouldn't use gcc from PATH for compilation of native packages ? > > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto [-- Attachment #1.2: Type: text/html, Size: 2762 bytes --] [-- Attachment #2: Message signed with OpenPGP using GPGMail --] [-- Type: application/pgp-signature, Size: 211 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Native packages compiled with host gcc set in PATH and with LD_LIBRARY_PATH to libstd++ 2016-05-06 13:55 ` Khem Raj @ 2016-05-06 14:38 ` Woronicz, Bartosz ( NSN - PL/Wroclaw) 0 siblings, 0 replies; 4+ messages in thread From: Woronicz, Bartosz ( NSN - PL/Wroclaw) @ 2016-05-06 14:38 UTC (permalink / raw) To: Chris Z.; +Cc: yocto [-- Attachment #1: Type: text/plain, Size: 1873 bytes --] Kind regards, Bartosz Woronicz Engineer, Software Configuration (SCM) Nokia Networks - PL/Wroclaw On 06.05.2016 15:55, EXT Khem Raj wrote: > >> On May 6, 2016, at 1:43 AM, Chris Z. <winotu.email@gmail.com >> <mailto:winotu.email@gmail.com>> wrote: >> >> Hi, >> >> Any tips ? > > you need to insert your non-standard install of gcc-4.9 and glibc into > OE build via BUILD_CFLAGS > and prepending it to your PATH variable that bitbake will see. I use such hack in local.conf BUILD_LDFLAGS_append_class-native = "${BB_EXT_ENV_GLIBCXX_RPATH}" where BB_EXT_ENV_GLIBCXX_RPATH is $ export BB_EXT_ENV_GLIBCXX_RPATH="$(echo "$LD_LIBRARY_PATH" | tr ':' '\n' | grep gcc | xargs -I % echo " -Wl,-rpath,%" | tr '\n' ' ')" in my oe-init-buildenv wrapping script > >> >> On Fri, Mar 4, 2016 at 4:13 PM, Chris Z. <winotu.email@gmail.com >> <mailto:winotu.email@gmail.com>> wrote: >> >> Hi, >> >> I have set newer gcc(4.9) in PATH and with proper >> LD_LIBRARY_PATH. Default system gcc is 4.4. >> >> Bulding cmake-native fails when bootstrap cmake tries to compile >> cmake native binary. >> >> This is due to the fact that bootstrap was compiled with newer >> glibcxx and it can't be found in system/host /usr/lib, /usr/lib64 >> nor in -rpath. >> >> rpath is set to >> -Wl,-rpath,${STAGING_LIBDIR_NATIVE} \ >> -Wl,-rpath,${STAGING_BASE_LIBDIR_NATIVE} \ >> >> from BUILD_LDFLAGS var in bitbake.conf which is expand in native >> class. >> >> What is the correct approach to fix this ? Or I shouldn't use gcc >> from PATH for compilation of native packages ? >> >> >> -- >> _______________________________________________ >> yocto mailing list >> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> >> https://lists.yoctoproject.org/listinfo/yocto > > > [-- Attachment #2: Type: text/html, Size: 5608 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-05-06 17:12 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-03-04 15:13 Native packages compiled with host gcc set in PATH and with LD_LIBRARY_PATH to libstd++ Chris Z. 2016-05-06 8:43 ` Chris Z. 2016-05-06 13:55 ` Khem Raj 2016-05-06 14:38 ` Woronicz, Bartosz ( NSN - PL/Wroclaw)
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.