Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 835713

Summary: dev-util/rr-5.6.0 fails to compile with musl : overrides.c:31:8: error: pthread_mutex_t has no member named __data
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: lu_zero
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/rr-debugger/rr/issues/2236
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-03-21 07:46:07 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

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

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

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?
Comment 4 Agostino Sarubbo gentoo-dev 2022-09-03 08:28:56 UTC
tinderbox_musl has reproduced this issue with version 5.6.0 - Updating summary.
Comment 5 Larry the Git Cow gentoo-dev 2022-10-17 21:45:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dfe871a05e0158c687615d34782490b8116db44

commit 0dfe871a05e0158c687615d34782490b8116db44
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-17 21:44:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-17 21:44:46 +0000

    profiles/features/musl: mask dev-util/rr on musl
    
    Closes: https://bugs.gentoo.org/835713
    Closes: https://bugs.gentoo.org/864088
    Closes: https://bugs.gentoo.org/832864
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/features/musl/package.mask | 5 +++++
 1 file changed, 5 insertions(+)