make -j1 x86_64-gentoo-linux-musl-gcc -o pxz -O2 -pipe -march=native -fopenmp -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE pxz.c -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -llzma -DPXZ_BUILD_DATE=\date +%Y%m%d\ -DPXZ_VERSION=\4.999.9beta\ pxz.c:30:10: fatal error: error.h: No such file or directory 30 | #include <error.h> | ^~~~~~~~~ compilation terminated. ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl-20200328-141627 ------------------------------------------------------------------- Please see the tracker bug for details. 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.42.0 * The following VMs are available for generation-2: Available Java Virtual Machines: (none found) timestamp of HEAD at this tinderbox image: /var/db/repos/gentoo Sat Apr 11 10:38:08 UTC 2020 /var/db/repos/musl Wed Apr 8 18:15:58 UTC 2020 emerge -qpvO app-arch/pxz [ebuild N ] app-arch/pxz-5.0_pre20151029
Created attachment 632188 [details] emerge-info.txt
Created attachment 632190 [details] app-arch:pxz-5.0_pre20151029:20200411-112742.log
Created attachment 632192 [details] emerge-history.txt
Created attachment 632194 [details] environment
Created attachment 632196 [details] etc.portage.tbz2
Created attachment 632198 [details] temp.tbz2
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/wine.git/commit/?id=2bd68575c474d248e30f0f11a18072a7820a7371 commit 2bd68575c474d248e30f0f11a18072a7820a7371 Author: Nick Sarnie <sarnex@gentoo.org> AuthorDate: 2020-04-11 14:00:20 +0000 Commit: Nick Sarnie <sarnex@gentoo.org> CommitDate: 2020-04-11 14:00:58 +0000 app-emulation/wine-staging: Drop old patch Closes: https://bugs.gentoo.org/717062 Package-Manager: Portage-2.3.98, Repoman-2.3.22 Signed-off-by: Nick Sarnie <sarnex@gentoo.org> app-emulation/wine-staging/wine-staging-5.6.ebuild | 1 - app-emulation/wine-staging/wine-staging-9999.ebuild | 1 - 2 files changed, 2 deletions(-)
Sorry, typo of https://bugs.gentoo.org/717026
@chutzpah: error.h problems are nasty, I didn't want to make this too big of a patch, and glibc users have no issues here of course. So I propose this change that works for musl (and others like macOS and Solaris): @@ -26,4 +26,8 @@ export BINDIR="${EPREFIX}"/usr/bin export MANDIR="${EPREFIX}"/usr/share/man default_src_prepare + + if use elibc_musl ; then + sed -i -e '/<error.h>/c\#define error(R,E,S,...) fprintf(stderr, S "\\n", ##__VA_ARGS__); exit(R)' pxz.c + fi } It makes pxz usable, which is very useful.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f770c6e42a8e6c1bed10ee17064d35813302018 commit 7f770c6e42a8e6c1bed10ee17064d35813302018 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2022-01-25 20:09:41 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2022-01-25 20:13:44 +0000 app-arch/pxz: fix for musl Closes: https://bugs.gentoo.org/717062 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Fabian Groffen <grobian@gentoo.org> app-arch/pxz/pxz-5.0_pre20151029.ebuild | 8 ++++++-- app-arch/pxz/pxz-9999.ebuild | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-)