Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835713 - dev-util/rr-5.5.0 fails to compile with musl : overrides.c:31:8: error: pthread_mutex_t has no member named __data
Summary: dev-util/rr-5.5.0 fails to compile with musl : overrides.c:31:8: error: pthre...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
Depends on:
Reported: 2022-03-21 07:46 UTC by Agostino Sarubbo
Modified: 2022-06-01 20:01 UTC (History)
1 user (show)

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

build.log (build.log,67.56 KB, text/plain)
2022-03-21 07:46 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-03-21 07:46:07 UTC

Issue: dev-util/rr-5.5.0 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-03-21 07:46:09 UTC
Created attachment 767499 [details]

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-03-21 07:46:10 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:

FAILED: CMakeFiles/rraudit.dir/src/audit/rtld-audit.c.o 
FAILED: CMakeFiles/rraudit.dir/src/audit/stap-note-iter.c.o 
FAILED: CMakeFiles/rrpreload.dir/src/preload/overrides.c.o 
FAILED: CMakeFiles/rrpreload.dir/src/preload/syscallbuf.c.o 
fatal: not a git repository (or any parent up to mount point /var/tmp)
/var/tmp/portage/dev-util/rr-5.5.0/work/rr-5.5.0/src/preload/overrides.c:31:8: error: 'pthread_mutex_t' has no member named '__data'
Comment 3 Fabian Groffen gentoo-dev 2022-06-01 20:01:18 UTC
rr has no business in a private structure, pthread_mutex_t.  musl's definition at the very least is very different not allowing the dirty modification done in overrides.c.  Finally, PTHREAD_MUTEX_PRIO_INHERIT_NP is not in POSIX, so it probably just needs skipping when using musl?