[yocto] [PATCH] cross-localedef-native_2.20.bb: fix for gcc5

Daniel. danielhilst at gmail.com
Mon Jul 6 20:34:47 PDT 2015


Thanks!!!
Em 07/07/2015 00:09, "Richard Tollerton" <rich.tollerton at ni.com> escreveu:

> Message-ID: <87wpycy88v.fsf at weregild.amer.corp.natinst.com>
> MIME-Version: 1.0
> Content-Type: text/plain
> --text follows this line--
> The build of cross-localedef-native is observed to fail under gcc5 hosts
> with multiple definition errors, e.g.:
>
> argp-help.o: In function `argp_fmtstream_write':
> argp-help.c:(.text+0x1da0): multiple definition of `argp_fmtstream_write'
> argp-fmtstream.o:argp-fmtstream.c:(.text+0x7a0): first defined here
>
> The problem is the change of the default C standard from gnu89 to gnu11
> which changes the semantics of 'inline'. The issue is described in the
> Porting guide at https://gcc.gnu.org/gcc-5/porting_to.html. Adding the
> '-fgnu89-inline' option fixes the issue.
>
> (This fix, including the above explanation, was shamelessly copied from
>
> http://git.vahanus.net/?p=csc/ptxdist-kp.git;a=commit;h=2f04a3587bd33c74ccc9be6e115a8b1fde620841
> .)
>
> Signed-off-by: Richard Tollerton <rich.tollerton at ni.com>
> ---
>  meta/recipes-core/glibc/cross-localedef-native_2.20.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/glibc/cross-localedef-native_2.20.bb
> b/meta/recipes-core/glibc/cross-localedef-native_2.20.bb
> index ccf56a9..38f2af4 100644
> --- a/meta/recipes-core/glibc/cross-localedef-native_2.20.bb
> +++ b/meta/recipes-core/glibc/cross-localedef-native_2.20.bb
> @@ -39,7 +39,7 @@ SRCREV_localedef =
> "c833367348d39dad7ba018990bfdaffaec8e9ed3"
>  S = "${WORKDIR}/git"
>
>  EXTRA_OECONF = "--with-glibc=${S}"
> -CFLAGS += "-DNOT_IN_libc=1"
> +CFLAGS += "-DNOT_IN_libc=1 -fgnu89-inline"
>
>  do_configure () {
>         ${S}/localedef/configure ${EXTRA_OECONF}
> --
> 2.4.4
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150707/6493392b/attachment.html>


More information about the yocto mailing list