Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 868747 - app-emulation/wine-proton-7.0.4 fails to compile (MUSL): fsync.c:69:8: error: redefinition of struct futex_waitv
Summary: app-emulation/wine-proton-7.0.4 fails to compile (MUSL): fsync.c:69:8: error:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-06 12:49 UTC by Agostino Sarubbo
Modified: 2022-09-06 14:55 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,171.18 KB, text/plain)
2022-09-06 12:50 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
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(+)