[oe] [oe-commits] [openembedded-core] 02/02: nativesdk-glibc: Split glibc and libcrypt to use libxcrypt instead

Andre McCurdy armccurdy at gmail.com
Mon Apr 9 22:45:18 UTC 2018


On Mon, Apr 9, 2018 at 3:31 PM, Khem Raj <raj.khem at gmail.com> wrote:
> On 4/9/18 3:23 PM, Andre McCurdy wrote:
>> On Sun, Apr 8, 2018 at 5:52 PM, Khem Raj <raj.khem at gmail.com> wrote:
>>> On Sun, Apr 8, 2018 at 10:00 AM Martin Jansa <martin.jansa at gmail.com> wrote:
>>>
>>>> On Ubuntu 14.04 this fails with:
>>>>
>>>> ../git/gen-des-tables.c: In function ‘write_table_u8’:
>>>> ../git/gen-des-tables.c:307:3: error: ‘for’ loop initial declarations are
>>>> only allowed in C99 mode
>>>>    for (size_t i = 0; i < m; i++)
>>>>    ^
>>>
>>> You can patch this to move declaration just above loop if that helps we
>>> should apply such a patch for compatibility sake but I wonder if there are
>>> more c99 assumptions at work here
>>
>> It looks like the upstream intention is to be buildable with c99 + GNU
>> extensions, so explicitly setting -std=gnu99 seems reasonable.
>
> see this statement worries me from same document you quote below.
>
> A few C2011 features are used; the intention is not to use any of them
> without a fallback, but we do not currently test this.

If you don't trust the untested fallbacks, then how about explicitly
setting -std=gnu11 ?



More information about the Openembedded-devel mailing list