public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: "Yoann Congal" <yoann.congal@smile.fr>
To: <martin.jansa@gmail.com>, <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [scarthgap][PATCH 5/6] elfutils: don't add -Werror to avoid discarded-qualifiers
Date: Sat, 28 Mar 2026 01:07:21 +0100	[thread overview]
Message-ID: <DHDZ7EG0XTX2.115YOC91NT8OQ@smile.fr> (raw)
In-Reply-To: <20260326181450.1262870-5-martin.jansa@gmail.com>

On Thu Mar 26, 2026 at 7:14 PM CET, Martin Jansa via lists.openembedded.org wrote:
> From: Martin Jansa <martin.jansa@gmail.com>
>
> With glibc-2.43 on host elfutils-native fails with:
> elfutils-0.191/libcpu/riscv_disasm.c:1259:46: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
>
> elfutils-0.194 in master doesn't have this issue thanks to this patch avoiding -Werror from:
> https://git.openembedded.org/openembedded-core/commit/?id=1d6ac3c811798732e6addc798656bbe104661d77
>
> Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
> ---

Hello

Isn't this patch (and 6/6) also needed on whinlatter?
Can you send what is needed from series to whinlatter please?

Thanks!

>  .../elfutils/elfutils_0.191.bb                |  1 +
>  ...001-config-eu.am-do-not-force-Werror.patch | 34 +++++++++++++++++++
>  2 files changed, 35 insertions(+)
>  create mode 100644 meta/recipes-devtools/elfutils/files/0001-config-eu.am-do-not-force-Werror.patch
>
> diff --git a/meta/recipes-devtools/elfutils/elfutils_0.191.bb b/meta/recipes-devtools/elfutils/elfutils_0.191.bb
> index 0fd6d31af1..5156e5c9f6 100644
> --- a/meta/recipes-devtools/elfutils/elfutils_0.191.bb
> +++ b/meta/recipes-devtools/elfutils/elfutils_0.191.bb
> @@ -23,6 +23,7 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \
>             file://0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch \
>             file://0001-debuginfod-Remove-unused-variable.patch \
>             file://0001-srcfiles-fix-unused-variable-BUFFER_SIZE.patch \
> +           file://0001-config-eu.am-do-not-force-Werror.patch \
>             file://CVE-2025-1352.patch \
>             file://CVE-2025-1365.patch \
>             file://CVE-2025-1372.patch \
> diff --git a/meta/recipes-devtools/elfutils/files/0001-config-eu.am-do-not-force-Werror.patch b/meta/recipes-devtools/elfutils/files/0001-config-eu.am-do-not-force-Werror.patch
> new file mode 100644
> index 0000000000..d4e141927f
> --- /dev/null
> +++ b/meta/recipes-devtools/elfutils/files/0001-config-eu.am-do-not-force-Werror.patch
> @@ -0,0 +1,34 @@
> +From e169c3fc734be1783b3e1a4768dbec05fb64cb4f Mon Sep 17 00:00:00 2001
> +From: Alexander Kanavin <alex@linutronix.de>
> +Date: Fri, 22 Nov 2024 12:50:48 +0100
> +Subject: [PATCH] config/eu.am: do not force -Werror
> +
> +This is undesirable when compiler versions may not be the same
> +as what upstream is using for their own testing.
> +
> +Upstream-Status: Inappropriate [oe-core specific]
> +Signed-off-by: Alexander Kanavin <alex@linutronix.de>
> +---
> + config/eu.am | 2 --
> + 1 file changed, 2 deletions(-)
> +
> +diff --git a/config/eu.am b/config/eu.am
> +index 0b7dab5..5e7a03f 100644
> +--- a/config/eu.am
> ++++ b/config/eu.am
> +@@ -99,7 +99,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
> + 	    $(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \
> + 	    $(NULL_DEREFERENCE_WARNING) $(IMPLICIT_FALLTHROUGH_WARNING) \
> + 	    $(USE_AFTER_FREE3_WARNING) \
> +-	    $(if $($(*F)_no_Werror),,-Werror) \
> + 	    $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
> + 	    $(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \
> + 	    $(if $($(*F)_no_Wpacked_not_aligned),$(NO_PACKED_NOT_ALIGNED_WARNING),) \
> +@@ -109,7 +108,6 @@ AM_CXXFLAGS = -std=c++11 -Wall -Wshadow \
> + 	   $(TRAMPOLINES_WARNING) \
> + 	   $(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \
> + 	   $(NULL_DEREFERENCE_WARNING) $(IMPLICIT_FALLTHROUGH_WARNING) \
> +-	   $(if $($(*F)_no_Werror),,-Werror) \
> + 	   $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
> + 	   $(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \
> + 	   $(if $($(*F)_no_Wpacked_not_aligned),$(NO_PACKED_NOT_ALIGNED_WARNING),) \


-- 
Yoann Congal
Smile ECS



  reply	other threads:[~2026-03-28  0:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-26 18:14 [scarthgap][PATCH 1/6] dtc: backport fix for build with glibc-2.43 martin.jansa
2026-03-26 18:14 ` [scarthgap][PATCH 2/6] pseudo: Add fix for glibc 2.43 martin.jansa
2026-03-26 18:14 ` [scarthgap][PATCH 3/6] meta/conf/distro/include/yocto-uninative.inc martin.jansa
2026-03-26 18:31   ` Patchtest results for " patchtest
2026-03-26 18:14 ` [scarthgap][PATCH 4/6] yocto-uninative: Update to 5.1 for glibc 2.43 martin.jansa
2026-03-26 18:14 ` [scarthgap][PATCH 5/6] elfutils: don't add -Werror to avoid discarded-qualifiers martin.jansa
2026-03-28  0:07   ` Yoann Congal [this message]
2026-03-28  8:37     ` [OE-core] " Martin Jansa
     [not found]     ` <18A0F4787AD7D398.263554@lists.openembedded.org>
2026-03-28  8:41       ` Martin Jansa
2026-03-26 18:14 ` [scarthgap][PATCH 6/6] binutils: backport patch to fix build with glibc-2.43 on host martin.jansa

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=DHDZ7EG0XTX2.115YOC91NT8OQ@smile.fr \
    --to=yoann.congal@smile.fr \
    --cc=martin.jansa@gmail.com \
    --cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox