GZDoom 4.8.2 fails to build on Gentoo Linux w. musl C-Library

Need help running G/Q/ZDoom/ECWolf/Zandronum/3DGE/EDuke32/Raze? Did your computer break? Ask here.

Moderator: GZDoom Developers

Forum rules
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!

If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.

We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
ernsteiswuerfel

GZDoom 4.8.2 fails to build on Gentoo Linux w. musl C-Library

Post by ernsteiswuerfel »

Howdy!

Wanted to build on my system (Gentoo Linux, musl) but it fails with "error: unknown type name 'cpu_set_t". There's also a downstream Gentoo bug report about that issue: https://bugs.gentoo.org/868732

[...]
[65/654] /usr/bin/x86_64-gentoo-linux-musl-gcc -DNDEBUG -DNO_SEND_STATS -O2 -march=bdver3 -mtune=bdver3 -pipe -fno-strict-aliasing -ffp-contract=off -DHAVE_SOFTPOLY -DHAVE_VULKAN -DHAVE_GLES2 -fPIE -D_7ZIP_PPMD_SUPPPORT -O3 -DNDEBUG -MD -MT libraries/lzma/CMakeFiles/lzma.dir/C/LzFindMt.c.o -MF libraries/lzma/CMakeFiles/lzma.dir/C/LzFindMt.c.o.d -o libraries/lzma/CMakeFiles/lzma.dir/C/LzFindMt.c.o -c /var/tmp/portage/games-fps/gzdoom-4.8.2-r1/work/gzdoom-g4.8.2/libraries/lzma/C/LzFindMt.c
FAILED: libraries/lzma/CMakeFiles/lzma.dir/C/LzFindMt.c.o
/usr/bin/x86_64-gentoo-linux-musl-gcc -DNDEBUG -DNO_SEND_STATS -O2 -march=bdver3 -mtune=bdver3 -pipe -fno-strict-aliasing -ffp-contract=off -DHAVE_SOFTPOLY -DHAVE_VULKAN -DHAVE_GLES2 -fPIE -D_7ZIP_PPMD_SUPPPORT -O3 -DNDEBUG -MD -MT libraries/lzma/CMakeFiles/lzma.dir/C/LzFindMt.c.o -MF libraries/lzma/CMakeFiles/lzma.dir/C/LzFindMt.c.o.d -o libraries/lzma/CMakeFiles/lzma.dir/C/LzFindMt.c.o -c /var/tmp/portage/games-fps/gzdoom-4.8.2-r1/work/gzdoom-g4.8.2/libraries/lzma/C/LzFindMt.c
In file included from /var/tmp/portage/games-fps/gzdoom-4.8.2-r1/work/gzdoom-g4.8.2/libraries/lzma/C/LzFindMt.h:8,
from /var/tmp/portage/games-fps/gzdoom-4.8.2-r1/work/gzdoom-g4.8.2/libraries/lzma/C/LzFindMt.c:11:
/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'
80 | typedef cpu_set_t CCpuSet;
| ^~~~~~~~~
ninja: build stopped: subcommand failed.
* ERROR: games-fps/gzdoom-4.8.2-r1::gentoo failed (compile phase):
* ninja -v -j1 -l0 failed

Some data about my system:
# inxi -bZ
System:
Host: yea Kernel: 5.19.9-gentoo-bdver3 arch: x86_64 bits: 64 Desktop: MATE
v: 1.24.3 Distro: Gentoo Base System release 2.8
Machine:
Type: Desktop Mobo: ASRock model: A88M-G/3.1 serial: M80-6C020400119
UEFI: American Megatrends v: P1.40C date: 11/21/2016
CPU:
Info: quad core AMD PRO A10-8750B R7 12 Compute Cores 4C+8G [MT MCP]
speed (MHz): avg: 1400 min/max: 1400/3600
Graphics:
Device-1: AMD Kaveri [Radeon R7 Graphics] driver: amdgpu v: kernel
Display: x11 server: X.Org v: 21.1.4 driver: X: loaded: amdgpu
unloaded: fbdev,modesetting gpu: amdgpu resolution: 1920x1080~60Hz
OpenGL: renderer: AMD KAVERI (LLVM 14.0.6 DRM 3.47 5.19.9-gentoo-bdver3)
v: 4.6 Mesa 22.1.3
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
driver: r8169
Drives:
Local Storage: total: raw: 9.56 TiB usable: 6.83 TiB used: 4.28 TiB (62.6%)
Info:
Processes: 310 Uptime: 17h 1m Memory: 14.59 GiB used: 4.57 GiB (31.3%)
Shell: Bash inxi: 3.3.17

Return to “Technical Issues”