← 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

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.

Suggested action:

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
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

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1660302 foreign architecture builds doesn't work with classic snaps snapcraft (launchpad) open Cross-arch builds (--target-arch) of classic snaps fail because the build environment lacks the core snap. Reported 2016 against snapcraft 2.x; 0 comments, no maintainer response; codebase since fully rewritten.
77%
#1736861 classic snap fails to build with "cannot find section" snapcraft (launchpad) closed Closed without comments or resolution. The snapcraft 2.37 regression causing patchelf failures in classic snaps was abandoned or resolved in a subsequent release.
73%
#2149 Snap build breaking on non-amd64 architectures charmcraft closed Closed without a public fix. The snap build failure on non-amd64 architectures due to a missing libgit2 dependency was abandoned, with no resolution or code changes provided.
72%
#1737532 "snapcraft cleanbuild --target-arch=i386" produces amd64 executables snapcraft (launchpad) closed Closed without resolution. Cross-compilation for i386 via snapcraft cleanbuild continued producing amd64 binaries due to an incorrect container architecture and missing cross-compiler configuration.
72%
#1817288 snapcraft cleanbuild produces incorrect architecture snap snapcraft (launchpad) closed Abandoned and closed without resolution. The legacy mode cleanbuild multi-arch naming bug remains unfixed due to lack of activity and deprecation of legacy mode.
71%
#1569280 Snapcraft fails to strip go binaries on arm snapcraft (launchpad) closed Closed without resolution. Snapcraft failed to strip Go binaries on ARM during Launchpad builds, causing failures despite amd64 success. No fix or comments were provided.
70%