← Back to issue list

Cannot build snaps in a 32-bit armhf container when running an arm64 kernel

View original Launchpad issue

Metadata

Project
snapcraft
Number
#1987627
Type
issue
State
open
Author
~itrue
Labels
Created
2022-08-25 09:06:42.903084+00:00
Updated
2022-08-25 09:09:19.096415+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

Running Snapcraft inside of an armhf LXD container running on an arm64 host produces the following error: --- $ sudo snapcraft --destructive-mode Traceback (most recent call last): File "/snap/snapcraft/8062/bin/snapcraft", line 8, in <module> sys.exit(run()) File "/snap/snapcraft/8062/lib/python3.8/site-packages/snapcraft/cli.py", line 186, in run _run_dispatcher(dispatcher) File "/snap/snapcraft/8062/lib/python3.8/site-packages/snapcraft/cli.py", line 175, in _run_dispatcher dispatcher.run() File "/snap/snapcraft/8062/lib/python3.8/site-packages/craft_cli/dispatcher.py", line 419, in run return self._loaded_command.run(self._parsed_command_args) File "/snap/snapcraft/8062/lib/python3.8/site-packages/snapcraft/commands/lifecycle.py", line 235, in run super().run(parsed_args) File "/snap/snapcraft/8062/lib/python3.8/site-packages/snapcraft/commands/lifecycle.py", line 108, in run parts_lifecycle.run(self.name, parsed_args) File "/snap/snapcraft/8062/lib/python3.8/site-packages/snapcraft/parts/lifecycle.py", line 193, in run _expand_environment( File "/snap/snapcraft/8062/lib/python3.8/site-packages/snapcraft/parts/lifecycle.py", line 513, in _expand_environment info = craft_parts.ProjectInfo( File "/snap/snapcraft/8062/lib/python3.8/site-packages/craft_parts/infos.py", line 88, in __init__ self._set_machine(arch) File "/snap/snapcraft/8062/lib/python3.8/site-packages/craft_parts/infos.py", line 264, in _set_machine raise errors.InvalidArchitecture(self._host_arch) craft_parts.errors.InvalidArchitecture: Architecture 'armv8l' is not supported. Make sure the architecture name is correct. --- Expected behavious: This should build an armhf snap, but instead it fails out due to the architecture detection. System information: $ dpkg --print-architecture armhf $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04 LTS Release: 22.04 Codename: jammy $ snapcraft version snapcraft 7.1.1 $ uname -m armv8l

Evaluation history

No evaluation history available.