summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2025-10-27 16:58:48 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-10-27 17:20:42 +0000
commit8a69e57f53f4523c1b86d8d259826b57c8df0a3a (patch)
treee5edc5c887f4cdb0627629c742b4c3bf0750ec20
parent04c1eae627e3134a92548ef3617f2539c7f4fbd9 (diff)
downloadpoky-8a69e57f53f4523c1b86d8d259826b57c8df0a3a.tar.gz
elfutils: Do not suppress stringop-overflow warning on build hosts
stringop-overflow is a gcc specific option and when we try to use non-gcc compiler as host compiler e.g. clang, this causes several configure tests to fail because clang reports this as an option it does not understand and bails out error: unknown warning option '-Werror=stringop-overflow'; did you mean '-Werror=shift-overflow'? [-Werror,-Wunknown-warning-option] One of the failing tests is the check for PIC support in compiler and results in errors during compilation like /usr/bin/ld: libelf_pic.a(elf_error.os): relocation R_X86_64_TPOFF32 against `global_error' can not be used when making a shared object; recompile with -fPIC and elfutils-native failing to build with clang as host compiler This patch was added to support version of fedora in 2022 and the error has since been addressed in glibc [1] This is effectively reverting bb76fe2baf00b0874d221445c9fba4481740024f [1] https://sourceware.org/bugzilla/show_bug.cgi?id=29141 (From OE-Core rev: 2c134301b55892ecf3c0ae9fa4912bc827579ece) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/elfutils/elfutils_0.193.bb2
1 files changed, 0 insertions, 2 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.193.bb b/meta/recipes-devtools/elfutils/elfutils_0.193.bb
index 29a8ee5af6..85aef7881b 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.193.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.193.bb
@@ -33,8 +33,6 @@ EXTRA_OECONF = "--program-prefix=eu-"
33# Only used at runtime for make check but we want deterministic makefiles for ptest so hardcode 33# Only used at runtime for make check but we want deterministic makefiles for ptest so hardcode
34CACHED_CONFIGUREVARS += "ac_cv_prog_HAVE_BUNZIP2=yes" 34CACHED_CONFIGUREVARS += "ac_cv_prog_HAVE_BUNZIP2=yes"
35 35
36BUILD_CFLAGS += "-Wno-error=stringop-overflow"
37
38DEPENDS_BZIP2 = "bzip2-replacement-native" 36DEPENDS_BZIP2 = "bzip2-replacement-native"
39DEPENDS_BZIP2:class-target = "bzip2" 37DEPENDS_BZIP2:class-target = "bzip2"
40 38