All of lore.kernel.org
 help / color / mirror / Atom feed
* ovmf-native build error with GCC 11 host compiler
@ 2021-05-10 17:52 Zoltan Boszormenyi
  2021-05-28 16:57 ` [oe] " Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Zoltan Boszormenyi @ 2021-05-10 17:52 UTC (permalink / raw)
  To: openembedded-devel

Hi,

it's a genuine build error with Hardknott on Fedora 34:

brotli/c/dec/decode.c:2033:41: error: argument 2 of type ‘const uint8_t *’ {aka ‘const 
unsigned char *’} declared as a pointer [-Werror=vla-parameter]
  2033 |     size_t encoded_size, const uint8_t* encoded_buffer, size_t* decoded_size,
       |                          ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from brotli/c/dec/decode.c:7:
./brotli/c/include/brotli/decode.h:204:19: note: previously declared as a variable length 
array ‘const uint8_t[*decoded_size]’ {aka ‘const unsigned char[*decoded_size]’}
   204 |     const uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(encoded_size)],
       |     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
brotli/c/dec/decode.c:2034:14: error: argument 4 of type ‘uint8_t *’ {aka ‘unsigned char 
*’} declared as a pointer [-Werror=vla-parameter]
  2034 |     uint8_t* decoded_buffer) {
       |     ~~~~~~~~~^~~~~~~~~~~~~~
In file included from brotli/c/dec/decode.c:7:
./brotli/c/include/brotli/decode.h:206:13: note: previously declared as a variable length 
array ‘uint8_t[encoded_size]’ {aka ‘unsigned char[encoded_size]’}
   206 |     uint8_t decoded_buffer[BROTLI_ARRAY_PARAM(*decoded_size)]);
       |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Comparing GCC 10 and 11, -Wvla-parameter is new in GCC 11 and
it's part of to -Wall.

Best regards,
Zoltán Böszörményi

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [oe] ovmf-native build error with GCC 11 host compiler
  2021-05-10 17:52 ovmf-native build error with GCC 11 host compiler Zoltan Boszormenyi
@ 2021-05-28 16:57 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2021-05-28 16:57 UTC (permalink / raw)
  To: Böszörményi Zoltán; +Cc: openembedded-devel

we should disable werror on this recipe

On Mon, May 10, 2021 at 10:52 AM Zoltan Boszormenyi via
lists.openembedded.org <zboszor=pr.hu@lists.openembedded.org> wrote:
>
> Hi,
>
> it's a genuine build error with Hardknott on Fedora 34:
>
> brotli/c/dec/decode.c:2033:41: error: argument 2 of type ‘const uint8_t *’ {aka ‘const
> unsigned char *’} declared as a pointer [-Werror=vla-parameter]
>   2033 |     size_t encoded_size, const uint8_t* encoded_buffer, size_t* decoded_size,
>        |                          ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
> In file included from brotli/c/dec/decode.c:7:
> ./brotli/c/include/brotli/decode.h:204:19: note: previously declared as a variable length
> array ‘const uint8_t[*decoded_size]’ {aka ‘const unsigned char[*decoded_size]’}
>    204 |     const uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(encoded_size)],
>        |     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> brotli/c/dec/decode.c:2034:14: error: argument 4 of type ‘uint8_t *’ {aka ‘unsigned char
> *’} declared as a pointer [-Werror=vla-parameter]
>   2034 |     uint8_t* decoded_buffer) {
>        |     ~~~~~~~~~^~~~~~~~~~~~~~
> In file included from brotli/c/dec/decode.c:7:
> ./brotli/c/include/brotli/decode.h:206:13: note: previously declared as a variable length
> array ‘uint8_t[encoded_size]’ {aka ‘unsigned char[encoded_size]’}
>    206 |     uint8_t decoded_buffer[BROTLI_ARRAY_PARAM(*decoded_size)]);
>        |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
>
> Comparing GCC 10 and 11, -Wvla-parameter is new in GCC 11 and
> it's part of to -Wall.
>
> Best regards,
> Zoltán Böszörményi
>
> 
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-28 16:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10 17:52 ovmf-native build error with GCC 11 host compiler Zoltan Boszormenyi
2021-05-28 16:57 ` [oe] " Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.