[Slackbuilds-users] Missing "lld" on x86 Slackware-15.0

Shahab Vahedi list+sbo at vahedi.org
Sun Mar 1 20:15:15 UTC 2026


First of all, I think this is a (packaging) issue on
Slackware side.  How come the same package (llvm-13) provides
/usr/bin/lld on Slacware64-15.0 but not on Slackware-15.0?
If you upgrade it to llvm-21.2, it's there again.  That involves
prioritising "extra" in your /etc/slackpkg/slackpkg.conf though.


> On March 1, 2026, fsLeg wrote:

> Slackware 15.0 ships 3 linkers: BFD, LLD and GOLD
Stock Slackware-15.0 (x86) does NOT come with LLD. That's my whole issue.
If you have it, please check your packages entries to see which one
provides it.

> So try other linkers first

I tried both BFD and GOLD, and they choke on linking phase
(different errors). The build must really be done with LLD.

> I looked up how to change a linker for Rust-based projects,...
> RUSTFLAGS="-C link-arg='-fuse-ld=bfd'"

The source code itself is enforcing LLD [1] and all for a good reason
(See my previous point):

cat intercept-preload/build.rst
  ...
  // Force using lld
  // https://users.rust-lang.org/t/how-to-use-linker-version-scripts-in-rust-1-54
  println!("cargo:rustc-cdylib-link-arg=-fuse-ld=lld");
  ...

[1]
https://github.com/rizsotto/Bear/blob/master/intercept-preload/build.rs#L71

> On March 1, fourtysixandtwo wrote:

> I've gone with "i?86) ARCH=i686 ;;" for cargo-vendor-filterer after
> the i586 issue was reported to me.

OK, I'll do it for my SlackBuild as well.

> Support for i586 with rust is not high on their priority list.
> I believe that there are not many i586 users for rust builds.

I think Rust support for i586, i686, and x86 in general in this
particular issue (missing "lld" on Slackware-15.0) is irrelevant
here.

-Shahab


More information about the SlackBuilds-users mailing list