Created attachment 930098 [details] build.log.xz (amd64, 4.10.0) [...] make[1]: Entering directory '/var/tmp/portage/sys-apps/findutils-4.10.0/work/findutils-4.10.0' make tests/xargs/test-sigusr make[2]: Entering directory '/var/tmp/portage/sys-apps/findutils-4.10.0/work/findutils-4.10.0' clang -DHAVE_CONFIG_H -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Os -march=znver2 -pipe -c -o tests/xargs/test-sigusr.o tests/xargs/test-sigusr.c clang -Os -march=znver2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed -o tests/xargs/test-sigusr tests/xargs/test-sigusr.o ld.lld: error: undefined symbol: error >>> referenced by test-sigusr.c >>> tests/xargs/test-sigusr.o:(main) >>> referenced by test-sigusr.c >>> tests/xargs/test-sigusr.o:(verify_signal_ignored) >>> referenced by test-sigusr.c >>> tests/xargs/test-sigusr.o:(run_xargs) >>> referenced 10 more times >>> did you mean: ferror >>> defined in: /lib/libc.so clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [Makefile:2791: tests/xargs/test-sigusr] Error 1 make[2]: Leaving directory '/var/tmp/portage/sys-apps/findutils-4.10.0/work/findutils-4.10.0' make[1]: *** [Makefile:3306: check-am] Error 2 make[1]: Leaving directory '/var/tmp/portage/sys-apps/findutils-4.10.0/work/findutils-4.10.0' make: *** [Makefile:2831: check-recursive] Error 1 * ERROR: sys-apps/findutils-4.10.0::gentoo failed (test phase): * Make check failed. See above for details. On my ppc musl system I get: [...] make[2]: Entering directory '/var/tmp/portage/sys-apps/findutils-4.10.0/work/findutils-4.10.0' powerpc-unknown-linux-musl-gcc -DHAVE_CONFIG_H -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O2 -pipe -mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -c -o tests/xargs/test-sigusr.o tests/xargs/test-sigusr.c powerpc-unknown-linux-musl-gcc -O2 -pipe -mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -Wl,-O1 -Wl,--as-needed -o tests/xargs/test-sigusr tests/xargs/test-sigusr.o /usr/lib/gcc/powerpc-unknown-linux-musl/15/../../../../powerpc-unknown-linux-musl/bin/ld: tests/xargs/test-sigusr.o: in function `catch_signal': test-sigusr.c:(.text+0x100): undefined reference to `error' /usr/lib/gcc/powerpc-unknown-linux-musl/15/../../../../powerpc-unknown-linux-musl/bin/ld: tests/xargs/test-sigusr.o: in function `set_close_on_exec': test-sigusr.c:(.text+0x170): undefined reference to `error' /usr/lib/gcc/powerpc-unknown-linux-musl/15/../../../../powerpc-unknown-linux-musl/bin/ld: tests/xargs/test-sigusr.o: in function `run_xargs': test-sigusr.c:(.text+0x2bc): undefined reference to `error' /usr/lib/gcc/powerpc-unknown-linux-musl/15/../../../../powerpc-unknown-linux-musl/bin/ld: test-sigusr.c:(.text+0x434): undefined reference to `error' /usr/lib/gcc/powerpc-unknown-linux-musl/15/../../../../powerpc-unknown-linux-musl/bin/ld: test-sigusr.c:(.text+0x454): undefined reference to `error' /usr/lib/gcc/powerpc-unknown-linux-musl/15/../../../../powerpc-unknown-linux-musl/bin/ld: tests/xargs/test-sigusr.o:test-sigusr.c:(.text+0x474): more undefined references to `error' follow collect2: error: ld returned 1 exit status make[2]: *** [Makefile:2791: tests/xargs/test-sigusr] Error 1
Created attachment 930099 [details] emerge --info
Created attachment 930100 [details] build.log.xz (ppc, 4.10.0)
These systems have sys-libs/error-standalone installed? tests/xargs/test-sigusr.c:34:10: fatal error: error.h: No such file or directory 34 | #include <error.h> | ^~~~~~~~~ compilation terminated. So a case of having link the standalone error lib again specially for musl.
(In reply to Alfred Wingate from comment #3) > These systems have sys-libs/error-standalone installed? Yes, error-standalone is installed on both systems: # emerge -p1v error-standalone These are the packages that would be merged, in order: Calculating dependencies... done! Dependency resolution took 2.10 s (backtrack: 0/20). [ebuild R ] sys-libs/error-standalone-2.0-r1::gentoo USE="-static-libs" 0 KiB