* [Buildroot] [PATCH] package/gdb: add patch to fix GCC 15.x build issue with ARC-specific gdb
@ 2025-05-08 17:55 Thomas Petazzoni via buildroot
2025-05-08 19:32 ` Julien Olivain
2025-05-16 10:57 ` Arnout Vandecappelle via buildroot
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2025-05-08 17:55 UTC (permalink / raw)
To: buildroot; +Cc: Thomas Petazzoni
This commit adds the same patch that was already added to GDB 14.x,
15.x and 16.x to fix a GCC 15.x build issue.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
...ne-tcap.h-Update-definitions-for-C23.patch | 52 +++++++++++++++++++
1 file changed, 52 insertions(+)
create mode 100644 package/gdb/arc-2023.09-release/0001-readline-tcap.h-Update-definitions-for-C23.patch
diff --git a/package/gdb/arc-2023.09-release/0001-readline-tcap.h-Update-definitions-for-C23.patch b/package/gdb/arc-2023.09-release/0001-readline-tcap.h-Update-definitions-for-C23.patch
new file mode 100644
index 0000000000..33c0ee95fc
--- /dev/null
+++ b/package/gdb/arc-2023.09-release/0001-readline-tcap.h-Update-definitions-for-C23.patch
@@ -0,0 +1,52 @@
+From 93f772832b96e0c48223c452324e9736d7de051e Mon Sep 17 00:00:00 2001
+From: Chris Packham <judge.packham@gmail.com>
+Date: Wed, 30 Apr 2025 16:49:44 +1200
+Subject: [PATCH] readline/tcap.h: Update definitions for C23
+
+C23 changes how function definitions like int `int tputs ()` are
+interpreted. In older standards this meant that the function arguments
+are unknown. In C23 this is interpreted as `int tputs (void)` so now
+when we compile with GCC15 (which defaults to -std=gnu23) we get an
+error such as
+
+ readline/display.c:2839:17: error: too many arguments to function 'tputs'; expected 0, have 3
+
+Add the function arguments for tgetent(), tgetflag(), tgetnum(),
+tgetstr(), tputs() and tgoto().
+
+Signed-off-by: Chris Packham <judge.packham@gmail.com>
+Approved-By: Tom Tromey <tom@tromey.com>
+Upstream: 5c87b330e910f8be1443c881fd16a70e685f1f2f
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
+---
+ readline/readline/tcap.h | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/readline/readline/tcap.h b/readline/readline/tcap.h
+index 859e6eed5aa..9e2ed124e49 100644
+--- a/readline/readline/tcap.h
++++ b/readline/readline/tcap.h
+@@ -46,14 +46,14 @@ extern char *UP, *BC;
+
+ extern short ospeed;
+
+-extern int tgetent ();
+-extern int tgetflag ();
+-extern int tgetnum ();
+-extern char *tgetstr ();
++extern int tgetent (char *bp, const char *name);
++extern int tgetflag (char *id);
++extern int tgetnum (char *id);
++extern char *tgetstr (char *id, char **area);
+
+-extern int tputs ();
++extern int tputs (const char *str, int affcnt, int (*putc)(int));
+
+-extern char *tgoto ();
++extern char *tgoto (const char *cap, int col, int row);
+
+ #endif /* HAVE_TERMCAP_H */
+
+--
+2.49.0
+
--
2.49.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH] package/gdb: add patch to fix GCC 15.x build issue with ARC-specific gdb
2025-05-08 17:55 [Buildroot] [PATCH] package/gdb: add patch to fix GCC 15.x build issue with ARC-specific gdb Thomas Petazzoni via buildroot
@ 2025-05-08 19:32 ` Julien Olivain
2025-05-16 10:57 ` Arnout Vandecappelle via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Julien Olivain @ 2025-05-08 19:32 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: buildroot
On 08/05/2025 19:55, Thomas Petazzoni via buildroot wrote:
> This commit adds the same patch that was already added to GDB 14.x,
> 15.x and 16.x to fix a GCC 15.x build issue.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH] package/gdb: add patch to fix GCC 15.x build issue with ARC-specific gdb
2025-05-08 17:55 [Buildroot] [PATCH] package/gdb: add patch to fix GCC 15.x build issue with ARC-specific gdb Thomas Petazzoni via buildroot
2025-05-08 19:32 ` Julien Olivain
@ 2025-05-16 10:57 ` Arnout Vandecappelle via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2025-05-16 10:57 UTC (permalink / raw)
To: Thomas Petazzoni, buildroot
On 08/05/2025 19:55, Thomas Petazzoni via buildroot wrote:
> This commit adds the same patch that was already added to GDB 14.x,
> 15.x and 16.x to fix a GCC 15.x build issue.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Applied to 2025.02.x, thanks.
Regards,
Arnout
> ---
> ...ne-tcap.h-Update-definitions-for-C23.patch | 52 +++++++++++++++++++
> 1 file changed, 52 insertions(+)
> create mode 100644 package/gdb/arc-2023.09-release/0001-readline-tcap.h-Update-definitions-for-C23.patch
>
> diff --git a/package/gdb/arc-2023.09-release/0001-readline-tcap.h-Update-definitions-for-C23.patch b/package/gdb/arc-2023.09-release/0001-readline-tcap.h-Update-definitions-for-C23.patch
> new file mode 100644
> index 0000000000..33c0ee95fc
> --- /dev/null
> +++ b/package/gdb/arc-2023.09-release/0001-readline-tcap.h-Update-definitions-for-C23.patch
> @@ -0,0 +1,52 @@
> +From 93f772832b96e0c48223c452324e9736d7de051e Mon Sep 17 00:00:00 2001
> +From: Chris Packham <judge.packham@gmail.com>
> +Date: Wed, 30 Apr 2025 16:49:44 +1200
> +Subject: [PATCH] readline/tcap.h: Update definitions for C23
> +
> +C23 changes how function definitions like int `int tputs ()` are
> +interpreted. In older standards this meant that the function arguments
> +are unknown. In C23 this is interpreted as `int tputs (void)` so now
> +when we compile with GCC15 (which defaults to -std=gnu23) we get an
> +error such as
> +
> + readline/display.c:2839:17: error: too many arguments to function 'tputs'; expected 0, have 3
> +
> +Add the function arguments for tgetent(), tgetflag(), tgetnum(),
> +tgetstr(), tputs() and tgoto().
> +
> +Signed-off-by: Chris Packham <judge.packham@gmail.com>
> +Approved-By: Tom Tromey <tom@tromey.com>
> +Upstream: 5c87b330e910f8be1443c881fd16a70e685f1f2f
> +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> +---
> + readline/readline/tcap.h | 12 ++++++------
> + 1 file changed, 6 insertions(+), 6 deletions(-)
> +
> +diff --git a/readline/readline/tcap.h b/readline/readline/tcap.h
> +index 859e6eed5aa..9e2ed124e49 100644
> +--- a/readline/readline/tcap.h
> ++++ b/readline/readline/tcap.h
> +@@ -46,14 +46,14 @@ extern char *UP, *BC;
> +
> + extern short ospeed;
> +
> +-extern int tgetent ();
> +-extern int tgetflag ();
> +-extern int tgetnum ();
> +-extern char *tgetstr ();
> ++extern int tgetent (char *bp, const char *name);
> ++extern int tgetflag (char *id);
> ++extern int tgetnum (char *id);
> ++extern char *tgetstr (char *id, char **area);
> +
> +-extern int tputs ();
> ++extern int tputs (const char *str, int affcnt, int (*putc)(int));
> +
> +-extern char *tgoto ();
> ++extern char *tgoto (const char *cap, int col, int row);
> +
> + #endif /* HAVE_TERMCAP_H */
> +
> +--
> +2.49.0
> +
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-05-16 10:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-08 17:55 [Buildroot] [PATCH] package/gdb: add patch to fix GCC 15.x build issue with ARC-specific gdb Thomas Petazzoni via buildroot
2025-05-08 19:32 ` Julien Olivain
2025-05-16 10:57 ` Arnout Vandecappelle via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox