Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/fbdump: fix gcc 14.x issue
@ 2024-08-28 12:59 Waldemar Brodkorb
  2024-09-03 21:33 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: Waldemar Brodkorb @ 2024-08-28 12:59 UTC (permalink / raw)
  To: buildroot

Following error is seen with gcc 14.x:
/home/autobuild/autobuild/instance-0/output-1/host/bin/armeb-buildroot-linux-uclibcgnueabi-gcc -DHAVE_CONFIG_H -I. -I. -I..   -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -O2 -fomit-frame-pointer -s -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os -g0  -c `test -f 'main.c' || echo './'`main.c
main.c: In function 'main':
main.c:82:49: error: passing argument 4 of 'Options_parse' from incompatible pointer type [-Wincompatible-pointer-types]
   82 |   if( Options_parse( opt_template, &opts, argc, argv ) != 0 )
      |                                                 ^~~~
      |                                                 |
      |                                                 char **
In file included from main.c:17:
options.h:32:83: note: expected 'const char **' but argument is of type 'char **'
   32 | int Options_parse( const OptionTemplate *tmplt, void *opts, int argc, const char *argv[] );
      |                                                                       ~~~~~~~~~~~~^~~~~~
make[3]: *** [Makefile:240: main.o] Error 1
make[3]: Leaving directory '/home/autobuild/autobuild/instance-0/output-1/build/fbdump-0.4.2/src'
make[2]: *** [Makefile:201: all-recursive] Error 1
make[2]: Leaving directory '/home/autobuild/autobuild/instance-0/output-1/build/fbdump-0.4.2'
make[1]: *** [Makefile:156: all] Error 2
make[1]: Leaving directory '/home/autobuild/autobuild/instance-0/output-1/build/fbdump-0.4.2'

Fixes:

  http://autobuild.buildroot.net/results/3a0/3a0abff75023e257f3d6048688485a380b72fbb3

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
 package/fbdump/0001-fix-gcc14-compile-issue.patch | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 package/fbdump/0001-fix-gcc14-compile-issue.patch

diff --git a/package/fbdump/0001-fix-gcc14-compile-issue.patch b/package/fbdump/0001-fix-gcc14-compile-issue.patch
new file mode 100644
index 0000000000..a554b4faf6
--- /dev/null
+++ b/package/fbdump/0001-fix-gcc14-compile-issue.patch
@@ -0,0 +1,15 @@
+Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+Upstream: N/A no SCM, not active anymore
+
+diff -Nur fbdump-0.4.2.orig/src/main.c fbdump-0.4.2/src/main.c
+--- fbdump-0.4.2.orig/src/main.c	2007-03-03 04:14:37.000000000 +0100
++++ fbdump-0.4.2/src/main.c	2024-08-16 09:25:42.828125778 +0200
+@@ -58,7 +58,7 @@
+ }
+ 
+ 
+-int main( int argc, char *argv[] )
++int main( int argc, const char *argv[] )
+ {
+   Options  opts = {
+     .fbdev = DEFAULT_DEVICE,
-- 
2.39.2

_______________________________________________
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/fbdump: fix gcc 14.x issue
  2024-08-28 12:59 [Buildroot] [PATCH] package/fbdump: fix gcc 14.x issue Waldemar Brodkorb
@ 2024-09-03 21:33 ` Thomas Petazzoni via buildroot
  2024-09-03 21:33   ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-09-03 21:33 UTC (permalink / raw)
  To: Waldemar Brodkorb; +Cc: buildroot

On Wed, 28 Aug 2024 14:59:40 +0200
Waldemar Brodkorb <wbx@openadk.org> wrote:

> Following error is seen with gcc 14.x:
> /home/autobuild/autobuild/instance-0/output-1/host/bin/armeb-buildroot-linux-uclibcgnueabi-gcc -DHAVE_CONFIG_H -I. -I. -I..   -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -O2 -fomit-frame-pointer -s -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os -g0  -c `test -f 'main.c' || echo './'`main.c
> main.c: In function 'main':
> main.c:82:49: error: passing argument 4 of 'Options_parse' from incompatible pointer type [-Wincompatible-pointer-types]
>    82 |   if( Options_parse( opt_template, &opts, argc, argv ) != 0 )
>       |                                                 ^~~~
>       |                                                 |
>       |                                                 char **
> In file included from main.c:17:
> options.h:32:83: note: expected 'const char **' but argument is of type 'char **'
>    32 | int Options_parse( const OptionTemplate *tmplt, void *opts, int argc, const char *argv[] );
>       |                                                                       ~~~~~~~~~~~~^~~~~~
> make[3]: *** [Makefile:240: main.o] Error 1
> make[3]: Leaving directory '/home/autobuild/autobuild/instance-0/output-1/build/fbdump-0.4.2/src'
> make[2]: *** [Makefile:201: all-recursive] Error 1
> make[2]: Leaving directory '/home/autobuild/autobuild/instance-0/output-1/build/fbdump-0.4.2'
> make[1]: *** [Makefile:156: all] Error 2
> make[1]: Leaving directory '/home/autobuild/autobuild/instance-0/output-1/build/fbdump-0.4.2'
> 
> Fixes:
> 
>   http://autobuild.buildroot.net/results/3a0/3a0abff75023e257f3d6048688485a380b72fbb3
> 
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
> ---
>  package/fbdump/0001-fix-gcc14-compile-issue.patch | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
>  create mode 100644 package/fbdump/0001-fix-gcc14-compile-issue.patch

Applied to next, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
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/fbdump: fix gcc 14.x issue
  2024-09-03 21:33 ` Thomas Petazzoni via buildroot
@ 2024-09-03 21:33   ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-09-03 21:33 UTC (permalink / raw)
  To: Waldemar Brodkorb; +Cc: buildroot

On Tue, 3 Sep 2024 23:33:27 +0200
Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:

> >  package/fbdump/0001-fix-gcc14-compile-issue.patch | 15 +++++++++++++++
> >  1 file changed, 15 insertions(+)
> >  create mode 100644 package/fbdump/0001-fix-gcc14-compile-issue.patch  
> 
> Applied to next, thanks.

Sorry, wrong, I applied to master. Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
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:[~2024-09-03 21:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-28 12:59 [Buildroot] [PATCH] package/fbdump: fix gcc 14.x issue Waldemar Brodkorb
2024-09-03 21:33 ` Thomas Petazzoni via buildroot
2024-09-03 21:33   ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox