All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zoltan Boszormenyi" <zboszor@pr.hu>
To: "openembedded-devel@lists.openembedded.org"
	<openembedded-devel@lists.openembedded.org>
Subject: ovmf-native build error with GCC 11 host compiler
Date: Mon, 10 May 2021 19:52:16 +0200	[thread overview]
Message-ID: <1a68d742-389c-b39a-e97f-ff8a29d930f3@pr.hu> (raw)

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

             reply	other threads:[~2021-05-10 17:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-10 17:52 Zoltan Boszormenyi [this message]
2021-05-28 16:57 ` [oe] ovmf-native build error with GCC 11 host compiler Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1a68d742-389c-b39a-e97f-ff8a29d930f3@pr.hu \
    --to=zboszor@pr.hu \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.