[OE-core] [PATCH] gcc: make sure header path is set correctly

Khem Raj raj.khem at gmail.com
Thu Jun 16 02:47:25 UTC 2016


> On Jun 14, 2016, at 2:10 AM, Anuj Mittal <anujx.mittal at intel.com> wrote:
> 
> We're setting the native header paths in do_configure_prepend,
> and don't need to set them again here.
> 
> This results in gcc-target not being able to locate the headers
> and not being able to detect glibc version, which in turn
> results in SSP support not getting detected even though it's available
> in libc.
> 

what is this being set to in do_conigure_prepend ?
that value may not be right for target recipe. For target we are setting sysroot to /
and if we do not have this option set then it will set native-system-headers dir to be
/ relative and not cross sysroot relative. So it will use your build hosts installation
for these headers which is not correct either. Have you looked deeper into why its not
finding ssp support inside the cross sysroot?

> Signed-off-by: Anuj Mittal <anujx.mittal at intel.com>
> ---
> meta/recipes-devtools/gcc/gcc-target.inc | 1 -
> 1 file changed, 1 deletion(-)
> 
> diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc
> index a960ed4..37c5c62 100644
> --- a/meta/recipes-devtools/gcc/gcc-target.inc
> +++ b/meta/recipes-devtools/gcc/gcc-target.inc
> @@ -4,7 +4,6 @@ require gcc-configure-common.inc
> EXTRA_OECONF_PATHS = "\
>     --with-sysroot=/ \
>     --with-build-sysroot=${STAGING_DIR_TARGET} \
> -    --with-native-system-header-dir=${STAGING_DIR_TARGET}${target_includedir} \
>     --with-gxx-include-dir=${includedir}/c++/${BINV} \
> "
> 
> --
> 1.9.1
> 
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160615/1d4f452f/attachment-0002.sig>


More information about the Openembedded-core mailing list