Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/sedutil: fix build with gcc >= 13
Date: Wed, 1 Nov 2023 11:52:53 +0100	[thread overview]
Message-ID: <20231101105253.GA114892@scaer> (raw)
In-Reply-To: <20231030085054.31859-1-fontaine.fabrice@gmail.com>

Fabrice, All,

On 2023-10-30 09:50 +0100, Fabrice Fontaine spake thusly:
> Fix the following build failure with gcc >= 13:
> 
> In file included from ./Common/log.h:45,
>                  from LinuxPBA/LinuxPBA.cpp:25:
> ./Common/DtaOptions.h:33:5: error: 'uint8_t' does not name a type
>    33 |     uint8_t password;   /**< password supplied */
>       |     ^~~~~~~
> ./Common/DtaOptions.h:1:1: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/b6feb4fb33d595414b61174deb9867e8c30cd186
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  .../0002-include-missing-cstdint.patch        | 31 +++++++++++++++++++
>  1 file changed, 31 insertions(+)
>  create mode 100644 package/sedutil/0002-include-missing-cstdint.patch
> 
> diff --git a/package/sedutil/0002-include-missing-cstdint.patch b/package/sedutil/0002-include-missing-cstdint.patch
> new file mode 100644
> index 0000000000..07a617c5e7
> --- /dev/null
> +++ b/package/sedutil/0002-include-missing-cstdint.patch
> @@ -0,0 +1,31 @@
> +From 927cd88cad7bea94c2eebecc18f7881f0defaccb Mon Sep 17 00:00:00 2001
> +From: Khem Raj <raj.khem@gmail.com>
> +Date: Thu, 26 Jan 2023 23:36:29 -0800
> +Subject: [PATCH] include missing <cstdint>
> +
> +gcc 13 moved some includes around and as a result <cstdint>
> +is no longer transitively included [1]. Explicitly include
> +it for uint{32,64}_t.
> +
> +[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
> +
> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
> +
> +Upstream: https://github.com/Drive-Trust-Alliance/sedutil/pull/425
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +---
> + Common/DtaOptions.h | 1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/Common/DtaOptions.h b/Common/DtaOptions.h
> +index c012af1d..7530a0b7 100644
> +--- a/Common/DtaOptions.h
> ++++ b/Common/DtaOptions.h
> +@@ -21,6 +21,7 @@ along with sedutil.  If not, see <http://www.gnu.org/licenses/>.
> + #ifndef _DTAOPTIONS_H
> + #define	_DTAOPTIONS_H
> + 
> ++#include <cstdint>
> + /** Output modes */
> + typedef enum _sedutiloutput {
> + 	sedutilNormal,
> -- 
> 2.42.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2023-11-01 10:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-30  8:50 [Buildroot] [PATCH 1/1] package/sedutil: fix build with gcc >= 13 Fabrice Fontaine
2023-11-01 10:52 ` Yann E. MORIN [this message]
2023-11-07 19:38   ` Peter Korsgaard

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=20231101105253.GA114892@scaer \
    --to=yann.morin.1998@free.fr \
    --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