Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 868732 - games-fps/gzdoom-4.10.0 fails to compile (MUSL): Threads.h:80:9: error: unknown type name cpu_set_t
Summary: games-fps/gzdoom-4.10.0 fails to compile (MUSL): Threads.h:80:9: error: unkno...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Breathitt Gray
URL: https://github.com/ZDoom/gzdoom/pull/...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2022-09-06 11:49 UTC by Agostino Sarubbo
Modified: 2023-09-07 22:05 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,69.88 KB, text/plain)
2022-09-06 11:49 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 11:49:44 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2022-09-06 11:49:46 UTC
Created attachment 803416 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-09-06 11:49:47 UTC
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'
Comment 3 ernsteiswuerfel archtester 2022-09-20 15:11:38 UTC
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.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-07 07:21:54 UTC
(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.

:(
Comment 5 Agostino Sarubbo gentoo-dev 2023-05-22 08:34:41 UTC
tinderbox_musl has reproduced this issue with version 4.10.0 - Updating summary.