/usr/bin/ld: cannot find -lLLVM
- Dominant language
- C
- Stars
- 22.7k
- Forks
- 4.1k
- Avg merge
- 10d 4h
- Merged PRs (30d)
- 3
Description
Compile error:
```
[ 18%] Building C object src/cc/CMakeFiles/bcc-shared.dir/bcc_zip.c.o
[ 18%] Building CXX object src/cc/CMakeFiles/bcc-shared.dir/common.cc.o
[ 18%] Linking CXX shared library libbcc.so
/usr/bin/ld: cannot find -lLLVM
collect2: error: ld returned 1 exit status
make[2]: *** [src/cc/CMakeFiles/bcc-shared.dir/build.make:359: src/cc/libbcc.so.0.27.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:780: src/cc/CMakeFiles/bcc-shared.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
```
and my llvm and clang version :
```
qte@ubuntu:~/bcc/build$ clang -v
clang version 17.0.0 (https://mirrors.tuna.tsinghua.edu.cn/git/llvm-project.git f8ec7a0944aee9888aa48dde6fe088e72faa2462)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
qte@ubuntu:~/bcc/build$ llvm-config --version
17.0.0git
```
When I add the cmake tag to my compilation option, I have this link library problem, and I still have this problem after recompiling, how can I solve it, thank you for your reply.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.