snapcraft in edge channel (2.39.2+git46.c22d7e2) fails to cross-compile kernel

Bug #1757094 reported by Alfonso Sanchez-Beato
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
High
Sergio Schvezov

Bug Description

Cross-compiling a kernel snap using snapcraft in edge channel fails. Installing the one in the stable channel works though. This is in artful.

$ /snap/bin/snapcraft --target-arch=armhf
Setting target machine to 'armhf'
Cross compiling kernel target 'arm'
Skipping pull firmware (already ran)
Skipping build firmware (already ran)
Skipping stage firmware (already ran)
Skipping pull kernel (already ran)
Skipping build kernel (already ran)
Skipping stage kernel (already ran)
Priming firmware
Unable to determine library dependencies for '/home/abeato/src/tillamook/linux/prime/firmware/ath6k/AR6004/hw3.0/abtfilt-sf'
Unable to determine library dependencies for '/home/abeato/src/tillamook/linux/prime/firmware/ath10k/Qcmbr-hfp'
Unable to determine library dependencies for '/home/abeato/src/tillamook/linux/prime/firmware/ec21/quectel-CM-hf'
Unable to determine library dependencies for '/home/abeato/src/tillamook/linux/prime/firmware/ec21/quectel-CM-sf'
Unable to determine library dependencies for '/home/abeato/src/tillamook/linux/prime/firmware/ath10k/Qcmbr-sfp'
Unable to determine library dependencies for '/home/abeato/src/tillamook/linux/prime/firmware/ath6k/AR6004/hw3.0/abtfilt-hf'
Cannot find the linker to use for the target base 'core'.
Please verify that the linker exists at the expected path '/snap/core/current/lib/ld-linux-armhf.so.3' and try again. If the linker does not exist contact the author of the base (run `snap info core` to get information for this base).

$ snap info snapcraft
name: snapcraft
summary: easily create snaps
publisher: canonical
contact: <email address hidden>
license: unknown
description: |
  Snapcraft aims to make upstream developers' lives easier and as such is not a
  single toolset, but instead is a collection of tools that enable the natural
  workflow of an upstream to be extended with a simple release step into Snappy
  enabled system.
snap-id: vMTKRaLjnOJQetI78HjntT37VuoyssFE
commands:
  - snapcraft
tracking: edge
installed: 2.39.2+git46.c22d7e2 (1309) 43MB classic
refreshed: 2018-03-20 05:09:48 +0100 CET
channels:
  stable: 2.39.2 (1177) 46MB classic
  candidate: ↑
  beta: ↑
  edge: 2.39.2+git46.c22d7e2 (1309) 43MB classic

Revision history for this message
Oliver Grawert (ogra) wrote :

beyond the standard kernel stuff the snapcraft.yaml
has the following firmware part
(seems this is what snapcraft stumbles over):

  firmware:
    plugin: nil
    source: <url to customer git tree for pre-compiled firmware binaries>
    install: |
      cp -a firmware $SNAPCRAFT_PART_INSTALL/

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Using artful is wrong, but we will improve this check

Changed in snapcraft:
importance: Undecided → High
status: New → In Progress
assignee: nobody → Sergio Schvezov (sergiusens)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.