[Slackbuilds-users] Missing "lld" on x86 Slackware-15.0
fsLeg
fsleg at t-rg.ws
Sun Mar 1 19:33:02 UTC 2026
I had a problem with linkers just recently. Some of them I worked around by using a different linker. Slackware 15.0 ships 3 linkers: BFD, LLD and GOLD. ScummVM SlackBuild used a BFD linker for x86 architecture for a while for the same reason. So try other linkers first.
Slackware-current no longer has GOLD (binutils deprecated it), but it ships MOLD as the third option. MOLD is on SBo for Slackware 15.0, so you could also try that.
I looked up how to change a linker for Rust-based projects, and it seems you just need to supply something like
RUSTFLAGS="-C link-arg='-fuse-ld=bfd'"
when calling `cargo build`.
On March 1, 2026 22:10:59 GMT+03:00, Shahab Vahedi via SlackBuilds-users <slackbuilds-users at slackbuilds.org> wrote:
>I need to pick your brain on something. There is this program
>called Bear that recently moved their code base from C++ to Rust.
>When building it, I noticed that the build fails on i586 version
>of Slackware-15.0 [1], but is fine on x86_64 variant.
>
>I have narrowed down the problem to missing "lld" binary on x86
>Slackware (llvm-13) [2]. Indeed, Slackware64-15.0's llvm package
>(llvm-13 again) provides the "lld" linker.
>
>At first I thought maybe I could get away with having a link
>from "lld" to "ld", but that was not a success [3]. The linking
>phase really needs the "lld" tool.
>
>I finally managed to have "lld" on x86 Slackware-15.0 by installing
>llvm-22.1 package from the "extra" repository.
More information about the SlackBuilds-users
mailing list