too long lines were shrinked: [87/94] clang -o test-bus-match test-bus-match.p/src_libsystemd_sd-bus_test-bus-match.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -pie -Wl,--gc-sections -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implicit-int -Wl,-O1 -Wl,--as-need [88/94] clang -Itest-bus-introspect.p -I. -I../basu-0.2.1 -Isrc/basic -I../basu-0.2.1/src/basic -Isrc/systemd -I../basu-0.2.1/src/systemd -Isrc/test -I../basu-0.2.1/src/test -I../basu-0.2.1/src/libsystemd/sd-bus -I../basu-0.2.1/src/libsystemd/sd-daemon -I../basu-0.2.1/src/libsystemd/sd-id128 -fdiagn [89/94] clang -o libbasu.so.0 -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libbasu.so.0 -Wl,--whole-archive src/libsystemd/libsystemd_static.a -Wl,--no-whole-archive -Wl,-z,relro -Wl,-z,now -pie -Wl,--gc-sections -O2 -pipe -march=native -fno-diagnostics-color -Wer FAILED: libbasu.so.0 clang -o libbasu.so.0 -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libbasu.so.0 -Wl,--whole-archive src/libsystemd/libsystemd_static.a -Wl,--no-whole-archive -Wl,-z,relro -Wl,-z,now -pie -Wl,--gc-sections -O2 -pipe -march=native -fno-diagnostics-color -Werror=impl clang-17: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] ld.lld: error: version script assignment of 'global' to symbol 'sd_bus_attach_event' failed: symbol not defined ld.lld: error: version script assignment of 'global' to symbol 'sd_bus_detach_event' failed: symbol not defined ld.lld: error: version script assignment of 'global' to symbol 'sd_bus_get_event' failed: symbol not defined ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_clang-20231129-092259 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-13 * clang/llvm (if any): clang version 17.0.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/17/bin Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg /usr/lib/llvm/17 17.0.6+libcxx Python 3.11.6 Available Rust versions: [1] rust-bin-1.73.0 * The following VMs are available for generation-2: 1) Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17] *) Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21] 3) Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-17 [3] openjdk-bin-21 system-vm The Glorious Glasgow Haskell Compilation System, version 9.0.2 php cli (if any): HEAD of ::gentoo commit ee28b7d58666c1d047b807566a84c34d155eae00 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Thu Nov 30 23:02:01 2023 +0000 2023-11-30 23:02:01 UTC emerge -qpvO sys-libs/basu [ebuild N ] sys-libs/basu-0.2.1 USE="-audit -caps"
Created attachment 876065 [details] emerge-info.txt
Created attachment 876066 [details] emerge-history.txt
Created attachment 876067 [details] environment
Created attachment 876068 [details] etc.clang.tar.xz
Created attachment 876069 [details] etc.portage.tar.xz
Created attachment 876070 [details] logs.tar.xz
Created attachment 876071 [details] qlist-info.txt
Created attachment 876072 [details] sys-libs:basu-0.2.1:20231130-234907.log
Created attachment 876073 [details] temp.tar.xz
Created attachment 876074 [details] var.tmp.clang.tar.xz
in my case, using mold fixed the issue.
(In reply to kkflt from comment #11) > in my case, using mold fixed the issue. Also, forgot to mention adding -Wl,--undefined-version to your LDFLAGS also solves it.
suppresses it, rather. I forgot about this problem as it doesn't happen on bfd - I'll leave a reminder for myself and try to properly fix it this weekend (but I am still on restricted time..)