x86_64-gentoo-linux-musl-gcc -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -I. -D_GNU_SOURCE -DSWM_LIB=\/usr/lib/libswmhack.so.0.0\ -I/usr/include/freetype2 -I/usr/include/uuid -c -o spectrwm.o ../spectrwm.c x86_64-gentoo-linux-musl-gcc -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -I. -D_GNU_SOURCE -DSWM_LIB=\/usr/lib/libswmhack.so.0.0\ -I/usr/include/freetype2 -I/usr/include/uuid -c -o linux.o linux.c linux.c:2:10: fatal error: sys/cdefs.h: No such file or directory 2 | #include <sys/cdefs.h> | ^~~~~~~~~~~~~ compilation terminated. ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl-20200316-165821 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-gentoo-linux-musl-9.3.0 * Available Python interpreters, in order of preference: [1] python3.8 [2] python3.7 [3] python3.6 [4] python2.7 (fallback) repository: ==> /var/db/repos/gentoo/metadata/timestamp.chk <== Mon, 16 Mar 2020 22:38:28 +0000 emerge -qpvO x11-wm/spectrwm [ebuild N ] x11-wm/spectrwm-3.3.0
Created attachment 620804 [details] emerge-info.txt
Created attachment 620806 [details] emerge-history.txt
Created attachment 620808 [details] environment
Created attachment 620810 [details] etc.portage.tbz2
Created attachment 620812 [details] temp.tbz2
Created attachment 620814 [details] x11-wm:spectrwm-3.3.0:20200316-233130.log
musl upstream has a FAQ entry specifically for this error: https://wiki.musl-libc.org/faq.html#Q:-When-compiling-something-against-musl,-I-get-error-messages-about-%3Ccode%3Esys/cdefs.h%3C/code%3E We will need to check/report upstream and patch affected code temporarily.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8ef08c41699d3a61edad1997f1add6b1003eec4 commit d8ef08c41699d3a61edad1997f1add6b1003eec4 Author: Ben Kohler <bkohler@gentoo.org> AuthorDate: 2020-09-03 12:48:28 +0000 Commit: Ben Kohler <bkohler@gentoo.org> CommitDate: 2020-09-03 12:48:48 +0000 x11-wm/spectrwm: removed unused include to fix musl build Closes: https://bugs.gentoo.org/712976 Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Ben Kohler <bkohler@gentoo.org> x11-wm/spectrwm/files/spectrwm-3.4.1-musl.patch | 9 +++++++++ x11-wm/spectrwm/spectrwm-3.4.1.ebuild | 1 + 2 files changed, 10 insertions(+)