From patchwork Sat Apr 26 17:08:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Martin Jansa X-Patchwork-Id: 61940 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC09FC369CB for ; Sat, 26 Apr 2025 17:08:42 +0000 (UTC) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by mx.groups.io with SMTP id smtpd.web11.12669.1745687318178427979 for ; Sat, 26 Apr 2025 10:08:38 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=l3I7dEQV; spf=pass (domain: gmail.com, ip: 209.85.128.48, mailfrom: martin.jansa@gmail.com) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-43d0782d787so20893245e9.0 for ; Sat, 26 Apr 2025 10:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745687316; x=1746292116; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WbJxiTOQVLqoBGLhgm2Tc3N8xovipRmmQ4MsMaeCbrg=; b=l3I7dEQVtuBzY/4rlbmncf7CVx/TLN2q2NsanNOr07cuQL7UPiEop586zjZ25/keOs I/g6eT0y6XwM5GZp6o12EsaPvWAkLgQYT90BOy4I6GzcSDfKAjFmehwCS4FbZCt8bBem 7tSUh324CEbrJNlfVBtHmg/MzT1D+Mec6sOSse0PXDMPxof4PzfosCKewE/HLSeyhB6h khMDlHs8CKkvLppVzSedXh3MJ91x/yCiHlZPy/L+pSi9iZ/N1FDROH9wAaKZi6h+s7DS X0X1Y+bp4NXfAja2YpnvKIAzH9x/oj265LxHSHRb6vfen/LiJELC7jNbpguyIyido857 DX2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745687316; x=1746292116; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WbJxiTOQVLqoBGLhgm2Tc3N8xovipRmmQ4MsMaeCbrg=; b=DYUzuf2zhya1jGjWlpNRCZwCVw1HzGe8pTTuO9WgMDYqKc1G26JcXlqLFYV7DZab3V wKoOHE/pdbJ41LnQaxBNRNLEEf2T9e6Z6dKy8HnxX06qq6j7XOXauP8W7F2SvpUq5aeE cYiZaQ6uZwRKo7S9fo/dXZnD/XH7eGcHtBDe8Jk5T0E/swtyzsbzvmSlFj9/mp+MKkDI FPbyDwXiJxOeMKG0sIHk8MuMhV0aeScXEwly9+niTH9Ch1c95xVr+9JqPQSr/Qg8bm2p MGR8gwFrLnPQ1cibozKDDwr22gYyb662k+lwNofIp0mgpuFElJlJWINi6Wf4BmOfwDHZ F4yA== X-Gm-Message-State: AOJu0YzrGGJtsiboVkGEj5j/J4LE5UJ/vc0L0vdWf0kOMWuAIadpXLlc iLEjkN5mZkNdsKiNh2KPx1WaYh7Sglqhv9LscKlIodefWqRGOBr0Ihw83vF/ X-Gm-Gg: ASbGncs6IVgcQ6NsdwNhTq0t6s7e6nZaM9N1HLdEg6UVw3iAJ3vKcQr5PH1vhjjd/QC U7bBd6/3DSqWfoyJ061lRGgTrJPEWxSR3N1XCss1Ltr8Erf1oJOK8c8jq8bBn1z7TUSEupspT7W SU/Vl6OouZs/MG1LqxEJ8H1fCFVzby7MpaGlXef00DKl70ius0bK95O+BChdCJscSfeih6FfCg4 dxhw99xbz20Irv3fGXjOLklDUJNGQS5AYF3ffyFdgC6QnOZqYH6DrosQ6yjhR2DkHQDGT7rfwSo GZRikyxC/jMYGX9Y5gS7kgGcCjSUt3UXvnJoDBiV4rwLm9mJJC5RsAiz4BEBorGoZJOBTFY5TQ= = X-Google-Smtp-Source: AGHT+IEcMfgCawInMndymTnC1l/A4rHDfS/MyL8/xma4vfgnPPEE0kqAaMuMbphSRDS98WqjoUDZUw== X-Received: by 2002:a05:600c:3d0b:b0:43c:f44c:72a6 with SMTP id 5b1f17b1804b1-440a64c1820mr68039925e9.2.1745687316378; Sat, 26 Apr 2025 10:08:36 -0700 (PDT) Received: from localhost (ip-109-238-218-228.aim-net.cz. [109.238.218.228]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-3a073cbec5csm5921543f8f.43.2025.04.26.10.08.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Apr 2025 10:08:35 -0700 (PDT) From: martin.jansa@gmail.com To: openembedded-core@lists.openembedded.org Cc: Martin Jansa Subject: [PATCH 1/3] flex: fix build with gcc-15 on host Date: Sat, 26 Apr 2025 19:08:21 +0200 Message-ID: <20250426170826.2580706-1-martin.jansa@gmail.com> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 26 Apr 2025 17:08:42 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/215522 From: Martin Jansa * fixes: http://errors.yoctoproject.org/Errors/Details/853017/ ../../flex-2.6.4/src/../lib/malloc.c:6:12: warning: conflicting types for built-in function ‘malloc’; expected ‘void *(long unsigned int)’ [-Wbuiltin-declaration-mismatch] 6 | void *malloc (); | ^~~~~~ ../../flex-2.6.4/src/../lib/malloc.c:5:1: note: ‘malloc’ is declared in header ‘’ 4 | #include +++ |+#include 5 | ../../flex-2.6.4/src/../lib/malloc.c: In function ‘rpl_malloc’: ../../flex-2.6.4/src/../lib/malloc.c:16:15: error: too many arguments to function ‘malloc’; expected 0, have 1 16 | return malloc (n); | ^~~~~~ ~ ../../flex-2.6.4/src/../lib/malloc.c:6:12: note: declared here 6 | void *malloc (); | ^~~~~~ make[2]: *** [Makefile:1431: ../lib/stage1flex-malloc.o] Error 1 Signed-off-by: Martin Jansa --- ...01-Match-malloc-signature-to-its-use.patch | 25 +++++++++++++++++++ meta/recipes-devtools/flex/flex_2.6.4.bb | 1 + 2 files changed, 26 insertions(+) create mode 100644 meta/recipes-devtools/flex/flex/0001-Match-malloc-signature-to-its-use.patch diff --git a/meta/recipes-devtools/flex/flex/0001-Match-malloc-signature-to-its-use.patch b/meta/recipes-devtools/flex/flex/0001-Match-malloc-signature-to-its-use.patch new file mode 100644 index 0000000000..fc3b8c563d --- /dev/null +++ b/meta/recipes-devtools/flex/flex/0001-Match-malloc-signature-to-its-use.patch @@ -0,0 +1,25 @@ +From cec508013706ef06dbac036905a90cbe075fa03d Mon Sep 17 00:00:00 2001 +From: Richard Barnes +Date: Wed, 2 Oct 2024 10:35:09 -0700 +Subject: [PATCH] Match `malloc` signature to its use + +Upstream-Status: Submitted [https://github.com/westes/flex/pull/674] + +Signed-off-by: Martin Jansa +--- + lib/malloc.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/malloc.c b/lib/malloc.c +index 75e8ef9..701b9b3 100755 +--- a/lib/malloc.c ++++ b/lib/malloc.c +@@ -3,7 +3,7 @@ + + #include + +- void *malloc (); ++ void *malloc (size_t n); + + /* Allocate an N-byte block of memory from the heap. + If N is zero, allocate a 1-byte block. */ diff --git a/meta/recipes-devtools/flex/flex_2.6.4.bb b/meta/recipes-devtools/flex/flex_2.6.4.bb index 793a935962..c29377c5eb 100644 --- a/meta/recipes-devtools/flex/flex_2.6.4.bb +++ b/meta/recipes-devtools/flex/flex_2.6.4.bb @@ -19,6 +19,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/flex-${PV}.tar.gz \ file://check-funcs.patch \ file://0001-Emit-no-line-directives-if-gen_line_dirs-is-false.patch \ file://0001-build-tests-add-missing-parser-scanner-dependencies.patch \ + file://0001-Match-malloc-signature-to-its-use.patch \ " SRC_URI[md5sum] = "2882e3179748cc9f9c23ec593d6adc8d" From patchwork Sat Apr 26 17:08:22 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Martin Jansa X-Patchwork-Id: 61941 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id BBDDFC369D8 for ; Sat, 26 Apr 2025 17:08:42 +0000 (UTC) Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by mx.groups.io with SMTP id smtpd.web11.12671.1745687320015143286 for ; Sat, 26 Apr 2025 10:08:40 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=m6I3GXd0; spf=pass (domain: gmail.com, ip: 209.85.128.41, mailfrom: martin.jansa@gmail.com) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4394a823036so31683335e9.0 for ; Sat, 26 Apr 2025 10:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745687318; x=1746292118; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2f2CYDLF0Mo6ikfoq/SLDXMgmIpDBZjfc18qaiRM1VQ=; b=m6I3GXd0iNRJIHBPE4MpSWeyurHeD6o92UxdKGi7EkI+hhhMgsaEhWXpR8l0FhMZl1 axaPSw0vAgCkIJ9Xjwe80GiH867Ca9QmtOMb31Nzeih4WL/8NK5St2Sgjgd871YuxI7s Jz4RTj8dTgYBqu3RaOHOaKbJUaJVF2PIiRDRPqH31Db6tEFn5+nHsR1HJhQ+i+icsYaS yvnfE/S8Oi88xSycYciRBdiiYcj+bfcLZo2NWWvSBi2tcZ60iROe7ImjO5PmOflysTbe PGToba1yAV0T5+U/LzuF9FTcxASUGuHAC7WCfWxotOs1wuOWDDqMS6xp+NVurUVcwmFj B+jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745687318; x=1746292118; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2f2CYDLF0Mo6ikfoq/SLDXMgmIpDBZjfc18qaiRM1VQ=; b=aZN17+N54422WH2xMMWYIBYibSB0UroR4U8WEGDTqKU3kSAfx3ohdeAE/P/XT+XiXs i1NV1woF1Ua95ntTNFMgpffmEX7DpPVZl/Fy/qo6ZWrXllWWKYZ6MnHxF5Y9Gdktrafy tYiWW5wobcBvWsvHMFoZhnCBmNlMK9NUgwXl9tdCqzHAQfuWLo3UicyXMdsov73Wxnv9 mkGzCzY4EmLs1qj4j1xg8PaTfn0sBljoPAWhrpkXGnpiMn7WvGCWJvN/xLGHgHMlTiCr EoZrskpZExFk495GNEi7ZPHVtmD/h3WQK00H6Cgn13oY5byjKJrL1DbjfgH65MtBJAut iiQQ== X-Gm-Message-State: AOJu0YyxrpxDnWJmWjaJAOX/8Q6bkJZs06hi5DyiiA78rS4LEzL4xEFN xbdv6zfg+gQj08CDOb6D1ohe9tVUm8TQPCr9XvS0w5OeLScE3q3i8e2OBss9 X-Gm-Gg: ASbGncv9ccw0Gb0vPgDvYqiOtz7XbTYEZ23+LGw+/2JR7NDEy2wnbsARIgJkm6CGWAs AT6UK8nc+z+LyCkQdl+5obpfUXKVsNpPOvC6uyn7TWWIgsdjVkUivpje4EEGjMfsh9nyL3Oa9y3 IsfY/04n6w6UWowutwyxk/nFfPKQ953D2xLVk7IxJEPhlyv5AcJzOw7J2ZqDPVxq4jtMEnwRgvq b0nMIqly8OwQL1v17iWhjztLRoZfU3A5uBBicx9J36HxiDaA92tNmMw4e/UH85HIRPlnXWnmV4U BTUZ7+yYU5hAYPKxamnGwp1RIV8qMlQNLvW7SFQCR0wUgW0hI/3Abs1OLGyb8T9X9biaIS6ntQ= = X-Google-Smtp-Source: AGHT+IFRoGrYN2XpYjJV3Ap7kEU/km7hcnxFjRJm3uaCr4HI9CA5MwbdQu/HI+YyjDLXJ4tmSVYlzg== X-Received: by 2002:a5d:5f82:0:b0:38d:d0ca:fbad with SMTP id ffacd0b85a97d-3a074e1d651mr5642163f8f.14.1745687318300; Sat, 26 Apr 2025 10:08:38 -0700 (PDT) Received: from localhost (ip-109-238-218-228.aim-net.cz. [109.238.218.228]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-3a073c8d769sm6205603f8f.12.2025.04.26.10.08.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Apr 2025 10:08:37 -0700 (PDT) From: martin.jansa@gmail.com To: openembedded-core@lists.openembedded.org Cc: Martin Jansa Subject: [PATCH 2/3] ghostscript: fix build with gcc-15 on host Date: Sat, 26 Apr 2025 19:08:22 +0200 Message-ID: <20250426170826.2580706-2-martin.jansa@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250426170826.2580706-1-martin.jansa@gmail.com> References: <20250426170826.2580706-1-martin.jansa@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 26 Apr 2025 17:08:42 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/215523 From: Martin Jansa Signed-off-by: Martin Jansa --- ...Fix-compatibility-with-C23-compilers.patch | 67 +++++++++++++++++++ .../ghostscript/ghostscript_10.05.0.bb | 1 + 2 files changed, 68 insertions(+) create mode 100644 meta/recipes-extended/ghostscript/ghostscript/0001-Bug-708160-Fix-compatibility-with-C23-compilers.patch diff --git a/meta/recipes-extended/ghostscript/ghostscript/0001-Bug-708160-Fix-compatibility-with-C23-compilers.patch b/meta/recipes-extended/ghostscript/ghostscript/0001-Bug-708160-Fix-compatibility-with-C23-compilers.patch new file mode 100644 index 0000000000..78f3fc1c34 --- /dev/null +++ b/meta/recipes-extended/ghostscript/ghostscript/0001-Bug-708160-Fix-compatibility-with-C23-compilers.patch @@ -0,0 +1,67 @@ +From c595086bfe206776676e290df98cd09e91210e27 Mon Sep 17 00:00:00 2001 +From: Alex Cherepanov +Date: Thu, 3 Apr 2025 17:19:41 +0100 +Subject: [PATCH] Bug 708160: Fix compatibility with C23 compilers +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +* fixes: + http://errors.yoctoproject.org/Errors/Details/853021/ + +In file included from ./base/genconf.c:18: +./base/stdpre.h:348:13: error: ‘bool’ cannot be defined via ‘typedef’ + 348 | typedef int bool; + | ^~~~ +./base/stdpre.h:348:13: note: ‘bool’ is a keyword with ‘-std=c23’ onwards +./base/stdpre.h:348:1: warning: useless type name in empty declaration + 348 | typedef int bool; + | ^~~~~~~ + +Upstream-Status: Backport [Partial backport of https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/base/stdpre.h?id=ae940946473ceb8c5353bc6e7f04673c6e60502d] + +Signed-off-by: Martin Jansa +--- + base/stdpre.h | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/base/stdpre.h b/base/stdpre.h +index dda30b6..2f9c84e 100644 +--- a/base/stdpre.h ++++ b/base/stdpre.h +@@ -1,4 +1,4 @@ +-/* Copyright (C) 2001-2023 Artifex Software, Inc. ++/* Copyright (C) 2001-2025 Artifex Software, Inc. + All Rights Reserved. + + This software is provided AS-IS with no warranty, either express or +@@ -341,7 +341,9 @@ typedef signed char schar; + * and the MetroWerks C++ compiler insists that bool be equivalent to + * unsigned char. + */ +-#ifndef __cplusplus ++ ++/* C23 has bool as a builtin type. */ ++#if !defined(__cplusplus) && (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 202311L) + #ifdef __BEOS__ + typedef unsigned char bool; + #else +diff --git a/base/gp.h b/base/gp.h +index ad5bb61..cf2c9cf 100644 +--- a/base/gp.h ++++ b/base/gp.h +@@ -1,4 +1,4 @@ +-/* Copyright (C) 2001-2023 Artifex Software, Inc. ++/* Copyright (C) 2001-2025 Artifex Software, Inc. + All Rights Reserved. + + This software is provided AS-IS with no warranty, either express or +@@ -646,7 +646,7 @@ int gp_fseek_impl(FILE *strm, gs_offset_t offset, int origin); + /* Create a second open gp_file on the basis of a given one */ + FILE *gp_fdup_impl(FILE *f, const char *mode); + +-int gp_fseekable_impl(FILE *f); ++bool gp_fseekable_impl(FILE *f); + + /* Force given file into binary mode (no eol translations, etc) */ + /* if 2nd param true, text mode if 2nd param false */ diff --git a/meta/recipes-extended/ghostscript/ghostscript_10.05.0.bb b/meta/recipes-extended/ghostscript/ghostscript_10.05.0.bb index e937f04cb3..c0e2654701 100644 --- a/meta/recipes-extended/ghostscript/ghostscript_10.05.0.bb +++ b/meta/recipes-extended/ghostscript/ghostscript_10.05.0.bb @@ -25,6 +25,7 @@ def gs_verdir(v): SRC_URI = "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${@gs_verdir("${PV}")}/${BPN}-${PV}.tar.gz \ file://ghostscript-9.16-Werror-return-type.patch \ file://avoid-host-contamination.patch \ + file://0001-Bug-708160-Fix-compatibility-with-C23-compilers.patch \ " SRC_URI[sha256sum] = "56e77833de683825c420d0af8cb90aa8ba7da71ea6fb5624290cbc1b53fe7942" From patchwork Sat Apr 26 17:08:23 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Martin Jansa X-Patchwork-Id: 61942 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 946A6C369CB for ; Sat, 26 Apr 2025 17:08:52 +0000 (UTC) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by mx.groups.io with SMTP id smtpd.web10.12602.1745687323421581465 for ; Sat, 26 Apr 2025 10:08:43 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ctbz39Lo; spf=pass (domain: gmail.com, ip: 209.85.221.51, mailfrom: martin.jansa@gmail.com) Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-39ee57c0b8cso3701252f8f.0 for ; Sat, 26 Apr 2025 10:08:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745687322; x=1746292122; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6CWY0HnxmRF9tUt6q5MYUj6cZMSCLcOsL3nPcjN3+FA=; b=ctbz39LoHAZoNn/ijPkIyMVhyIdMH+S/slwy4ADyB0KFVSS/+ilXtBPnn50FP7bBH3 YnC4du7Ma2LE/NcIydf64UZlPWePMLX8bpyc6XcOBLrGrFr5t8vy8Kv3ojMXgP+Ol08N l3MGOhutVah7qh71XaYo9vS86KSXpffJKeJLQPvQxWFTUK/FUu8TaB8sfnQN6/PN+dlZ +RX4CghxQErZkEYInt5pCL8GQoU/TLt5JRWN3EzSxF4Pn2JA/SuDxywAeczFEMBYPxg2 QS3Aq6iBS2It4fDj+b5S+ZEF2HUQNGvhH4oXDus9TnwJFb0izjVD9+J0NB45sCiDd5Rt ofYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745687322; x=1746292122; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6CWY0HnxmRF9tUt6q5MYUj6cZMSCLcOsL3nPcjN3+FA=; b=ZXGP/0r69SO0F0ic5UEFELBa5dI5HqckwQQThc3f71ffRDv0T1gFv2OneLc5b8Myq/ +iyU/k4RThPLbpNVGDz07FNrsgJR68+9lv+CTjjvYb17XNKTutrVj/BYA7RwsDSka2NS VOMJcJHpT0/TiklK0QyG79cmKPJPEd2FTbj49IrK9q3qRzza303QKbbyTixjh5muUbHX aGEl2vFzZdd+R2LgnSGmkxsvlRlwf3pQIqhqt/3WvjGxVbWLM2RfGbl92N9QaHbpsa7g WqsOl2y5IviNdTnDuMzgXCmvzLOjl8z5xCPwYwhWorMx7vEe/6BLIF3IHZQvLceue0fm uK+Q== X-Gm-Message-State: AOJu0YzclM+mabXjAiX9QRzhb+nDPqyNC1PqrAyaCdEAkj8Zz3meMcjv 7sH7a6aO5CtWBLu6nkM8qH6VtKJwDlhps/lO3KrrKz9LDD0IbgLOiz+5ex32 X-Gm-Gg: ASbGnctt3QsuVBaJO82xNnq0WqMrlibJ1gUamuzD2/8G1jHVDz4ymvDtNhX75thebeu GCOekZI4yylJy1XeUwTXoPG1EJ+hWjXqU1xpNfgooZKEi9PlDg7ieuKuLbuDoW1AqgEdtkbVFG/ 9LhIdIjNVWPSkZJqSTaNdeNmnPF88yv5jdWKSV3K1ZqPdbGunVpSO036+TjZJ0I6MeAgSq8HO53 qrVLHr9e127TYf9cVerH44zByiTS7yfQ9i/rhOBV0i0V5eMkIBfNMFpqzwtoENiVoarG/SVYn7O Or/xxAlwJixej2oXy+pQnVY4Txpv63Ne4GAWRTC5eW5otv65C+i67WwrCx1siu44QpI93k8j3g= = X-Google-Smtp-Source: AGHT+IHp+uB1SEvusM+wkcD/QRWoT73QJHPTd6SeFf2YykUEDsEGKjIS7SeFDgCSvHms0E9lA98/mg== X-Received: by 2002:a05:6000:18ad:b0:39c:2688:612b with SMTP id ffacd0b85a97d-3a074e143e9mr4943390f8f.7.1745687321757; Sat, 26 Apr 2025 10:08:41 -0700 (PDT) Received: from localhost (ip-109-238-218-228.aim-net.cz. [109.238.218.228]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-3a073e5da4dsm6181287f8f.99.2025.04.26.10.08.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Apr 2025 10:08:41 -0700 (PDT) From: martin.jansa@gmail.com To: openembedded-core@lists.openembedded.org Cc: Martin Jansa Subject: [PATCH 3/3] bash: use -std=gnu17 also for native CFLAGS Date: Sat, 26 Apr 2025 19:08:23 +0200 Message-ID: <20250426170826.2580706-3-martin.jansa@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250426170826.2580706-1-martin.jansa@gmail.com> References: <20250426170826.2580706-1-martin.jansa@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 26 Apr 2025 17:08:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/215524 From: Martin Jansa * fixes builds on host with gcc-15: http://errors.yoctoproject.org/Errors/Details/853016/ ../../bash-5.2.37/builtins/mkbuiltins.c:268:29: error: too many arguments to function ‘xmalloc’; expected 0, have 1 268 | error_directory = xmalloc (2 + strlen (argv[arg_index])); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Martin Jansa --- meta/recipes-extended/bash/bash_5.2.37.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-extended/bash/bash_5.2.37.bb b/meta/recipes-extended/bash/bash_5.2.37.bb index 9f02ea17b5..2c0645cbd9 100644 --- a/meta/recipes-extended/bash/bash_5.2.37.bb +++ b/meta/recipes-extended/bash/bash_5.2.37.bb @@ -21,5 +21,8 @@ DEBUG_OPTIMIZATION:append:armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" CFLAGS += "-std=gnu17" +# mkbuiltins.c is built with native toolchain and needs gnu17 as well: +# http://errors.yoctoproject.org/Errors/Details/853016/ +BUILD_CFLAGS += "-std=gnu17" BBCLASSEXTEND = "nativesdk"