← Back to issue list

InvalidArchitecture: Architecture ‘armv8l’ is not supported

View original Github issue

Metadata

Project
craft-parts
Number
#696
Type
issue
State
open
Author
sergey-borovkov
Labels
Created
2024-03-26 14:37:17+00:00
Updated
2025-03-11 14:28:33+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description I am trying to build an `armhf` snap on an aarch64 machine that runs armhf lxc container of Ubuntu. Getting the error from the title when trying to build the snap: ``` craft_parts.errors.InvalidArchitecture: Architecture 'armv8l' is not supported. Make sure the architecture name is correct. ``` See more details here: https://forum.snapcraft.io/t/invalidarchitecture-architecture-armv8l-is-not-supported/39455 ### To Reproduce 1. On aarch64 machine that supports running in armhf compatibility mode create lxc image with armhf OS. 2. For `architectures` field in snapcraft.yaml: ``` architectures: - build-on: armhf build-for: armhf ``` This error did happen without specifying the architectures field though. ### part yaml _No response_ ### Relevant log output ```shell root@octo-pi3:/var/octo-avenger# snapcraft snap --destructive-mode --verbosity=debug 2024-03-24 14:09:11.570 Starting Snapcraft 7.5.5 Traceback (most recent call last): File "/snap/snapcraft/11046/bin/snapcraft", line 8, in <module> sys.exit(run()) File "/snap/snapcraft/11046/lib/python3.8/site-packages/snapcraft/cli.py", line 256, in run _run_dispatcher(dispatcher, global_args) File "/snap/snapcraft/11046/lib/python3.8/site-packages/snapcraft/cli.py", line 229, in _run_dispatcher dispatcher.run() File "/snap/snapcraft/11046/lib/python3.8/site-packages/craft_cli/dispatcher.py", line 448, in run return self._loaded_command.run(self._parsed_command_args) File "/snap/snapcraft/11046/lib/python3.8/site-packages/snapcraft/commands/lifecycle.py", line 138, in run parts_lifecycle.run(self.name, parsed_args) File "/snap/snapcraft/11046/lib/python3.8/site-packages/snapcraft/parts/lifecycle.py", line 209, in run _expand_environment( File "/snap/snapcraft/11046/lib/python3.8/site-packages/snapcraft/parts/lifecycle.py", line 728, in _expand_environment info = craft_parts.ProjectInfo( File "/snap/snapcraft/11046/lib/python3.8/site-packages/craft_parts/infos.py", line 94, in __init__ self._set_machine(arch) File "/snap/snapcraft/11046/lib/python3.8/site-packages/craft_parts/infos.py", line 281, 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. ```

Evaluation history

No evaluation history available.