← Back to issue list

classic snaps fail to build in launchpad in archs other than amd64

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1665165
Type
issue
State
closed
Author
~elopio
Labels
classic
Created
Updated
Closed

Current evaluation

Classic non-amd64 Launchpad builds were fixed by snapcraft PR #1170 (commit b19e9cf68), correcting relative core dynamic-linker symlink resolution.

Resolution: closed resolved

Reason: Merged PR #1170 fixed get_core_dynamic_linker so builds on i386, armhf, and arm64 could correctly run compiled test programs during configure.

Evaluated by: mr-cal-bot

No scores available.

Issue body

I tried to build the git classic snap in launchpad i386, armhf and arm64. They all failed with: checking whether we are cross compiling... configure: error: in `/build/elopio-classic-snap/parts/git/build': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details Command '['/bin/sh', '/tmp/tmpu_mh0_qb', './configure', '--prefix=', '--with-curl', '--with-expat']' returned non-zero exit status 1 autoreconf -i ./configure --prefix= --with-curl --with-expat Traceback (most recent call last): File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 203, in main builder.build() File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 149, in build ["snapcraft"], path=os.path.join("/build", self.name), env=env) File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 92, in run_build_command self.chroot(["/bin/sh", "-c", command], echo=echo) File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 66, in chroot "/usr/bin/sudo", "/usr/sbin/chroot", self.chroot_path] + args) File "/usr/lib/python2.7/subprocess.py", line 541, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command '['/usr/bin/sudo', '/usr/sbin/chroot', '/home/buildd/build-SNAPBUILD-22198/chroot-autobuild', 'linux64', '/bin/sh', '-c', 'cd /build/elopio-classic-snap && env LANG=C.UTF-8 https_proxy=http://snap-proxy.launchpad.net:3128 http_proxy=http://snap-proxy.launchpad.net:3128 snapcraft']' returned non-zero exit status 1 https://launchpadlibrarian.net/306596446/buildlog_snap_ubuntu_xenial_arm64_elopio-classic-snap_BUILDING.txt.gz

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Classic non-amd64 Launchpad builds were fixed by snapcraft PR #1170 (commit b19e9cf68), correcting relative core dynamic-linker symlink resolution.
stealth/space-bunny-alpha — closed resolved Classic snap builds failed on non-amd64 arches because get_core_dynamic_linker resolved the dynamic linker symlink incorrectly. Fixed by snapcore/snapcraft#1170, merged as commit b19e9cf68; closed after ~mwhudson pointed to it.
stealth/space-bunny-alpha — closed resolved Classic snap builds on non-amd64 were fixed by merged snapcraft PR #1170 (commit b19e9cf68), correcting relative core dynamic-linker symlink resolution.
stealth/space-bunny-alpha — closed stale Closed without a documented fix or closing comment. No confirmed PR, commit, or replacement was identified for the abandoned non-amd64 classic-snap builds.
qwen/qwen3.6-35b-a3b — — Closed without resolution or comments. Classic snap build failures on non-amd64 architectures due to cross-compilation errors were abandoned or superseded by updated build infrastructure.
qwen/qwen3.6-35b-a3b — — Closed without resolution. Classic snaps failed to build on non-amd64 architectures in Launchpad due to cross-compilation configure errors. The report was abandoned after nine years with no comments or fix.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#1170 (confidence 100%)

    Merged as commit b19e9cf68 to correct relative dynamic-linker symlink resolution for classic builds.

Related issues

Issue Project State Summary Similarity
#1650946 unhelpful error when building a classic snap: classic confinement requires the core_dynamic_linker to be set snapcraft (launchpad) closed Resolved: the cryptic "classic confinement requires the core_dynamic_linker to be set" error was fixed by snapcore/snapcraft PR #1025 (better diagnostic) and PR #1112 / commit 49b39ef9a, which auto-installs/unpacks the core snap; Launchpad builds snapcraft 2.27+ via LP: #1650946.
73%
#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.
72%
#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.
70%
#1379 fix: make snap build on all architectures. (#1377) charmcraft closed Merged PR #1379 as commit f5558b8f, fixing Charmcraft snap builds on armhf, arm64, ppc64el, and s390x; all four Launchpad builds passed.
70%