llvm-18-linker-tools does not include LLVMgold.so
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
llvm-toolchain-18 (Ubuntu) | Status tracked in Oracular | |||||
Noble |
Fix Released
|
Undecided
|
Unassigned | |||
Oracular |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
* User can't use clang++-18 to build C++ code with -flto option.
[ Test Plan ]
* Install clang-18 from proposed updates.
* Try to build a C++ program with LTO (for example following the steps in original description.
[ Where problems could occur ]
* The missing LLVMgold.so is caused by switching to use mold in package building. Using mold is introduced in llvm 18. The fix is just to revert the change, and uses the same linker (gold) as old llvm versions. So the change looks safe.
[ Other Info ]
* No
[Original Description]
Unlike all other llvm-*-linker-tools packages, this one does not install `/usr/lib/
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/
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
```
Package version is
llvm-18-
llvm-18-
Installed: 1:18.1.3-1
Candidate: 1:18.1.3-1
Version table:
*** 1:18.1.3-1 500
500 http://
100 /var/lib/
Related branches
- Simon Chopin (community): Abstain
-
Diff: 76 lines (+16/-4)6 files modifieddebian/changelog (+8/-0)
debian/control (+2/-1)
debian/control.in (+2/-1)
debian/llvm-X.Y-linker-tools.install.in (+2/-1)
debian/llvm-X.Y-linker-tools.links.in (+1/-1)
debian/rules (+1/-0)
Changed in llvm-toolchain-18 (Ubuntu Noble): | |
status: | New → Confirmed |
Changed in llvm-toolchain-18 (Ubuntu Oracular): | |
status: | Confirmed → Fix Released |
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.