Summary: | games-fps/gzdoom-4.10.0 fails to compile (MUSL): Threads.h:80:9: error: unknown type name cpu_set_t | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | William Breathitt Gray <vilhelm.gray> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | erhard_f, games, gentoo.qxrin, proxy-maint |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://github.com/ZDoom/gzdoom/pull/1662 | ||
See Also: |
https://github.com/ZDoom/gzdoom/pull/1662 https://github.com/ZDoom/gzdoom/pull/1663 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 430702 | ||
Attachments: |
build.log
musl_fix-zipdir.patch musl_fix-lzma.patch musl_fix-i_net-types.patch |
Description
Agostino Sarubbo
2022-09-06 11:49:44 UTC
Created attachment 803416 [details]
build.log
build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: -- Package 'musl-fts', required by 'virtual:world', not found -- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR) FAILED: libraries/lzma/CMakeFiles/lzma.dir/C/LzFindMt.c.o /var/tmp/portage/games-fps/gzdoom-4.8.2-r1/work/gzdoom-g4.8.2/libraries/lzma/C/Threads.h:80:9: error: unknown type name 'cpu_set_t' Seems this is already known upstream and a patch is attached (https://github.com/ZDoom/gzdoom/pull/1662). It did not get merged however as it force settings that are platform specific on all targets. A 2nd patch is necessary to make it build on musl (https://github.com/ZDoom/gzdoom/pull/1663) but it was not merged for the same reason. With the 2 patches applied however it builds fine on musl. (In reply to ernsteiswuerfel from comment #3) > Seems this is already known upstream and a patch is attached > (https://github.com/ZDoom/gzdoom/pull/1662). It did not get merged however > as it force settings that are platform specific on all targets. > They're wrong on the first one wrt -D_GNU_SOURCE, it should be fine to unconditionally pass. > A 2nd patch is necessary to make it build on musl > (https://github.com/ZDoom/gzdoom/pull/1663) but it was not merged for the > same reason. :( tinderbox_musl has reproduced this issue with version 4.10.0 - Updating summary. Created attachment 892904 [details, diff]
musl_fix-zipdir.patch
Updated patches to make 4.12.2 build on musl.
Created attachment 892905 [details, diff]
musl_fix-lzma.patch
Created attachment 892906 [details, diff]
musl_fix-i_net-types.patch
Like upstream says, these patches are not cross-platform. I only tried the LZMA one, and that doesn't even work with glibc. I could redo them, but I'd appreciate some help. I do understand that. But for the time being I am occupied with various other stuff. I only wanted to post the patches here in case other users facing the same musl build issues might find it. |