← Back to issue list

Snapcraft snap broken on trusty

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1752964
Type
issue
State
closed
Author
~kyrofa
Labels
—
Created
Updated
Closed

Current evaluation

Snapcraft 2.39.2 snap failed on Trusty: mksquashfs couldn't find liblz4.so.1 because ELF rpaths weren't set. Fixed by snapcore/snapcraft#1988 (commit 17f1f8c2f), which only sets rpaths to libs of the same arch; verified via edge/1752964-fix-trusty channel.

Resolution: closed resolved

Reason: Maintainer kyrofa identified that rpaths weren't being set for mksquashfs and shipped a fix in snapcore/snapcraft#1988 (commit 17f1f8c2f, 'elf: only set rpaths to libs of the same arch'), which was validated by a reporter on the edge/1752964-fix-trusty channel before the bug was closed.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Using v2.39.2 snap on Trusty: $ snapcraft Preparing to pull my-part Pulling my-part Preparing to build my-part Building my-part Staging my-part Priming my-part Snapping 'my-snap-name' | /snap/snapcraft/1177/usr/bin/mksquashfs: error while loading shared libraries: liblz4.so.1: cannot open shared object file: No such file or directory Traceback (most recent call last): File "/snap/snapcraft/1177/bin/snapcraft", line 11, in <module> load_entry_point('snapcraft==2.39.2', 'console_scripts', 'snapcraft')() File "/snap/snapcraft/1177/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 565, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/snap/snapcraft/1177/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2631, in load_entry_point return ep.load() File "/snap/snapcraft/1177/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2291, in load return self.resolve() File "/snap/snapcraft/1177/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2297, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/snap/snapcraft/1177/lib/python3.6/site-packages/snapcraft/cli/__main__.py", line 43, in <module> run(prog_name='snapcraft') File "/snap/snapcraft/1177/lib/python3.6/site-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/snap/snapcraft/1177/lib/python3.6/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/snap/snapcraft/1177/lib/python3.6/site-packages/click/core.py", line 1043, in invoke return Command.invoke(self, ctx) File "/snap/snapcraft/1177/lib/python3.6/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/snap/snapcraft/1177/lib/python3.6/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/snap/snapcraft/1177/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) File "/snap/snapcraft/1177/lib/python3.6/site-packages/snapcraft/cli/_runner.py", line 72, in run ctx.forward(lifecyclecli.commands['snap']) File "/snap/snapcraft/1177/lib/python3.6/site-packages/click/core.py", line 553, in forward return self.invoke(cmd, **kwargs) File "/snap/snapcraft/1177/lib/python3.6/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/snap/snapcraft/1177/lib/python3.6/site-packages/snapcraft/cli/lifecycle.py", line 139, in snap project_options, directory=directory, output=output) File "/snap/snapcraft/1177/lib/python3.6/site-packages/snapcraft/internal/lifecycle/_packer.py", line 48, in snap return pack(directory, output) File "/snap/snapcraft/1177/lib/python3.6/site-packages/snapcraft/internal/lifecycle/_packer.py", line 71, in pack snap_type=snap['type'], output_snap_name=output_snap_name) File "/snap/snapcraft/1177/lib/python3.6/site-packages/snapcraft/internal/lifecycle/_packer.py", line 115, in _run_mksquashfs output_snap_name)) RuntimeError: Failed to create snap 'my-snap-name_0.1_amd64.snap'

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Snapcraft 2.39.2 snap failed on Trusty: mksquashfs couldn't find liblz4.so.1 because ELF rpaths weren't set. Fixed by snapcore/snapcraft#1988 (commit 17f1f8c2f), which only sets rpaths to libs of the same arch; verified via edge/1752964-fix-trusty channel.
stealth/space-bunny-alpha — closed resolved Trusty users saw mksquashfs fail with missing liblz4.so.1 because ELF rpaths weren't set. Fixed by canonical/snapcraft#1988 (commit 17f1f8c2f), limiting rpath selection to same-arch libs; verified on an edge channel snap.
stealth/space-bunny-alpha — closed stale Closed without a recorded fix: Snapcraft 2.39.2's snap failed on Trusty because mksquashfs could not load liblz4.so.1; LP #1752964 has no comments or resolution.
qwen/qwen3.6-35b-a3b — — Closed without resolution. Snapcraft v2.39.2 failed on Ubuntu Trusty due to a missing liblz4.so.1 dependency for mksquashfs. No comments were posted, and the report was likely abandoned following Trusty's end-of-life.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The missing liblz4.so.1 dependency causing mksquashfs failures on Ubuntu Trusty was likely abandoned due to the distribution's end-of-life or superseded by newer snap versions.
qwen/qwen3.6-35b-a3b — — Closed without resolution. Snapcraft failed on Trusty due to missing liblz4.so.1 during mksquashfs. Zero comments and years of inactivity indicate the report was abandoned, likely due to OS end-of-life.
qwen3.6-35b-a3b-mtp-q6 — — Closed without comments or resolution. The missing liblz4.so.1 dependency causing mksquashfs failures on Ubuntu Trusty was abandoned or superseded due to the OS reaching end-of-life.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#1988 (confidence 96%)

    PR linked directly in the final maintainer comment; commit 17f1f8c2f 'elf: only set rpaths to libs of the same arch (#1988)'.

  • Related To: snapcraft (launchpad)#1723208 (confidence 70%)

    Earlier Trusty classic-snap breakage from missing library paths (LD_LIBRARY_PATH leak, fixed in #1635) in the same rpath/library-patching area.

  • Related To: canonical/snapcraft#1781 (confidence 55%)

    'many: set rpath for elf files for classic' — the earlier change that introduced/intended the rpath behaviour this bug exposed.

Related issues

Issue Project State Summary Similarity
#1723208 Snapcraft snap doesn't work natively on trusty snapcraft (launchpad) closed Fixed Trusty classic-snap builds by preventing bundled-library LD_LIBRARY_PATH values from leaking into build commands; merged in snapcore/snapcraft#1635 as da9181487.
78%
#1663303 Running snapcraft on Ubuntu 14.04 fails with a traceback snapcraft (launchpad) closed Closed as stale: maintainer ~kyrofa said Snapcraft 2.35 should run on Trusty, making the earlier missing liblz4.so.1 failure obsolete.
76%
#1769551 snapcraft 2.42 not working in trusty armhf snapcraft (launchpad) closed Snapcraft 2.42's armhf startup failure was fixed by merged PR #2126 (commit 5230460c7); the reporter confirmed it in edge rev 1561.
75%
#2012074 snapcraft cannot build snap by default on aarch64 snapcraft (launchpad) open ARM64 default builds failed on Snapcraft 7.3.1 because core20 selected amd64-only Multipass images; later defaults use core22/LXD on Linux, addressing the reported path.
71%
#1765482 Building a classic snap on trusty doesn't work snapcraft (launchpad) closed Trusty classic-snap build segfaults traced to core paths in LD_LIBRARY_PATH. Proposed fix PR canonical/snapcraft#2128 was closed unmerged as unnecessary, leaving the bug unfixed.
71%