From mboxrd@z Thu Jan 1 00:00:00 1970 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 E4BCBC3ABBC for ; Wed, 7 May 2025 01:58:01 +0000 (UTC) Received: from mailout4.zoneedit.com (mailout4.zoneedit.com [64.68.198.64]) by mx.groups.io with SMTP id smtpd.web11.1837.1746583072935009564 for ; Tue, 06 May 2025 18:57:53 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: denix.org, ip: 64.68.198.64, mailfrom: denis@denix.org) Received: from localhost (localhost [127.0.0.1]) by mailout4.zoneedit.com (Postfix) with ESMTP id E348C40C8A; Wed, 7 May 2025 01:57:51 +0000 (UTC) Received: from mailout4.zoneedit.com ([127.0.0.1]) by localhost (zmo14-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VI9sh7Wmdw3S; Wed, 7 May 2025 01:57:51 +0000 (UTC) Received: from mail.denix.org (pool-100-15-87-159.washdc.fios.verizon.net [100.15.87.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout4.zoneedit.com (Postfix) with ESMTPSA id C42DC40C2B; Wed, 7 May 2025 01:57:50 +0000 (UTC) Received: by mail.denix.org (Postfix, from userid 1000) id 7F7EB167950; Tue, 6 May 2025 21:57:50 -0400 (EDT) Date: Tue, 6 May 2025 21:57:50 -0400 From: Denys Dmytriyenko To: mikko.rapeli@linaro.org Cc: meta-arm@lists.yoctoproject.org Subject: Re: [meta-arm] [PATCH] optee-test: disable -Werror Message-ID: <20250507015750.GI18383@denix.org> References: <20250506133349.1139953-1-mikko.rapeli@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250506133349.1139953-1-mikko.rapeli@linaro.org> User-Agent: Mutt/1.5.20 (2009-06-14) 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 ; Wed, 07 May 2025 01:58:01 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arm/message/6489 FTR, I have an alternative fix for this: https://patchwork.yoctoproject.org/project/arm/patch/20250507014107.1686356-1-denis@denix.org/ On Tue, May 06, 2025 at 04:33:49PM +0300, Mikko Rapeli via lists.yoctoproject.org wrote: > Build is now failing with latest gcc 15. > > Signed-off-by: Mikko Rapeli > --- > ...1-optee-test-disable-Werror-in-xtest.patch | 36 +++++++++++++++++++ > .../optee/optee-test_4.4.0.bb | 2 ++ > 2 files changed, 38 insertions(+) > create mode 100644 meta-arm/recipes-security/optee/optee-test/0001-optee-test-disable-Werror-in-xtest.patch > > diff --git a/meta-arm/recipes-security/optee/optee-test/0001-optee-test-disable-Werror-in-xtest.patch b/meta-arm/recipes-security/optee/optee-test/0001-optee-test-disable-Werror-in-xtest.patch > new file mode 100644 > index 00000000..bb760c56 > --- /dev/null > +++ b/meta-arm/recipes-security/optee/optee-test/0001-optee-test-disable-Werror-in-xtest.patch > @@ -0,0 +1,36 @@ > +From 813561b54a7da018b3dc38db184e68cd9135ea1c Mon Sep 17 00:00:00 2001 > +From: Mikko Rapeli > +Date: Tue, 6 May 2025 13:14:48 +0000 > +Subject: [PATCH] optee-test: disable -Werror in xtest > + > +At distro level we don't care since new toolchains may > +introduce warnings which don't need to break builds. > +Works around build failures like: > + > +./regression_4000_data.h:7919:9: error: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (20 chars into 19 available) [-Werror=unterminated-string-initialization] > + 7919 | "encryption standard"; > + | ^~~~~~~~~~~~~~~~~~~~~ > + > +Signed-off-by: Mikko Rapeli > +--- > + host/xtest/Makefile | 2 +- > + 1 file changed, 1 insertion(+), 1 deletion(-) > + > +Upstream-Status: Inappropriate [configuration] > + > +diff --git a/host/xtest/Makefile b/host/xtest/Makefile > +index 5959ed6..ef5fec0 100644 > +--- a/host/xtest/Makefile > ++++ b/host/xtest/Makefile > +@@ -142,7 +142,7 @@ CFLAGS += -DTA_DIR=\"$(TA_DIR)\" > + # Include configuration file generated by OP-TEE OS (CFG_* macros) > + CFLAGS += -include conf.h > + > +-CFLAGS += -Wall -Wcast-align -Werror \ > ++CFLAGS += -Wall -Wcast-align \ > + -Werror-implicit-function-declaration -Wextra -Wfloat-equal \ > + -Wformat-nonliteral -Wformat-security -Wformat=2 -Winit-self \ > + -Wmissing-declarations -Wmissing-format-attribute \ > +-- > +2.43.0 > + > diff --git a/meta-arm/recipes-security/optee/optee-test_4.4.0.bb b/meta-arm/recipes-security/optee/optee-test_4.4.0.bb > index d514c82c..36c5582d 100644 > --- a/meta-arm/recipes-security/optee/optee-test_4.4.0.bb > +++ b/meta-arm/recipes-security/optee/optee-test_4.4.0.bb > @@ -3,6 +3,8 @@ require recipes-security/optee/optee-test.inc > # v4.4.0 > SRCREV = "695231ef8987866663a9ed5afd8f77d1bae3dc08" > > +SRC_URI += "file://0001-optee-test-disable-Werror-in-xtest.patch" > + > LIC_FILES_CHKSUM = "file://LICENSE.md;md5=a8fa504109e4cd7ea575bc49ea4be560" > > > -- > 2.43.0