I am trying to build a snap for valgrind. The snap builds fine from amd but fails for arm64 with the following output:
EXPERIMENTAL* --target-arch for core20 enabled.
Snapcraft is running in directory 'snap'. If this is the snap assets directory, please run snapcraft from /home/builder/projects/snaps/hello.
Cleaning later steps and re-pulling utils ('stage-packages' property changed)
+ snapcraftctl pull
Building utils
+ snapcraftctl build
Staging utils
+ snapcraftctl stage
Priming utils
+ snapcraftctl prime
Failed to generate snap metadata: The specified command 'usr/bin/valgrind' defined in the app 'valgrind' does not exist.
Ensure that 'usr/bin/valgrind' is installed with the correct path.
I verified the location of where the valgrind binary is installed by installing valgrind on an arm64 via apt-get and it is in the location as specified in the snapcraft.yaml file, i.e., usr/bin/valgrind
My snapcraft.yaml file contents are as follows:
name: hello
base: core20
version: '2.10'
summary: valgrind
description: valgrind
grade: devel
confinement: devmode
layout:
/usr/local/bin:
bind: $SNAP/usr/local/bin
/usr/lib/valgrind:
bind: $SNAP/usr/lib/valgrind
/usr/include/valgrind:
bind: $SNAP/usr/include/valgrind
/usr/lib/x86_64-linux-gnu/valgrind:
bind: $SNAP/usr/lib/x86_64-linux-gnu/valgrind
/usr/libexec/valgrind:
bind: $SNAP/usr/libexec/valgrind
/usr/lib/debug:
bind: $SNAP/usr/lib/debug
apps:
valgrind:
command: usr/bin/valgrind
parts:
utils:
plugin: nil
source: .
stage-packages:
- to arm64:
- valgrind
Any idea why it fails to build? Thanks!