Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915818 - sys-libs/slang-2.3.3-r1 - ld.lld: error: version script assignment of 'SLANG2' to symbol 'SLang_Rline_Quit' failed: symbol not defined
Summary: sys-libs/slang-2.3.3-r1 - ld.lld: error: version script assignment of 'SLANG2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: CJK Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: LD-is-lld, systemwide-lld 912821
  Show dependency tree
 
Reported: 2023-10-15 13:47 UTC by ernsteiswuerfel
Modified: 2024-02-21 07:10 UTC (History)
1 user (show)

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


Attachments
build.log (slang-2.3.3:20231015-133844.log,33.67 KB, text/plain)
2023-10-15 13:47 UTC, ernsteiswuerfel
Details
emerge --info (file_915818.txt,7.52 KB, text/plain)
2023-10-15 13:48 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2023-10-15 13:47:51 UTC
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
Comment 1 ernsteiswuerfel archtester 2023-10-15 13:48:31 UTC
Created attachment 872919 [details]
emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-02-01 07:55:12 UTC
clang-lld_tinderbox has reproduced this issue with version 2.3.3-r1 - Updating summary.
Comment 3 Larry the Git Cow gentoo-dev 2024-02-21 07:10:05 UTC
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(+)