snapcraft failed to build with cleanbuild on 18.04

Bug #1811208 reported by Woodrow Shen
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Posted and had some discussions on

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-loudly-fresh-mole
    Starting snapcraft-loudly-fresh-mole
    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/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.15.0-1030-oem/modules.dep.bin'
    modprobe: FATAL: Module msr not found in directory /lib/modules/4.15.0-1030-oem
    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-loudly-fresh-mole
    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-monitor 3.30.0 57 stable/… canonical✓ -
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 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
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

we do not support x-compilation in build environments yet, mind trying with --destructive-mode?

Changed in snapcraft:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Snapcraft because there has been no activity for 60 days.]

Changed in snapcraft:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers