From: Bernd Kuhls <bernd@kuhls.net>
To: buildroot@buildroot.org
Cc: Neal Frager <neal.frager@amd.com>
Subject: [Buildroot] [PATCH 1/1] package/bootgen: fix build with host-gcc >= 14.x
Date: Thu, 16 Jul 2026 07:42:14 +0200 [thread overview]
Message-ID: <20260716054214.14597-1-bernd@kuhls.net> (raw)
Fixes:
https://autobuild.buildroot.net/results/2db/2db65dc1e84255eef74beb19a44eb38bdf469724/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
Gitlab pipeline passed:
https://gitlab.com/bkuhls/buildroot/-/commits/05ebd0270039fb37151d467a5d2cc8920a6dcc8e
...ible-pointer-types-in-cdoseq_load_cd.patch | 45 +++++++++++++++++++
1 file changed, 45 insertions(+)
create mode 100644 package/bootgen/0001-cdo-Fix-incompatible-pointer-types-in-cdoseq_load_cd.patch
diff --git a/package/bootgen/0001-cdo-Fix-incompatible-pointer-types-in-cdoseq_load_cd.patch b/package/bootgen/0001-cdo-Fix-incompatible-pointer-types-in-cdoseq_load_cd.patch
new file mode 100644
index 0000000000..8c879238c6
--- /dev/null
+++ b/package/bootgen/0001-cdo-Fix-incompatible-pointer-types-in-cdoseq_load_cd.patch
@@ -0,0 +1,45 @@
+From 33f6391e6e87dfd8906899de7e765a48bd51144b Mon Sep 17 00:00:00 2001
+From: Andrew Bradford <andrew.bradford@konsulko.com>
+Date: Mon, 22 Jun 2026 14:48:15 -0400
+Subject: [PATCH] cdo: Fix incompatible-pointer-types in
+ cdoseq_load_cdo_from_buffer
+
+GCC 14 promotes -Wincompatible-pointer-types to a hard error, so the
+build fails with:
+
+ utils/src/cdo-load.c:140:14: error: assignment to 'char *' from incompatible pointer type 'uint32_t *' {aka 'unsigned int *'} [-Wincompatible-pointer-types]
+ 140 | data = raw->data;
+ | ^
+ make: *** [Makefile:81: build/obj/cdo-load.o] Error 1
+
+The function parameter data is char *, but raw->data (struct CdoRawInfo)
+is uint32_t *. The sibling function cdoseq_load_cdo avoids this because
+its local data is void *, which accepts any pointer without a cast.
+
+Add an explicit (char *) cast.
+
+Signed-off-by: Andrew Bradford <andrew.bradford@konsulko.com>
+
+Upstream: https://github.com/Xilinx/bootgen/pull/47
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ utils/src/cdo-load.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/utils/src/cdo-load.c b/utils/src/cdo-load.c
+index cb0ff49..96a479a 100755
+--- a/utils/src/cdo-load.c
++++ b/utils/src/cdo-load.c
+@@ -137,7 +137,7 @@ CdoSequence * cdoseq_load_cdo_from_buffer(char * data, size_t size) {
+ if (data == NULL) goto done;
+ raw = cdoraw_decode(data, size);
+ if (raw != NULL) {
+- data = raw->data;
++ data = (char *)raw->data;
+ size = raw->size;
+ }
+ if (is_cdo_data(data, size)) {
+--
+2.47.3
+
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2026-07-16 5:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-16 5:42 Bernd Kuhls [this message]
2026-07-16 10:33 ` [Buildroot] [PATCH 1/1] package/bootgen: fix build with host-gcc >= 14.x Frager, Neal via buildroot
2026-07-17 16:59 ` Julien Olivain via buildroot
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=20260716054214.14597-1-bernd@kuhls.net \
--to=bernd@kuhls.net \
--cc=buildroot@buildroot.org \
--cc=neal.frager@amd.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