Package version 1:8-3 contains no actual lld library, just broken symlinks

Bug #1829677 reported by Peter J. Mello
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
llvm-toolchain-8 (Debian)
Fix Released
Unknown
llvm-toolchain-8 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Inspecting the liblld-8 package contents, version 1:8-3, revealed something of a surprise. Below is a recursive list of what it places in /usr/lib/llvm-8

./usr/lib/llvm-8:
total 4.0K
drwxr-xr-x 2 rscholar rscholar 4.0K May 19 15:33 lib/
./usr/lib/llvm-8/lib:
total 11M
-rw-r--r-- 1 rscholar rscholar 1.8M Apr 2 02:57 liblldCOFF.a
-rw-r--r-- 1 rscholar rscholar 457K Apr 2 02:57 liblldCommon.a
-rw-r--r-- 1 rscholar rscholar 177K Apr 2 02:57 liblldCore.a
-rw-r--r-- 1 rscholar rscholar 119K Apr 2 02:57 liblldDriver.a
-rw-r--r-- 1 rscholar rscholar 5.9M Apr 2 02:57 liblldELF.a
-rw-r--r-- 1 rscholar rscholar 1.4M Apr 2 02:57 liblldMachO.a
-rw-r--r-- 1 rscholar rscholar 43K Apr 2 02:57 liblldMinGW.a
-rw-r--r-- 1 rscholar rscholar 40K Apr 2 02:57 liblldReaderWriter.a
lrwxrwxrwx 1 rscholar rscholar 36 Apr 2 02:57 liblld.so.1 -> ../../x86_64-linux-gnu/liblld-8.so.1
-rw-r--r-- 1 rscholar rscholar 716K Apr 2 02:57 liblldWasm.a
-rw-r--r-- 1 rscholar rscholar 188K Apr 2 02:57 liblldYAML.a
./usr/lib/x86_64-linux-gnu:
total 0
lrwxrwxrwx 1 rscholar rscholar 13 Apr 2 02:57 liblld-8.so -> liblld-8.so.1

As you can see, in two places it is symlinking to a file it expects to exist at /usr/lib/x86_64-linux-gnu/liblld-8.so.1 which, in fact, is not included in the package. The same is true of the packages from the LLVM official apt repository in distributions xenial through disco.

I'm running Kubuntu 19.04 "Disco Dingo" on a Lenovo ThinkPad T420s (Core i7 2nd. Gen).

summary: - Package version 1:8-3 contains no actual library, just broken symlinks
+ Package version 1:8-3 contains no actual lld library, just broken
+ symlinks
Revision history for this message
Peter J. Mello (roguescholar) wrote :

This patch was offered on the Debian Bug Tracker for the same issue, but not by me. I'm adding it to the thread here in case the package maintainers might find it useful.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "0001-lld-doesn-t-generate-shared-libs.patch" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Changed in llvm-toolchain-8 (Debian):
status: Unknown → New
Mathew Hodson (mhodson)
Changed in llvm-toolchain-8 (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

I patched the Debian git repository, so this will be uploaded and syncd when freeze is over (or before, if we can upload it).

I don't think this is serious enough to be worth an Ubuntu upload right now...

Changed in llvm-toolchain-8 (Debian):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package llvm-toolchain-8 - 1:8.0.1~+rc3-1ubuntu1

---------------
llvm-toolchain-8 (1:8.0.1~+rc3-1ubuntu1) eoan; urgency=medium

  * Do not error out on lldb-i386 issue

 -- Gianfranco Costamagna <email address hidden> Sat, 29 Jun 2019 11:40:08 +0200

Changed in llvm-toolchain-8 (Ubuntu):
status: New → Fix Released
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.