[OE-core] [PATCH 2/2] grub2: fix build with gcc-7

Martin Jansa martin.jansa at gmail.com
Tue Aug 22 10:26:29 UTC 2017


I'm sorry for the issues caused by this, can you share config.log from that
build? Maybe the native compiler on that build host doesn't support this
option?

On Tue, Aug 22, 2017 at 11:22 AM, Richard Purdie <
richard.purdie at linuxfoundation.org> wrote:

> On Mon, 2017-08-21 at 22:57 +0200, Martin Jansa wrote:
> > * build with gcc-7 fails with:
> >   | ./config-util.h:1504:48: error: this use of "defined" may not
> > be   portable [-Werror=expansion-to-defined]
> >   |              || (defined _FORTIFY_SOURCE && 0 < _FORTIFY_SOURCE \
> >   |                                                 ^~~~~~~~~~~~~~~
> >   and we're not building on Apple or BSD, so we should be able
> >   to just ignoreit until it's resolved properly in some newer gnulib
> >   and imported from gnulib to grub-2
> >
> > Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
> > ---
> >  meta/recipes-bsp/grub/grub-efi_2.02.bb | 6 ++++++
> >  1 file changed, 6 insertions(+)
>
> Sadly this appears to break grub-efi everywhere on the autobuilder,
> e.g.:
>
> https://autobuilder.yocto.io/builders/nightly-no-x11/
> builds/428/steps/BuildImages/logs/stdio
>
> I took a risk and tried to get this into M3 buts its not paid off and
> we'll need another rebuild :(.
>
> Cheers,
>
> Richard
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170822/40a49a44/attachment-0002.html>


More information about the Openembedded-core mailing list