From: Hemanth Kumar M D <[email protected]> With the glibc 2.43 upgrade, building gcc-runtime triggers a -Wdiscarded-qualifiers warning in libgomp/affinity-fmt.c which becomes a build failure due to -Werror.
Add -Wno-error=discarded-qualifiers to CFLAGS as a workaround until the upstream const-correctness issue in libgomp is resolved. Signed-off-by: Hemanth Kumar M D <[email protected]> --- meta/recipes-devtools/gcc/gcc-runtime.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc index c4e1c5b9a5..07db9d6fcc 100644 --- a/meta/recipes-devtools/gcc/gcc-runtime.inc +++ b/meta/recipes-devtools/gcc/gcc-runtime.inc @@ -7,7 +7,8 @@ SUMMARY = "Runtime libraries from GCC" LICENSE = "GPL-3.0-with-GCC-exception" CXXFLAGS:remove = "-fvisibility-inlines-hidden" - +CFLAGS += "-Wno-error=discarded-qualifiers" + EXTRA_OECONF_PATHS = "\ --with-gxx-include-dir=${includedir}/c++/${BINV} \ --with-sysroot=/not/exist \ -- 2.49.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#232645): https://lists.openembedded.org/g/openembedded-core/message/232645 Mute This Topic: https://lists.openembedded.org/mt/118203864/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
