Created attachment 872918 [details] build.log Fails with lld-17.0.2 but links fine when binutils-2.40-r5 is used. [...] cd /var/tmp/portage/sys-libs/slang-2.3.3/work/slang-2.3.3-abi_x86_64.amd64/src/amd64elfobjs && clang -Wl,-O1 -Wl,--as-needed -Wl,--as-needed -shared -Wl,-O1 -Wl,--version-script,/var/tmp/portage/sys-libs/slang-2.3.3/work/slang-2.3.3-abi_x86_64.amd64/src/slang.ver -Wl,-soname,libslang.so.2 -o libslang.so.2.3.3 sltermin.o sldisply.o slutty.o slang.o slarray.o slclass.o slcmd.o slerr.o slgetkey.o slkeymap.o slmalloc.o slmath.o slmemchr.o slmemcmp.o slmemcpy.o slmemset.o slmisc.o slparse.o slprepr.o slregexp.o slrline.o slsearch.o slsmg.o slstd.o sltoken.o sltypes.o slxstrng.o slcurses.o slscroll.o slsignal.o slkeypad.o slerrno.o slstring.o slstruct.o slcmplex.o slarrfun.o slimport.o slpath.o slarith.o slassoc.o slcompat.o slposdir.o slstdio.o slproc.o sltime.o slstrops.o slbstr.o slpack.o slintall.o slistruc.o slposio.o slnspace.o slarrmis.o slospath.o slscanf.o sllower.o slupper.o slischar.o slutf8.o slwcwidth.o slwclut.o slcommon.o sllist.o slexcept.o slfpu.o slsig.o slboseos.o -Wl,-O1 -Wl,--as-needed -Wl,--as-needed -ldl -lm -lc ld.lld: error: version script assignment of 'SLANG2' to symbol 'SLang_Rline_Quit' failed: symbol not defined clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [Makefile:164: /var/tmp/portage/sys-libs/slang-2.3.3/work/slang-2.3.3-abi_x86_64.amd64/src/amd64elfobjs/libslang.so.2.3.3] Error 1 make[1]: Leaving directory '/var/tmp/portage/sys-libs/slang-2.3.3/work/slang-2.3.3-abi_x86_64.amd64/src' make: *** [Makefile:58: elf] Error 2 * ERROR: sys-libs/slang-2.3.3::gentoo failed (compile phase): * emake failed
Created attachment 872919 [details] emerge --info
clang-lld_tinderbox has reproduced this issue with version 2.3.3-r1 - Updating summary.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2b4a39461adb558b3dbe8bdcadde871a07c0c64 commit e2b4a39461adb558b3dbe8bdcadde871a07c0c64 Author: Michal Rostecki <vadorovsky@protonmail.com> AuthorDate: 2024-02-01 07:10:21 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-02-21 07:07:49 +0000 sys-libs/slang: Fix the build with LLD 17 LLD 17 rightfully complains about the undefined symbol being present in the version script, which is also not used anywhere. Closes: https://bugs.gentoo.org/915818 Signed-off-by: Michal Rostecki <vadorovsky@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/35129 Signed-off-by: Sam James <sam@gentoo.org> ...move-undefined-symbol-from-version-script.patch | 30 ++++++++++++++++++++++ sys-libs/slang/slang-2.3.3.ebuild | 1 + 2 files changed, 31 insertions(+)