All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] elfutils: Fix backtrace ptests on musl
@ 2026-10-22 15:49 Khem Raj
  2026-10-24 17:31 ` [OE-core] " Mathieu Dubois-Briand
  0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2026-10-22 15:49 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

musl is built with -fno-asynchronous-unwind-tables, so libc.so carries
almost no .eh_frame and its CFI only lives in .debug_frame. Without it the
unwinder cannot get out of abort () and run-backtrace-dwarf.sh fails with
"No DWARF information found". Add musl-dbg to the ptest dependencies, like
glibc-dbg for glibc.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta/recipes-devtools/elfutils/elfutils_0.197.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/elfutils/elfutils_0.197.bb b/meta/recipes-devtools/elfutils/elfutils_0.197.bb
index 6e58afb274..b06505d520 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.197.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.197.bb
@@ -52,6 +52,7 @@ EXTRA_OECONF:append:class-target = " --disable-tests-rpath"
 EXTRA_OECONF:append:class-target:microblaze = " --disable-symbol-versioning"
 
 RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-utils glibc-dbg glibc-dev"
+RDEPENDS:${PN}-ptest:append:libc-musl = " musl-dbg"
 INSANE_SKIP:${PN}-ptest = "debug-deps dev-deps"
 
 do_compile_ptest() {

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [OE-core] [PATCH] elfutils: Fix backtrace ptests on musl
  2026-10-22 15:49 [PATCH] elfutils: Fix backtrace ptests on musl Khem Raj
@ 2026-10-24 17:31 ` Mathieu Dubois-Briand
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Dubois-Briand @ 2026-10-24 17:31 UTC (permalink / raw)
  To: raj.khem, openembedded-core; +Cc: Khem Raj

On Thu Oct 22, 2026 at 5:49 PM CEST, Khem Raj via lists.openembedded.org wrote:
> musl is built with -fno-asynchronous-unwind-tables, so libc.so carries
> almost no .eh_frame and its CFI only lives in .debug_frame. Without it the
> unwinder cannot get out of abort () and run-backtrace-dwarf.sh fails with
> "No DWARF information found". Add musl-dbg to the ptest dependencies, like
> glibc-dbg for glibc.
>
> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
> ---

Hi Khem,

Thanks for your patch.

It looks like this is breaking some ptest on qemux86-64-musl:

AssertionError:
Failed ptests:
{'elfutils': 'START: ptest-runner\n'
...
             '===============================================================\n'
             '2 of 259 tests did not behave as expected (2 unexpected passes)\n'
             '(45 tests were not run)\n'
             'Please report to https://sourceware.org/bugzilla\n'
             '===============================================================\n'

https://autobuilder.yoctoproject.org/valkyrie/#/builders/110/builds/1435

Can you have a look at the issue?

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-24 17:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-22 15:49 [PATCH] elfutils: Fix backtrace ptests on musl Khem Raj
2026-10-24 17:31 ` [OE-core] " Mathieu Dubois-Briand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.