Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 956878 - sys-apps/findutils-4.10.0[+test] - ../tests/xargs/test-sigusr.o ld.lld: error: undefined symbol: error
Summary: sys-apps/findutils-4.10.0[+test] - ../tests/xargs/test-sigusr.o ld.lld: error...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2025-05-31 00:35 UTC by ernsteiswuerfel
Modified: 2025-06-02 21:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (amd64, 4.10.0) (findutils-4.10.0:20250530-233927.log.xz,31.52 KB, application/x-xz)
2025-05-31 00:35 UTC, ernsteiswuerfel
Details
emerge --info (file_956878.txt,7.79 KB, text/plain)
2025-05-31 00:36 UTC, ernsteiswuerfel
Details
build.log.xz (ppc, 4.10.0) (findutils-4.10.0:20250530-233510.log.xz,31.24 KB, application/x-xz)
2025-05-31 00:37 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2025-05-31 00:35:45 UTC
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
Comment 1 ernsteiswuerfel archtester 2025-05-31 00:36:45 UTC
Created attachment 930099 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2025-05-31 00:37:11 UTC
Created attachment 930100 [details]
build.log.xz (ppc, 4.10.0)
Comment 3 Alfred Wingate 2025-05-31 00:58:01 UTC
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.
Comment 4 ernsteiswuerfel archtester 2025-05-31 09:04:01 UTC
(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