question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SymLink ld.lld -> ld.lld-9

See original GitHub issue

I would like to have a SymLink in bin-dir:

cd /path/to/install/bin

PRG_SUFFIX_VER="9"

$ ln -sf ld.lld ld.lld-$PRG_SUFFIX_VER

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
MaskRaycommented, Jul 26, 2019

If you specify -fuse-ld=lld but don’t use -Bprefix, clang will locate x86_64-unknown-linux-gnu-ld.lld (if the default target triple is x86_64-unknown-linux-gnu) and ld.lld in clang -print-search-dirs, then $PATH.

clang-9 will not magically locate ld.lld-9. If you really want to locate ld.lld-9, use -fuse-ld=lld-9

0reactions
nathanchancecommented, Mar 31, 2020

I am closing this as this is not something the script will support natively (and based on further discussion upstream, not necessarily something we will account for with the proposed LLVM=y: https://lore.kernel.org/lkml/20200331193544.GA55810@ubuntu-m2-xlarge-x86/)

Read more comments on GitHub >

github_iconTop Results From Across the Web

LLD - The LLVM Linker — lld 16.0.0git documentation
LLD is a linker from the LLVM project that is a drop-in replacement for system linkers and runs much faster than them. It...
Read more >
ld and lld use only paths I input - linker - Stack Overflow
I'd like to be able to tell both ld (the gcc linker) and lld (the clang linker) "Only look in these paths for...
Read more >
lld-9_9.0.1-12_arm64.deb - Ubuntu Repositories - pkgs.org
Download lld-9_9.0.1-12_arm64.deb for Ubuntu 20.04 LTS from Ubuntu Universe repository. ... lld-9 - LLVM-based linker ... /usr/share/man/man1/ld.lld-9.1.gz ...
Read more >
[llvm-dev] LLD to be the default linker in Clang - Google Groups
realised the "accepted" way to make clang call lld is to "symlink lld -> ld". I understand that's how every Linux system "chooses"...
Read more >
93645 – Support Clang 12 --ld-path= - GNU.org
This feature request generalizes -fuse-ld=bfd -fuse-ld=gold https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55470 and -fuse-ld=lld clang ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found