https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: games-fps/gzdoom-4.8.2-r1 fails to compile (MUSL). Discovered on: amd64 (internal ref: tinderbox_musl) NOTE: This machine uses MUSL libc
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.