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

Khem Raj raj.khem at gmail.com
Tue Aug 22 16:32:48 UTC 2017


On Tue, Aug 22, 2017 at 3: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 :(.
>

It did not occur to me that this option is introduced in gcc7+ which means
it will not work on hosts using old gcc versions. Sorry

> Cheers,
>
> Richard
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list