Snapcraft fails to strip go binaries on arm

Bug #1569280 reported by Olivier - interfaSys
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Critical
Kyle Fazzari

Bug Description

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

Revision history for this message
Olivier - interfaSys (olivier-interfasys) wrote :

I can confirm that this is not a builder issue as it managed to build an amd64 image just fine.

description: updated
description: updated
Revision history for this message
Olivier - interfaSys (olivier-interfasys) wrote :

This is a Snapcraft bug, confirmed by @kyrofa

Changed in snappy:
status: New → Confirmed
Kyle Fazzari (kyrofa)
affects: snappy → snapcraft
Changed in snapcraft:
status: Confirmed → In Progress
importance: Undecided → Critical
assignee: nobody → Kyle Fazzari (kyrofa)
milestone: none → 2.8
Revision history for this message
Kyle Fazzari (kyrofa) wrote :
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → 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.