From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/tpm2-tools: fix build with gcc 4.8
Date: Thu, 12 Aug 2021 23:49:24 +0200 [thread overview]
Message-ID: <20210812234924.10724a06@windsurf> (raw)
In-Reply-To: <20210809212959.2716816-1-fontaine.fabrice@gmail.com>
On Mon, 9 Aug 2021 23:29:59 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fix the following build failure with gcc 4.8 raised since bump to
> version 4.3.2 in commit 91aa6efa8588bf7617cc4a640eb55052b524ceb7:
>
> lib/tpm2_eventlog_yaml.c: In function 'yaml_uefi_var_unicodename':
> lib/tpm2_eventlog_yaml.c:130:5: error: 'for' loop initial declarations are only allowed in C99 mode
> for(size_t i = 0; i < data->UnicodeNameLength; ++i, tmp += ret) {
> ^
> lib/tpm2_eventlog_yaml.c:130:5: note: use option -std=c99 or -std=gnu99 to compile your code
> lib/tpm2_eventlog_yaml.c: In function 'yaml_specid_algs':
> lib/tpm2_eventlog_yaml.c:335:5: error: 'for' loop initial declarations are only allowed in C99 mode
> for (size_t i = 0; i < count; ++i, ++alg) {
> ^
>
> Fixes:
> - http://autobuild.buildroot.org/results/018c75cfbb34006c0bca52dcc255ad6f9cc43b77
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> .../0001-configure-make-build-gnu99.patch | 30 +++++++++++++++++++
> package/tpm2-tools/tpm2-tools.mk | 2 ++
> 2 files changed, 32 insertions(+)
> create mode 100644 package/tpm2-tools/0001-configure-make-build-gnu99.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
prev parent reply other threads:[~2021-08-12 21:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-09 21:29 [Buildroot] [PATCH 1/1] package/tpm2-tools: fix build with gcc 4.8 Fabrice Fontaine
2021-08-12 21:49 ` Thomas Petazzoni [this message]
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=20210812234924.10724a06@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@buildroot.org \
--cc=fontaine.fabrice@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox