Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Aurelien DESBRIERES <aurelien@hackers.camp>
To: openembedded-core@lists.openembedded.org
Cc: aurelien.desbrieres@gmail.com
Subject: [PATCH] binutils: disable gprofng for native
Date: Sun, 13 Sep 2026 18:34:10 +0200	[thread overview]
Message-ID: <20260913163410.3039548-1-aurelien@hackers.camp> (raw)

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



                 reply	other threads:[~2026-09-13 16:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260913163410.3039548-1-aurelien@hackers.camp \
    --to=aurelien@hackers.camp \
    --cc=aurelien.desbrieres@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox