← Back to issue list

InvalidArchitecture: Architecture ‘armv8l’ is not supported

View original Github issue

Metadata

Project
craft-parts
Number
#696
Type
issue
State
closed
Author
sergey-borovkov
Labels
Created
Updated
Closed

Current evaluation

Fixed an InvalidArchitecture error for 'armv8l' during armhf snap builds in aarch64/armhf LXC environments. Resolved via pull request #697, which updated architecture detection to correctly recognize the armv8l identifier.

Suggested action:

No scores available.

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

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Fixed an InvalidArchitecture error for 'armv8l' during armhf snap builds in aarch64/armhf LXC environments. Resolved via pull request #697, which updated architecture detection to correctly recognize the armv8l identifier.
qwen/qwen3.6-35b-a3b
Staleness: 92
Complexity: 65
Confidence: 85
Support Request: 10
needs triage InvalidArchitecture error when building armhf snaps in armhf LXC containers on aarch64 hosts. Reported 847 days ago, acknowledged by auto-bot, but lacks maintainer labels or human assessment.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 45
Confidence: 75
Support Request: 20
close stale Unresolved bug where snapcraft 7.5.5 fails to recognize armv8l architecture in an armhf LXC container on aarch64 hardware. Open for over two years with no maintainer response.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 40
Confidence: 85
Support Request: 10
close stale Snapcraft raises InvalidArchitecture for armv8l when building armhf snaps inside an armhf LXC container on aarch64. Open for 465 days with an internal Jira ticket. Needs triage and a fix to map armv8l to supported architectures.

Update history

Date Change
closed

Related issues

Issue Project State Summary Similarity
#655 "Architecture not supported" error in a armhf container on arm64 host craft-parts open Snapcraft crashes with InvalidArchitecture 'armv8l' when run in an armhf container on an arm64 host. The bug is in craft-parts' architecture mapping. Fixed in craft-parts PR #697 which added armv8l to the platform machine variations map.
78%
#1987627 Cannot build snaps in a 32-bit armhf container when running an arm64 kernel snapcraft (launchpad) closed Snapcraft failed to build armhf snaps in armhf containers on arm64 hosts due to unsupported armv8l architecture detection. The issue was resolved in Snapcraft 9.1 by adding native armv8l support, enabling successful builds in this configuration.
72%