Created attachment 929795 [details] build.log sys-libs/libnvme-1.14 includes a glibc-specific header that makes it impossible to build on musl. I managed to build it with a tiny patch telling the compiler not to include it if it's not being compiled against glibc.
Created attachment 929796 [details, diff] Patch solving it
Upstream merged a patch just removing the include entirely.
This is also a secondary bug as the build system added building examples as an option and it is currently unconditionally enabled. https://github.com/linux-nvme/libnvme/pull/1014
(In reply to Alfred Wingate from comment #3) > This is also a secondary bug as the build system added building examples as > an option and it is currently unconditionally enabled. > > https://github.com/linux-nvme/libnvme/pull/1014 Correction, this change isn't tagged. So the new build option is for the next version.
(In reply to Alfred Wingate from comment #4) > (In reply to Alfred Wingate from comment #3) > > This is also a secondary bug as the build system added building examples as > > an option and it is currently unconditionally enabled. > > > > https://github.com/linux-nvme/libnvme/pull/1014 > > Correction, this change isn't tagged. So the new build option is for the > next version. I see it'll be solved, thank you so much Alfred!
I guess I'm closing this bug as resolved.
We still need to backport it (which is why he didn't close it).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=473f1c93f5092d5214d4c7fd253ff561c34a0bb1 commit 473f1c93f5092d5214d4c7fd253ff561c34a0bb1 Author: Alfred Wingate <parona@protonmail.com> AuthorDate: 2025-05-27 13:05:49 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-05-27 13:08:39 +0000 sys-libs/libnvme: drop unnecessary glibc specific inlude Closes: https://bugs.gentoo.org/956710 Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42280 Closes: https://github.com/gentoo/gentoo/pull/42280 Signed-off-by: Sam James <sam@gentoo.org> .../files/libnvme-1.14-remove-glibc-include.patch | 29 ++++++++++++++++++++++ sys-libs/libnvme/libnvme-1.14.ebuild | 4 +++ 2 files changed, 33 insertions(+)