Issue 90178
Summary [Question] Which apt packages provides "LLVMgold.so"?
Labels new issue
Assignees
Reporter AMS21
    So for some projects I have CI builds running `Ubuntu-22.04` inside Docker using LTO but I keep getting this error.

```
/usr/bin/ld: /usr/lib/llvm-18/bin/../lib/LLVMgold.so: error loading plugin: /usr/lib/llvm-18/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory
clang++-18: error: linker command failed with exit code 1 (use -v to see invocation)
```

I'm using the [official apt repo](https://apt.llvm.org) and I install the the following packages
```
apt install clang-18 libc++-18-dev libc++abi-18-dev libfuzzer-18-dev llvm-18 llvm-18-linker-tools libclang-rt-18-dev llvm-18-runtime
```

I thought that `LLVMgold.so` would be installed by `llvm-18-linker-tools` but apparently it's not :confused: 

So which exact package does provide this file?

Any help or insight would be greatly appreciated.

Full script for completeness sake
```sh
docker run -it "ubuntu:22.04"
# Inside the docker container
apt update && apt install wget gnupg lsb-release software-properties-common -y --no-install-recommends
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
add-apt-repository "deb https://apt.llvm.org/$(lsb_release -c -s)/ llvm-toolchain-$(lsb_release -c -s)-18 main" -y
apt update && apt install clang-18 libc++-18-dev libc++abi-18-dev libfuzzer-18-dev llvm-18 llvm-18-linker-tools libclang-rt-18-dev llvm-18-runtime -y --no-install-recommends
# Testing
echo "int main() {}" > test.cpp
clang++-18 test.cpp -flto
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to