Comment 4 for bug 1813634

Revision history for this message
Saeed (saeedmasoumi) wrote :

We are facing the same issue and it's critical to have it fixed please. I don't wanna introduce fragile hacks into build and deployment pipeline to fix such issues.

Command: snapcraft --target-arch armhf

Setting target machine to 'armhf'
Sorry, an error occurred in Snapcraft:
Traceback (most recent call last):
  File "/usr/bin/snapcraft", line 11, in <module>
    load_entry_point('snapcraft==2.43.1+18.4', 'console_scripts', 'snapcraft')()
  File "/usr/lib/python3/dist-packages/click/", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/", line 1043, in invoke
    return Command.invoke(self, ctx)
  File "/usr/lib/python3/dist-packages/click/", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3/dist-packages/snapcraft/cli/", line 93, in run
  File "/usr/lib/python3/dist-packages/click/", line 553, in forward
    return self.invoke(cmd, **kwargs)
  File "/usr/lib/python3/dist-packages/click/", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/snapcraft/cli/", line 136, in snap
    project = _execute(steps.PRIME, parts=[], **kwargs)
  File "/usr/lib/python3/dist-packages/snapcraft/cli/", line 34, in _execute
    project_config = project_loader.load_config(project)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/project_loader/", line 36, in load_config
    return Config(project)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/project_loader/", line 233, in __init__
  File "/usr/lib/python3/dist-packages/snapcraft/internal/project_loader/", line 55, in __init__
  File "/usr/lib/python3/dist-packages/snapcraft/internal/project_loader/", line 86, in _process_parts
    self.load_part(part_name, plugin_name, properties)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/project_loader/", line 206, in load_part
  File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/", line 79, in load_plugin
  File "/usr/lib/python3/dist-packages/snapcraft/", line 188, in enable_cross_compilation
    "to a different target architecture".format(
NotImplementedError: The plugin used by 'setup' does not support cross-compiling to a different target architecture

and the yaml looks like:

grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots

    command: bin/Blink
    daemon: simple
    refresh-mode: restart
    plugs: [gpio]

    plugin: python
    python-version: python3
    python-packages: [RPi.GPIO]
     - libbz2-1.0
     - liblzma5
     - libncursesw5
     - libtinfo5
     - zlib1g
     - libdb5.3

  - build-on: all
    run-on: armhf