snapcraft failed to build with cleanbuild on 18.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Expired
|
Undecided
|
Unassigned |
Bug Description
Posted and had some discussions on https:/
I also encountered the similar the issue when I used snapcraft to create a uc18 gadget for arm64:
$ snapcraft cleanbuild --target-arch=arm64
Setting target machine to 'arm64'
Creating snapcraft-
Starting snapcraft-
...
You need multipass installed to build snaps which use the base keyword.
Would you like to install it now? [y/N]: y
snapd is not logged in, snap install commands will use sudo
multipass (beta) 2018.12.1 from Canonical✓ installed
Channel latest/beta for multipass is closed; temporarily forwarding to beta.
Waiting for multipass...
Setting target machine to 'arm64'
Launching a VM.
launch failed: modprobe: ERROR: ../libkmod/
modprobe: FATAL: Module msr not found in directory /lib/modules/
An error occurred when trying to launch the instance with 'multipass': returned exit code 2.
Ensure that 'multipass' is setup correctly and try again.
Error: not found
Stopping local:snapcraft
An error occurred when trying to copy files using 'lxd': returned exit code 1
I tried to install mulitpass snap on native system, and it did work with launch. However, I'm not sure why reported "msr module missing" during snapcraft.
There are some information provided:
$ snapcraft --version
snapcraft, version 2.43.1+18.4
$ snap --version
snap 2.36.3
snapd 2.36.3
series 16
ubuntu 18.04
kernel 4.15.0-1030-oem
$ lsmod | grep msr
msr 16384 0
$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.36.3 6130 stable canonical✓ core
gnome-3-26-1604 3.26.0 74 stable/… canonical✓ -
gnome-calculator 3.30.1 260 stable/… canonical✓ -
gnome-characters 3.30.0 139 stable/… canonical✓ -
gnome-logs 3.30.0 45 stable/… canonical✓ -
gnome-system-
gtk-common-themes 0.1-4-g88bc1b2 818 stable/… canonical✓ -
hw-probe 1.4-10 153 stable linuxhw -
multipass 2018.12.1 572 beta canonical✓ classic
ubuntu-image 1.4+snap3 104 stable canonical✓ classic
$ multipass launch
Launched: full-ribbonfish
$ multipass list
Name State IPv4 Release
full-ribbonfish RUNNING 10.127.219.211 Ubuntu 18.04 LTS
$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
If "cleanbuild" option relies on multipass or lxd, how to deal with this case?
description: | updated |
we do not support x-compilation in build environments yet, mind trying with --destructive-mode?