In file included from src/libcxgb4.h:44, from src/cq.c:42: src/queue.h:68:10: fatal error: sys/cdefs.h: No such file or directory 68 | #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 * clang version 10.0.0 Target: x86_64-gentoo-linux-musl Thread model: posix InstalledDir: /usr/lib/llvm/10/bin /usr/lib/llvm/10 10.0.0 Available Python interpreters, in order of preference: [1] python3.8 [2] python3.7 [3] python3.6 [4] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * Available Rust versions: [1] rust-1.41.1 * timestamp of HEAD at this tinderbox image: /var/db/repos/gentoo Sat Mar 21 09:38:33 UTC 2020 /var/db/repos/musl Sat Mar 21 03:09:12 UTC 2020 emerge -qpvO sys-fabric/libcxgb4 [ebuild N ] sys-fabric/libcxgb4-1.3.2
Created attachment 623772 [details] emerge-info.txt
Created attachment 623774 [details] emerge-history.txt
Created attachment 623776 [details] environment
Created attachment 623778 [details] etc.portage.tbz2
Created attachment 623780 [details] logs.tbz2
Created attachment 623782 [details] sys-fabric:libcxgb4-1.3.2:20200321-100519.log
Created attachment 623784 [details] temp.tbz2
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=cfad54a2df42ae0950abdc46285926ec405bf54c commit cfad54a2df42ae0950abdc46285926ec405bf54c Author: Sam James <sam@gentoo.org> AuthorDate: 2021-12-23 08:07:58 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-12-23 08:13:45 +0000 sys-fabric/libcxgb4: fix build on musl Closes: https://bugs.gentoo.org/713776 Signed-off-by: Sam James <sam@gentoo.org> .../libcxgb4/files/libcxgb4-1.3.2-use-system-queue.patch | 12 ++++++++++++ sys-fabric/libcxgb4/libcxgb4-1.3.2.ebuild | 13 ++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-)