From cf0cd9b2195750d2e19fd15d68fc631ec824c64e Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 17 Aug 2022 00:04:37 -0700 Subject: 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 (From OE-Core rev: 5f4b6afb030fe75247cc2da09cdf0ec5259673df) (From OE-Core rev: 0b3cff906c469bb9d6dfc7fafe385243d00f1c2b) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/recipes-devtools/binutils/binutils_2.39.bb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/recipes-devtools/binutils') diff --git a/meta/recipes-devtools/binutils/binutils_2.39.bb b/meta/recipes-devtools/binutils/binutils_2.39.bb index 8eab78c330..863eedbcbd 100644 --- a/meta/recipes-devtools/binutils/binutils_2.39.bb +++ b/meta/recipes-devtools/binutils/binutils_2.39.bb @@ -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 \ -- cgit v1.2.3-54-g00ecf