Skip to contentSkip to conversation

binutils: Disable gprofng when using clang

PATCH New Khem Raj 1 participant 1 message Aug 10, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/1 binutils: Disable gprofng when using clang

It does not yet compile with clang it comes with __ builtin___snprintf_chk Not Supported formatted output of built-in functions check is failing with clang
somehow it seems to be compiler limitation. Therefore disable building this component with clang for now

---
v2: Use EXTRA_OECONF instead of EXTRA_OEMAKE for configure vars

 meta/recipes-devtools/binutils/binutils_2.39.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-devtools/binutils/binutils_2.39.bb +3 -0
index 8eab78c3301..863eedbcbd9 100644
@@ -14,6 +14,9 @@ EXTRA_OEMAKE:append:libc-musl = "\
                                  gt_cv_func_gnugettext1_libc=yes \
                                  gt_cv_func_gnugettext2_libc=yes \
                                 "
+# libcollector/collector.c:547:15: error: no member named '__fprintf_chk' in 'struct CollectorUtilFuncs'
+EXTRA_OECONF:append:toolchain-clang = " --disable-gprofng"
+
 EXTRA_OECONF:class-native = "--enable-targets=all \
                              --enable-64-bit-bfd \
                              --enable-install-libiberty \
Signature · 1 line
2.37.1