← Back to issue list

Snapcraft fails to strip go binaries on arm

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1569280
Type
issue
State
closed
Author
~olivier-interfasys
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action:

No scores available.

Issue body

This is the snapcraft part ```   mdns-publisher:     plugin: go     go-packages: [github.com/kyrofa/mdns-publisher] ``` and this is the result when bulding for arm on Launchpad ``` Stripping mdns-publisher Command '['/bin/sh', '/tmp/tmpoey0zv3q', 'ldd', b'/build/owncloud- snap/snap/bin/mdns-publisher']' returned non-zero exit status 1 Traceback (most recent call last):   File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 195, in main     builder.build()   File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 141, in build     ["snapcraft"], path=os.path.join("/build", self.name))   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 540, in check_call     raise CalledProcessError(retcode, cmd) CalledProcessError: Command '['/usr/bin/sudo', '/usr/sbin/chroot', '/home/buildd/build-SNAPBUILD-541/chroot-autobuild', 'linux32', '/bin/sh', '-c', 'cd /build/owncloud-snap && env LANG=C.UTF-8 snapcraft']' returned non-zero exit status 1 ``` Works fine when compiling locally on amd64

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b 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.
qwen/qwen3.6-35b-a3b Abandoned. The report detailed snapcraft failing to strip Go binaries on ARM during Launchpad builds, triggering an ldd error. Closed without comments, patches, or resolution.
qwen/qwen3.6-35b-a3b Closed without resolution. The ARM Go binary stripping failure in Snapcraft was abandoned, as no fix, workaround, or discussion was recorded.
qwen3.6-35b-a3b-mtp-q6 Closed without resolution due to inactivity. Snapcraft fails to strip Go binaries on ARM during Launchpad builds, causing an ldd error. Unaddressed.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1553020 snapcraft-examples godd build fails on armhf snapcraft (launchpad) closed Building the godd snap on armhf failed due to Go integer overflow errors. The report was closed without comments or a fix, indicating it was abandoned.
75%
#1983009 Snapcraft 7.1.0 fails to find stage package when cross-compiling snapcraft (launchpad) closed Closed. Snapcraft 7.1.0 fails to find stage packages like bluez when cross-compiling from amd64 to arm64/armhf, breaking builds. Issue closed without a provided resolution or fix.
74%
#1570414 Snapcraft doesn't check if cross-compiling before trying to install necessary tools snapcraft (launchpad) closed Closed without resolution or comments, likely abandoned or superseded. Snapcraft failed to conditionally install cross-compilation tools, triggering armhf build errors.
73%
#1907721 Snapcraft broken on ARM64 snapcraft (launchpad) closed Closed without comments. No fix or merge was applied. The ARM64 Multipass QEMU error and YAML !PrimeState deserialization bug were likely resolved by upstream Snapcraft updates or abandoned.
73%
#1511447 snapcraft stage does not work with Go and Launchpad snapcraft (launchpad) closed Closed without resolution due to inactivity. The snapcraft stage failure with the Go plugin and Launchpad source URLs remains unresolved. The issue was likely superseded by Go modules and deprecated Launchpad git hosting.
72%
#5219 Snapcraft unable to compile ARM64 kernel snapcraft open Cross-compiling an ARM64 kernel with snapcraft 7.5.8/8.5.1 fails when the kernel plugin runs 'apt-get download snapd:arm64' for snap bootstrap, because the Focal build environment has no snapd arm64 candidate. No maintainer response; reporter reproduced the apt error on Ubuntu 20/22 in Jan 2025.
72%
#1641123 snapcraft does not properly detect the architecture when kernel is 64 bits but userspace is 32 snapcraft (launchpad) closed Closed without resolution. Snapcraft incorrectly identified arm64 architecture in 64-bit kernel/32-bit userspace chroots, generating mismatched snaps. The report was abandoned due to inactivity.
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.
71%
#1788654 snapcraft cleanbuild doesn't work with cross-compile stage-packages snapcraft (launchpad) closed Closed without resolution. Snapcraft cleanbuild fails during cross-compilation because it does not automatically configure multi-arch package support inside the container. No fix was implemented, and the report appears abandoned.
71%
#5638 Snapcraft fails to run on 32bit userspace container on 64bit ARM kernel. snapcraft closed Closed and moved to internal tracking (SNAPCRAFT-1190). No fix merged; the proposed architecture mapping remains unimplemented.
71%