too long lines were shrinked: [438/531] x86_64-pc-linux-musl-g++ -Isrc/Hyprland.p -Isrc -I../hyprland-source/src -Isubprojects/wlroots-hyprland/include -I../hyprland-source/subprojects/wlroots-hyprland/include -Isubprojects/udis86 -I../hyprland-source/subprojects/udis86 -I../hyprland-source/subprojects/udis86/libudis86 -Isubproj [439/531] x86_64-pc-linux-musl-g++ -Isrc/Hyprland.p -Isrc -I../hyprland-source/src -Isubprojects/wlroots-hyprland/include -I../hyprland-source/subprojects/wlroots-hyprland/include -Isubprojects/udis86 -I../hyprland-source/subprojects/udis86 -I../hyprland-source/subprojects/udis86/libudis86 -Isubproj [440/531] x86_64-pc-linux-musl-g++ -Isrc/Hyprland.p -Isrc -I../hyprland-source/src -Isubprojects/wlroots-hyprland/include -I../hyprland-source/subprojects/wlroots-hyprland/include -Isubprojects/udis86 -I../hyprland-source/subprojects/udis86 -I../hyprland-source/subprojects/udis86/libudis86 -Isubproj FAILED: src/Hyprland.p/helpers_SdDaemon.cpp.o x86_64-pc-linux-musl-g++ -Isrc/Hyprland.p -Isrc -I../hyprland-source/src -Isubprojects/wlroots-hyprland/include -I../hyprland-source/subprojects/wlroots-hyprland/include -Isubprojects/udis86 -I../hyprland-source/subprojects/udis86 -I../hyprland-source/subprojects/udis86/libudis86 -Isubprojects/udis8 ../hyprland-source/src/helpers/SdDaemon.cpp: In function 'int Systemd::SdNotify(int, const char*)': ../hyprland-source/src/helpers/SdDaemon.cpp:40:38: error: 'strnlen' was not declared in this scope; did you mean 'strlen'? 40 | size_t addrLen = strnlen(addr, 107); | ^~~~~~~ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_musl_hardened-20240501-134026 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-musl-13 * clang/llvm (if any): clang version 18.1.5 Target: x86_64-pc-linux-musl Thread model: posix InstalledDir: /usr/lib/llvm/18/bin Configuration file: /etc/clang/x86_64-pc-linux-musl-clang.cfg /usr/lib/llvm/18 18.1.5 Python 3.11.9 Available Ruby profiles: [1] ruby31 (with Rubygems) [2] ruby32 (with Rubygems) [3] ruby33 (with Rubygems) * Available Rust versions: [1] rust-bin-1.77.1 [2] rust-1.77.1 * The following VMs are available for generation-2: 1) Eclipse Temurin JDK 11.0.23_p9 [openjdk-bin-11] 2) Eclipse Temurin JDK 17.0.11_p9 [openjdk-bin-17] *) Eclipse Temurin JDK 21.0.3_p9 [openjdk-bin-21] Available Java Virtual Machines: [1] openjdk-bin-11 [2] openjdk-bin-17 [3] openjdk-bin-21 system-vm php cli (if any): [1] php8.1 * [2] php8.3 go version go1.22.3 linux/amd64 HEAD of ::gentoo commit 6c2057fe3010c8632c92e00ca71518138644fb1d Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Wed May 15 11:03:48 2024 +0000 2024-05-15 11:03:48 UTC emerge -qpvO gui-wm/hyprland
Created attachment 892994 [details] emerge-info.txt
Created attachment 892995 [details] emerge-history.txt.xz
Created attachment 892996 [details] environment
Created attachment 892997 [details] etc.clang.tar.xz
Created attachment 892998 [details] etc.portage.tar.xz
Created attachment 892999 [details] gui-wm:hyprland-0.40.0:20240515-114743.log.xz
Created attachment 893000 [details] qlist-info.txt.xz
Created attachment 893001 [details] temp.tar.xz
Created attachment 893034 [details, diff] fixes missing header files There are two issues with this file, one is missing errno.h (already fixed upstream) that prevents compilation with clang and missing string.h that prevents compilation with gcc the way you tried it... this patch worked for me, feel free to try it.