* [PATCH] elfutils: Disable stringop-overflow warning for build host
@ 2022-05-14 15:15 Khem Raj
0 siblings, 0 replies; only message in thread
From: Khem Raj @ 2022-05-14 15:15 UTC (permalink / raw)
To: openembedded-core; +Cc: Khem Raj
Some distributions shipping gcc12 end up with stringop-overflow warnings
e.g.
/usr/include/bits/unistd.h:74:10: error: ‘__pread_alias’ specified size between 9223372036854775813 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=]
74 | return __glibc_fortify (pread, __nbytes, sizeof (char),
| ^~~~~~~~~~~~~~~
Until fixed, lets not treat this warning as hard error
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
meta/recipes-devtools/elfutils/elfutils_0.187.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.187.bb b/meta/recipes-devtools/elfutils/elfutils_0.187.bb
index d20220e4335..31983dfd6ba 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.187.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.187.bb
@@ -33,6 +33,8 @@ PTEST_ENABLED:libc-musl = "0"
EXTRA_OECONF = "--program-prefix=eu-"
+BUILD_CFLAGS += "-Wno-error=stringop-overflow"
+
DEPENDS_BZIP2 = "bzip2-replacement-native"
DEPENDS_BZIP2:class-target = "bzip2"
--
2.36.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-14 15:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-14 15:15 [PATCH] elfutils: Disable stringop-overflow warning for build host Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox