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
I'm on leave for a couple of days so won't be able to investigate further, but this looks like a snapcraft bug to me rather than a Launchpad bug. Things I'd suggest investigating using an instrumented version of snapcraft:
* What does config.log say? A modified autotools plugin could dump out that file on failure so that we could see the actual error message.
* Is snapcraft actually downloading the core snap for the correct architecture?
* Is snapcraft setting up the core dynamic linker and the core library paths to point to the right place?