* [PATCH] binutils: disable gprofng for native
@ 2026-09-13 16:34 Aurelien DESBRIERES
0 siblings, 0 replies; only message in thread
From: Aurelien DESBRIERES @ 2026-09-13 16:34 UTC (permalink / raw)
To: openembedded-core; +Cc: aurelien.desbrieres
gprofng's CALL_UTIL(x) pastes onto its argument, and glibc 2.43 defines
strstr as a _Generic macro, so the paste lands on the expansion:
../../../gprofng/libcollector/iolib.c:898:18: error: expected
identifier before '_Generic'
Only the native build is affected -- it compiles against the host's
headers, while the target build uses the sysroot's. binutils-cross
already passes --disable-gprofng for the same kind of reason, and the
recipe carries the same line for toolchain-clang and libc-musl.
gprofng is a profiler the native build does not ship, so disabling it
costs nothing here.
Signed-off-by: Aurelien DESBRIERES <aurelien@hackers.camp>
---
meta/recipes-devtools/binutils/binutils_2.44.bb | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/recipes-devtools/binutils/binutils_2.44.bb b/meta/recipes-devtools/binutils/binutils_2.44.bb
index 99b5ce178d..f623a849e2 100644
--- a/meta/recipes-devtools/binutils/binutils_2.44.bb
+++ b/meta/recipes-devtools/binutils/binutils_2.44.bb
@@ -20,6 +20,12 @@ EXTRA_OECONF:append:toolchain-clang = " --disable-gprofng"
# | ../../../gprofng/libcollector/../src/collector_module.h:78:13: error: duplicate member 'pwrite'
# | ../../../gprofng/libcollector/dispatcher.c:578:8: error: 'struct sigevent' has no member named '_sigev_un'
EXTRA_OECONF:append:libc-musl = " --disable-gprofng"
+# | ../../../gprofng/libcollector/iolib.c:898:18: error: expected identifier before '_Generic'
+# CALL_UTIL(x) pastes onto its argument, and glibc 2.43 defines strstr as a
+# _Generic macro, so the paste lands on the expansion instead. The target
+# build uses the sysroot's headers and is unaffected; gprofng is a profiler
+# the native build does not ship.
+EXTRA_OECONF:append:class-native = " --disable-gprofng"
EXTRA_OECONF:class-native = "--enable-targets=all \
--enable-64-bit-bfd \
--
2.55.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-13 16:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-13 16:34 [PATCH] binutils: disable gprofng for native Aurelien DESBRIERES
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox