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

Bug 868747

Summary: app-emulation/wine-proton-7.0.4 fails to compile (MUSL): fsync.c:69:8: error: redefinition of struct futex_waitv
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Ionen Wolkens <ionen>
Status: RESOLVED FIXED    
Severity: normal CC: wine
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-09-06 12:49:59 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-emulation/wine-proton-7.0.4 fails to compile (MUSL).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-09-06 12:50:02 UTC
Created attachment 803431 [details]
build.log

build log and emerge --info
Comment 2 Ionen Wolkens gentoo-dev 2022-09-06 13:21:45 UTC
This built with musl when I tested, but it was stable musl with <5.16 linux-headers which don't define futex_waitv.

From a quick look, fsync.c is relying on __NR_futex_waitv being set to skip redefinition which is a glibc-only thing.
Comment 3 Larry the Git Cow gentoo-dev 2022-09-06 14:55:41 UTC
The bug has been closed via the following commit(s):

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

commit ddc354f096fb5d32feb6df8af4a6e2f079edd178
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-09-06 14:20:08 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-09-06 14:48:36 +0000

    app-emulation/wine-proton: fix musl build with >=linux-headers-5.16
    
    Closes: https://bugs.gentoo.org/868747
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 .../wine-proton/files/wine-proton-7.0.4-musl.patch      | 17 +++++++++++++++++
 app-emulation/wine-proton/wine-proton-7.0.4.ebuild      |  1 +
 2 files changed, 18 insertions(+)