* [PATCH] optee-test: disable -Werror
@ 2025-05-06 13:33 Mikko Rapeli
2025-05-07 1:57 ` [meta-arm] " Denys Dmytriyenko
0 siblings, 1 reply; 3+ messages in thread
From: Mikko Rapeli @ 2025-05-06 13:33 UTC (permalink / raw)
To: meta-arm; +Cc: Mikko Rapeli
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [meta-arm] [PATCH] optee-test: disable -Werror
2025-05-06 13:33 [PATCH] optee-test: disable -Werror Mikko Rapeli
@ 2025-05-07 1:57 ` Denys Dmytriyenko
2025-05-07 6:33 ` Mikko Rapeli
0 siblings, 1 reply; 3+ messages in thread
From: Denys Dmytriyenko @ 2025-05-07 1:57 UTC (permalink / raw)
To: mikko.rapeli; +Cc: meta-arm
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [meta-arm] [PATCH] optee-test: disable -Werror
2025-05-07 1:57 ` [meta-arm] " Denys Dmytriyenko
@ 2025-05-07 6:33 ` Mikko Rapeli
0 siblings, 0 replies; 3+ messages in thread
From: Mikko Rapeli @ 2025-05-07 6:33 UTC (permalink / raw)
To: Denys Dmytriyenko; +Cc: meta-arm
Hi,
On Tue, May 06, 2025 at 09:57:50PM -0400, Denys Dmytriyenko wrote:
> FTR, I have an alternative fix for this:
>
> https://patchwork.yoctoproject.org/project/arm/patch/20250507014107.1686356-1-denis@denix.org/
Thanks, yours is a better fix.
-Werror may bring more trouble later on, if anyone tries clang for example,
so I don't like it as a default.
Cheers,
-Mikko
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-05-07 6:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-06 13:33 [PATCH] optee-test: disable -Werror Mikko Rapeli
2025-05-07 1:57 ` [meta-arm] " Denys Dmytriyenko
2025-05-07 6:33 ` Mikko Rapeli
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.