Hello,
I am trying to port a python (core18/20 base) snap to ARM platform (Beagle bone black running debian 10) and facing a couple of issues.
- Building the snap on ubuntu 18 machine with
run-on: armhf
forarchitectures
field does generate the snap for armhf but the snap fails to run withExec format error
. Looks like the runtime binaries and libraries are all packed for x86_64 instead ofarm-linux-gnueabihf
. - Building directly on the target does generate a snap with correct libraries and runtime packed, but running results in
segfault
writev(2, [{iov_base=" 2119:\t", iov_len=12}, {iov_base="__vdso_gettimeofday", iov_len=19}], 2 2119: __vdso_gettimeofday) = 31
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x1f} ---
+++ killed by SIGSEGV +++
error: signal: segmentation fault
Any idea on what could be wrong and how to properly build a python snap for ARM is appreciated.
$ snap --version
snap 2.49
snapd 2.49
series 16
debian 10
kernel 4.19.94-ti-r42
]
$ snapcraft --version
locale: Cannot set LC_CTYPE to default locale: No such file or directory
Locale not set! Snapcraft will temporarily use C.UTF-8
snapcraft, version 4.5.4
$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.49 10861 latest/stable canonicalâś“ core
core18 20210128 1989 latest/stable canonicalâś“ base
core20 20201210 906 latest/stable canonicalâś“ base
snapcraft 4.5.4 6125 latest/stable canonicalâś“ classic