[cfe-dev] Unable to use LLD?

Shriramana Sharma via cfe-dev cfe-dev at lists.llvm.org
Wed Mar 13 06:50:08 PDT 2019


Hello. I have installed Clang and LLD v9
(9~svn355950-1~exp1+0~20190312185014.855~1.gbp505100 to be precise)
from the Apt packages on Kubuntu Bionic LTS with latest updates.

This is the first time I am trying to use LLD. The installed binary
path is /usr/bin/ld.lld-9 and it is accessible as just ‘ld.lld-9’ from
the command line.

So with the following hello.c:

#include <stdio.h>
int main() { printf("Hello!\n"); }

This is what happens:

$ clang-9 -fuse-ld=ld.lld-9 -o hello hello.c
clang: error: invalid linker name in argument '-fuse-ld=ld.lld-9'

Please indicate what I am doing wrong?!

-- 
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा 𑀰𑁆𑀭𑀻𑀭𑀫𑀡𑀰𑀭𑁆𑀫𑀸



More information about the cfe-dev mailing list