llvm-18-linker-tools does not include LLVMgold.so

Bug #2064187 reported by Paul Meckel
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
llvm-toolchain-18 (Ubuntu)
Status tracked in Oracular
Noble
Confirmed
Undecided
Unassigned
Oracular
Fix Released
Undecided
Unassigned

Bug Description

Unlike all other llvm-*-linker-tools packages, this one does not install `/usr/lib/llvm-18/lib/LLVMgold.so`. It does however install a broken symlink to it at `/usr/lib/bfd-plugins/LLVMgold-18.so`
This results in compilation failures with clang++ when used with the `-flto` flag for link time optimization.

To reproduce:

main.cpp:
```c++
int main() { return 0; }
```

```bash
clang++ -flto main.cpp -o main
```

Results in:
```
/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++: error: linker command failed with exit code 1 (use -v to see invocation)
```

Package version is

llvm-18-linker-tools/noble,now 1:18.1.3-1 amd64

llvm-18-linker-tools:
  Installed: 1:18.1.3-1
  Candidate: 1:18.1.3-1
  Version table:
 *** 1:18.1.3-1 500
        500 http://de.archive.ubuntu.com/ubuntu noble/universe amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in llvm-toolchain-18 (Ubuntu):
status: New → Confirmed
Shengjing Zhu (zhsj)
Changed in llvm-toolchain-18 (Ubuntu Noble):
status: New → Confirmed
Changed in llvm-toolchain-18 (Ubuntu Oracular):
status: Confirmed → Fix Released
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Oracular is not really fixed, llvmGOLD.so is still not built on riscv64.

Revision history for this message
Shengjing Zhu (zhsj) wrote :

> llvmGOLD.so is still not built on riscv64

It's not been built from previous versions on riscv64 as well. So at least not a regression.

Revision history for this message
Matthias Klose (doko) wrote :

gold is not support upstream on riscv64

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.