Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] boot/syslinux: fix build with GCC 14.x
@ 2024-06-05 21:20 lancethepants
  2024-06-19 20:25 ` Arnout Vandecappelle via buildroot
  0 siblings, 1 reply; 4+ messages in thread
From: lancethepants @ 2024-06-05 21:20 UTC (permalink / raw)
  To: buildroot; +Cc: lancethepants

Add missing stdio.h include. Without it results in the following error under GCC 14.x

../../../com32/lib/syslinux/debug.c: In function ‘syslinux_debug’:
../../../com32/lib/syslinux/debug.c:91:5: error: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
   91 |     printf("Dynamic debug unavailable\n");

Signed-off-by: Lance Fredrickson <lancethepants@gmail.com>
---
 .../0020-pull-in-stdio-h-for-gcc14.patch      | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch

diff --git a/boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch b/boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch
new file mode 100644
index 0000000000..6711c7aa78
--- /dev/null
+++ b/boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch
@@ -0,0 +1,25 @@
+From dfa2705100a893bc017d23406daa9a383fbc3c95 Mon Sep 17 00:00:00 2001
+From: lancethepants <lancethepants@gmail.com>
+Date: Wed, 5 Jun 2024 14:31:38 -0600
+Subject: [PATCH] com32/lib/syslinux/debug.c: add missing stdio.h include.
+
+Fixes building with GCC 14.x
+---
+ com32/lib/syslinux/debug.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/com32/lib/syslinux/debug.c b/com32/lib/syslinux/debug.c
+index d9ab863f..e8f53d57 100644
+--- a/com32/lib/syslinux/debug.c
++++ b/com32/lib/syslinux/debug.c
+@@ -1,6 +1,7 @@
+ #include <linux/list.h>
+ #include <string.h>
+ #include <stdbool.h>
++#include <stdio.h>
+ 
+ #ifdef DYNAMIC_DEBUG
+ 
+-- 
+2.39.2
+
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH 1/1] boot/syslinux: fix build with GCC 14.x
  2024-06-05 21:20 [Buildroot] [PATCH 1/1] boot/syslinux: fix build with GCC 14.x lancethepants
@ 2024-06-19 20:25 ` Arnout Vandecappelle via buildroot
  2024-06-19 20:45   ` Lance Fredrickson
  0 siblings, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2024-06-19 20:25 UTC (permalink / raw)
  To: lancethepants, buildroot

  Hi Lance,

On 05/06/2024 23:20, lancethepants wrote:
> Add missing stdio.h include. Without it results in the following error under GCC 14.x
> 
> ../../../com32/lib/syslinux/debug.c: In function ‘syslinux_debug’:
> ../../../com32/lib/syslinux/debug.c:91:5: error: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
>     91 |     printf("Dynamic debug unavailable\n");
> 
> Signed-off-by: Lance Fredrickson <lancethepants@gmail.com>
> ---
>   .../0020-pull-in-stdio-h-for-gcc14.patch      | 25 +++++++++++++++++++
>   1 file changed, 25 insertions(+)
>   create mode 100644 boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch
> 
> diff --git a/boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch b/boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch
> new file mode 100644
> index 0000000000..6711c7aa78
> --- /dev/null
> +++ b/boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch
> @@ -0,0 +1,25 @@
> +From dfa2705100a893bc017d23406daa9a383fbc3c95 Mon Sep 17 00:00:00 2001
> +From: lancethepants <lancethepants@gmail.com>
> +Date: Wed, 5 Jun 2024 14:31:38 -0600
> +Subject: [PATCH] com32/lib/syslinux/debug.c: add missing stdio.h include.
> +
> +Fixes building with GCC 14.x

  As check-package reports, the patch is missing a Signed-off-by (to indicate 
that you are allowed to contribute it under the syslinux license) and an 
Upstream: indicator. We expect you to submit the patch upstream before you 
submit it to buildroot.

  Regards,
  Arnout

> +---
> + com32/lib/syslinux/debug.c | 1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/com32/lib/syslinux/debug.c b/com32/lib/syslinux/debug.c
> +index d9ab863f..e8f53d57 100644
> +--- a/com32/lib/syslinux/debug.c
> ++++ b/com32/lib/syslinux/debug.c
> +@@ -1,6 +1,7 @@
> + #include <linux/list.h>
> + #include <string.h>
> + #include <stdbool.h>
> ++#include <stdio.h>
> +
> + #ifdef DYNAMIC_DEBUG
> +
> +--
> +2.39.2
> +
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH 1/1] boot/syslinux: fix build with GCC 14.x
  2024-06-19 20:25 ` Arnout Vandecappelle via buildroot
@ 2024-06-19 20:45   ` Lance Fredrickson
  2024-06-20  7:02     ` Arnout Vandecappelle via buildroot
  0 siblings, 1 reply; 4+ messages in thread
From: Lance Fredrickson @ 2024-06-19 20:45 UTC (permalink / raw)
  To: Arnout Vandecappelle, buildroot

I'm not sure I understand. The patch which you included in your reply 
does have a "Signed-off-by" line present.  Also, the last release of 
syslinux was in 2014, and buildroot seems to be carrying many patches 
against that release, so I was under the impression upstream is probably 
not accepting patches at this point.

The "From" when sending this patch doesn't match my name in the 
"Signed-off-by" as another maintainer mentioned in another patch I sent 
in, but this one was also sent before I received that reply.

Lance

On 6/19/2024 2:25 PM, Arnout Vandecappelle wrote:
>  Hi Lance,
>
> On 05/06/2024 23:20, lancethepants wrote:
>> Add missing stdio.h include. Without it results in the following 
>> error under GCC 14.x
>>
>> ../../../com32/lib/syslinux/debug.c: In function ‘syslinux_debug’:
>> ../../../com32/lib/syslinux/debug.c:91:5: error: implicit declaration 
>> of function ‘printf’ [-Wimplicit-function-declaration]
>>     91 |     printf("Dynamic debug unavailable\n");
>>
>> Signed-off-by: Lance Fredrickson <lancethepants@gmail.com>
>> ---
>>   .../0020-pull-in-stdio-h-for-gcc14.patch      | 25 +++++++++++++++++++
>>   1 file changed, 25 insertions(+)
>>   create mode 100644 boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch
>>
>> diff --git a/boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch 
>> b/boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch
>> new file mode 100644
>> index 0000000000..6711c7aa78
>> --- /dev/null
>> +++ b/boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch
>> @@ -0,0 +1,25 @@
>> +From dfa2705100a893bc017d23406daa9a383fbc3c95 Mon Sep 17 00:00:00 2001
>> +From: lancethepants <lancethepants@gmail.com>
>> +Date: Wed, 5 Jun 2024 14:31:38 -0600
>> +Subject: [PATCH] com32/lib/syslinux/debug.c: add missing stdio.h 
>> include.
>> +
>> +Fixes building with GCC 14.x
>
>  As check-package reports, the patch is missing a Signed-off-by (to 
> indicate that you are allowed to contribute it under the syslinux 
> license) and an Upstream: indicator. We expect you to submit the patch 
> upstream before you submit it to buildroot.
>
>  Regards,
>  Arnout
>
>> +---
>> + com32/lib/syslinux/debug.c | 1 +
>> + 1 file changed, 1 insertion(+)
>> +
>> +diff --git a/com32/lib/syslinux/debug.c b/com32/lib/syslinux/debug.c
>> +index d9ab863f..e8f53d57 100644
>> +--- a/com32/lib/syslinux/debug.c
>> ++++ b/com32/lib/syslinux/debug.c
>> +@@ -1,6 +1,7 @@
>> + #include <linux/list.h>
>> + #include <string.h>
>> + #include <stdbool.h>
>> ++#include <stdio.h>
>> +
>> + #ifdef DYNAMIC_DEBUG
>> +
>> +--
>> +2.39.2
>> +

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH 1/1] boot/syslinux: fix build with GCC 14.x
  2024-06-19 20:45   ` Lance Fredrickson
@ 2024-06-20  7:02     ` Arnout Vandecappelle via buildroot
  0 siblings, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2024-06-20  7:02 UTC (permalink / raw)
  To: Lance Fredrickson, buildroot



On 19/06/2024 22:45, Lance Fredrickson wrote:
> I'm not sure I understand. The patch which you included in your reply does have 
> a "Signed-off-by" line present.

  With "the patch" I meant 0020-pull-in-stdio-h-for-gcc14.patch, i.e. the patch 
file included in the patch. Confusing, I know...

  It needs a separate signoff because the licensing situation is different: 
changes to Buildroot itself are licensed under Buildroot's license (GPL-2.0), 
while patches to a package are licensed under that package's license.


>  Also, the last release of syslinux was in 2014, 
> and buildroot seems to be carrying many patches against that release, so I was 
> under the impression upstream is probably not accepting patches at this point.

  Yeah I didn't look at the details. You still need an Upstream: tag in that 
case, something like:

Upstream: dead (last release in 2014)

> The "From" when sending this patch doesn't match my name in the "Signed-off-by" 
> as another maintainer mentioned in another patch I sent in, but this one was 
> also sent before I received that reply.

  Yes, this happens a lot. I fix up the author when applying (when I notice), so 
don't worry too much about that one. It looks like setting up git send-email is 
complicated :-)

  Groeten,
  Arnout

> 
> Lance
> 
> On 6/19/2024 2:25 PM, Arnout Vandecappelle wrote:
>>  Hi Lance,
>>
>> On 05/06/2024 23:20, lancethepants wrote:
>>> Add missing stdio.h include. Without it results in the following error under 
>>> GCC 14.x
>>>
>>> ../../../com32/lib/syslinux/debug.c: In function ‘syslinux_debug’:
>>> ../../../com32/lib/syslinux/debug.c:91:5: error: implicit declaration of 
>>> function ‘printf’ [-Wimplicit-function-declaration]
>>>     91 |     printf("Dynamic debug unavailable\n");
>>>
>>> Signed-off-by: Lance Fredrickson <lancethepants@gmail.com>
>>> ---
>>>   .../0020-pull-in-stdio-h-for-gcc14.patch      | 25 +++++++++++++++++++
>>>   1 file changed, 25 insertions(+)
>>>   create mode 100644 boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch
>>>
>>> diff --git a/boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch 
>>> b/boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch
>>> new file mode 100644
>>> index 0000000000..6711c7aa78
>>> --- /dev/null
>>> +++ b/boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch
>>> @@ -0,0 +1,25 @@
>>> +From dfa2705100a893bc017d23406daa9a383fbc3c95 Mon Sep 17 00:00:00 2001
>>> +From: lancethepants <lancethepants@gmail.com>
>>> +Date: Wed, 5 Jun 2024 14:31:38 -0600
>>> +Subject: [PATCH] com32/lib/syslinux/debug.c: add missing stdio.h include.
>>> +
>>> +Fixes building with GCC 14.x
>>
>>  As check-package reports, the patch is missing a Signed-off-by (to indicate 
>> that you are allowed to contribute it under the syslinux license) and an 
>> Upstream: indicator. We expect you to submit the patch upstream before you 
>> submit it to buildroot.
>>
>>  Regards,
>>  Arnout
>>
>>> +---
>>> + com32/lib/syslinux/debug.c | 1 +
>>> + 1 file changed, 1 insertion(+)
>>> +
>>> +diff --git a/com32/lib/syslinux/debug.c b/com32/lib/syslinux/debug.c
>>> +index d9ab863f..e8f53d57 100644
>>> +--- a/com32/lib/syslinux/debug.c
>>> ++++ b/com32/lib/syslinux/debug.c
>>> +@@ -1,6 +1,7 @@
>>> + #include <linux/list.h>
>>> + #include <string.h>
>>> + #include <stdbool.h>
>>> ++#include <stdio.h>
>>> +
>>> + #ifdef DYNAMIC_DEBUG
>>> +
>>> +--
>>> +2.39.2
>>> +
> 
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-20  7:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-05 21:20 [Buildroot] [PATCH 1/1] boot/syslinux: fix build with GCC 14.x lancethepants
2024-06-19 20:25 ` Arnout Vandecappelle via buildroot
2024-06-19 20:45   ` Lance Fredrickson
2024-06-20  7:02     ` 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