Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926770 - sys-libs/libunwind: build fails on powerpc-gentoo-linux-musl due to mcontext_t incompatibility with glibc
Summary: sys-libs/libunwind: build fails on powerpc-gentoo-linux-musl due to mcontext_...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
Keywords: PATCH
Depends on:
Reported: 2024-03-11 15:36 UTC by jonys
Modified: 2024-03-11 15:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description jonys 2024-03-11 15:36:03 UTC
On ppc, glibc and musl have slightly different API for accessing registers in the mcontext_t struct, see for the reasons behind the divergence. Because of this, sys-libs/libunwind currently doesn't compile on powerpc-gentoo-linux-musl (`error: 'mcontext_t' has no member named 'uc_regs'`). Upstream has an open issue about it here:

A patch exists to make it detect the libc at compile-time and use the musl API when necessary: or

Can we include this patch downstream to fix the incompatibility until upstream merges the open pull request? The repository is listed as “in need of new / additional maintainer”, so it might take a while.

Reproducible: Always