From: Denys Dmytriyenko <denis@denix.org>
To: mikko.rapeli@linaro.org
Cc: meta-arm@lists.yoctoproject.org
Subject: Re: [meta-arm] [PATCH] optee-test: disable -Werror
Date: Tue, 6 May 2025 21:57:50 -0400 [thread overview]
Message-ID: <20250507015750.GI18383@denix.org> (raw)
In-Reply-To: <20250506133349.1139953-1-mikko.rapeli@linaro.org>
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 <mikko.rapeli@linaro.org>
> ---
> ...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 <mikko.rapeli@linaro.org>
> +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 <mikko.rapeli@linaro.org>
> +---
> + 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
next prev parent reply other threads:[~2025-05-07 1:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-06 13:33 [PATCH] optee-test: disable -Werror Mikko Rapeli
2025-05-07 1:57 ` Denys Dmytriyenko [this message]
2025-05-07 6:33 ` [meta-arm] " Mikko Rapeli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250507015750.GI18383@denix.org \
--to=denis@denix.org \
--cc=meta-arm@lists.yoctoproject.org \
--cc=mikko.rapeli@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.