Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 32541C3DA49 for ; Sun, 28 Jul 2024 07:21:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id B11B4605A9; Sun, 28 Jul 2024 07:21:55 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id xZN-x3xuQEgV; Sun, 28 Jul 2024 07:21:55 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org C060560629 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id C060560629; Sun, 28 Jul 2024 07:21:54 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id A5C911BF32E for ; Sun, 28 Jul 2024 07:21:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 93C5660629 for ; Sun, 28 Jul 2024 07:21:52 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id AZaLvdEHWo5M for ; Sun, 28 Jul 2024 07:21:51 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.167.122; helo=busybox.osuosl.org; envelope-from=buildroot-git-push@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org D659D605A9 Received: from busybox.osuosl.org (busybox.osuosl.org [140.211.167.122]) by smtp3.osuosl.org (Postfix) with ESMTP id D659D605A9 for ; Sun, 28 Jul 2024 07:21:51 +0000 (UTC) Received: by busybox.osuosl.org (Postfix, from userid 4053) id CBD4987430; Sun, 28 Jul 2024 07:21:51 +0000 (UTC) From: Peter Korsgaard To: buildroot@buildroot.org Date: Sun, 28 Jul 2024 09:07:17 +0200 X-Git-Refname: refs/heads/2024.05.x X-Git-Oldrev: 4baf992d836c7319b646911f803ec9800dc27ec0 X-Git-Newrev: f42ca9644a899df2af4c8abaa62d387e2b285e90 X-Patchwork-Hint: ignore Message-Id: <20240728072151.CBD4987430@busybox.osuosl.org> Subject: [Buildroot] [git commit branch/2024.05.x] boot/syslinux: fix building with GCC 14.x X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0208216918803126399==" Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" --===============0208216918803126399== Content-Type: text/plain commit: https://git.buildroot.net/buildroot/commit/?id=f42ca9644a899df2af4c8abaa62d387e2b285e90 branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2024.05.x Add missing stdio.h include. Without this includes, the build fails with 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 Signed-off-by: Thomas Petazzoni (cherry picked from commit 3b9d62dac564b6d1bfa5ba5e0dd72e731fd95d55) Signed-off-by: Peter Korsgaard --- boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) 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..09a0074b31 --- /dev/null +++ b/boot/syslinux/0020-pull-in-stdio-h-for-gcc14.patch @@ -0,0 +1,34 @@ +From dfa2705100a893bc017d23406daa9a383fbc3c95 Mon Sep 17 00:00:00 2001 +From: Lance Fredrickson +Date: Wed, 5 Jun 2024 14:31:38 -0600 +Subject: [PATCH] com32/lib/syslinux/debug.c: add missing stdio.h include. + +Fix building syslinux with GCC 14.x + +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"); + +Upstream: dead (last release in 2014) +Signed-off-by: Lance Fredrickson +--- + 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 + #include + #include ++#include + + #ifdef DYNAMIC_DEBUG + +-- +2.39.2 + --===============0208216918803126399== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot --===============0208216918803126399==--