← Back to issue list

`armv8l` architecture is not supported

View original Github issue

Metadata

Project
craft-platforms
Number
#243
Type
issue
State
closed
Author
zhijie-yang
Labels
—
Created
Updated
Closed

Current evaluation

armv8l host support added: craft-platforms PR #244 (commit 8ccf286) maps armv8l to armhf/armv7l, released in 0.12.0, closing the issue.

Resolution: closed resolved

Reason: The report was fixed by craft-platforms PR #244, merged as commit 8ccf286, which adds armv8l host detection mapping to armhf/armv7l; the fix shipped in craft-platforms 0.12.0. The same problem in craft-parts was tracked separately as canonical/craft-parts#696 (fixed by craft-parts PR #697, commit 83679d41, released in 1.30.0).

Evaluated by: mr-cal-bot

No scores available.

Issue body

`craft-platforms` errors out when building on a machine that returns `armv8l` when calling `platform.machine()` Full log: ``` 2026-07-05 20:39:15.556 ################################################## 2026-07-05 20:39:15.556 # Builder Agent info: version: '1.11' # 2026-07-05 20:39:15.556 ################################################## 2026-07-05 20:39:15.556 2026-07-05 20:39:15.556 2026-07-05 20:39:15.556 [admin] mkdir -p /home/ubuntu/.ssh 2026-07-05 20:39:15.558 [admin] touch /home/ubuntu/.ssh/authorized_keys 2026-07-05 20:39:15.560 [admin] echo ${ADMIN_SSH_PUBLIC_KEY} >> /home/ubuntu/.ssh/authorized_keys 2026-07-05 20:39:15.560 Starting proxy setup... 2026-07-05 20:39:15.560 Installing MITM certificate... 2026-07-05 20:39:15.580 Updating certificates in /etc/ssl/certs... 2026-07-05 20:39:16.605 rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL 2026-07-05 20:39:16.608 rehash: warning: skipping duplicate certificate in local-ca.pem 2026-07-05 20:39:16.612 1 added, 0 removed; done. 2026-07-05 20:39:16.612 Running hooks in /etc/ca-certificates/update.d... 2026-07-05 20:39:16.613 done. 2026-07-05 20:39:16.617 Setting up local proxy server... 2026-07-05 20:39:16.718 Configuring proxy environment variables... 2026-07-05 20:39:16.718 Installing git proxy... 2026-07-05 20:39:16.719 Installing apt proxy... 2026-07-05 20:39:16.719 Clearing apt cache... 2026-07-05 20:39:16.757 Configuring snapd proxy... 2026-07-05 20:39:17.563 To start your first container, try: lxc launch ubuntu:24.04 2026-07-05 20:39:17.563 Or for a virtual machine: lxc launch ubuntu:24.04 --vm 2026-07-05 20:39:17.563 2026-07-05 20:39:17.692 Restarting snapd... 2026-07-05 20:39:20.966 Restarting lxd... 2026-07-05 20:39:23.061 2026-07-05T20:39:23Z INFO Waiting for "snap.lxd.daemon.service" to stop. 2026-07-05 20:39:23.566 Restarted. 2026-07-05 20:39:23.569 Proxy setup completed successfully. 2026-07-05 20:39:23.569 [admin] git clone --depth 1 -b 'r4' --single-branch https://<REDACTED>/rockcraft/ubuntu/26.04_edge /tmp/builder_agent/build 2026-07-05 20:39:23.589 Cloning into '/tmp/builder_agent/build'... 2026-07-05 20:39:25.009 Note: switching to 'fe02efe7f446faf8f9d4ae9ec1aa5f381803909c'. 2026-07-05 20:39:25.009 2026-07-05 20:39:25.009 You are in 'detached HEAD' state. You can look around, make experimental 2026-07-05 20:39:25.009 changes and commit them, and you can discard any commits you make in this 2026-07-05 20:39:25.009 state without impacting any branches by switching back to a branch. 2026-07-05 20:39:25.009 2026-07-05 20:39:25.009 If you want to create a new branch to retain commits you create, you may 2026-07-05 20:39:25.009 do so (now or later) by using -c with the switch command. Example: 2026-07-05 20:39:25.009 2026-07-05 20:39:25.009 git switch -c <new-branch-name> 2026-07-05 20:39:25.009 2026-07-05 20:39:25.009 Or undo this operation with: 2026-07-05 20:39:25.009 2026-07-05 20:39:25.009 git switch - 2026-07-05 20:39:25.009 2026-07-05 20:39:25.009 Turn off this advice by setting config variable advice.detachedHead to false 2026-07-05 20:39:25.009 2026-07-05 20:39:25.011 [command] sudo snap install --beta rockcraft --classic 2026-07-05 20:39:42.697 rockcraft (beta) 1.19.0 from Canonical** installed 2026-07-05 20:39:42.701 [command] sudo snap install --beta <REDACTED> 2026-07-05 20:39:45.606 <REDACTED> (beta) 0.0.post425+g725ba97a4 from Canonical** installed 2026-07-05 20:39:45.609 [command] rockcraft pack 2026-07-05 20:39:49.697 Launching managed ubuntu 26.04 instance... 2026-07-05 20:39:50.310 Creating new instance from remote 2026-07-05 20:39:58.073 Setting up instance 2026-07-05 20:39:58.199 Configuring proxy in instance 2026-07-05 20:39:58.199 Installing certificate 2026-07-05 20:40:00.865 Configuring Apt 2026-07-05 20:40:01.314 Refreshing Apt package listings 2026-07-05 20:40:08.530 Configuring pip 2026-07-05 20:42:44.132 Starting instance 2026-07-05 20:42:54.424 Finalizing instance configuration 2026-07-05 20:42:54.424 Configuring snapd 2026-07-05 20:43:02.170 Traceback (most recent call last): 2026-07-05 20:43:02.170 File "/snap/rockcraft/4547/bin/rockcraft", line 12, in <module> 2026-07-05 20:43:02.170 sys.exit(run()) 2026-07-05 20:43:02.170 ^^^^^ 2026-07-05 20:43:02.171 File "/snap/rockcraft/4547/lib/python3.12/site-packages/rockcraft/cli.py", line 51, in run 2026-07-05 20:43:02.171 return app.run() 2026-07-05 20:43:02.171 ^^^^^^^^^ 2026-07-05 20:43:02.171 File "/snap/rockcraft/4547/lib/python3.12/site-packages/craft_application/application.py", line 685, in run 2026-07-05 20:43:02.172 self._initialize_craft_parts() 2026-07-05 20:43:02.172 File "/snap/rockcraft/4547/lib/python3.12/site-packages/craft_application/application.py", line 821, in _initialize_craft_parts 2026-07-05 20:43:02.172 self._set_plugin_group() 2026-07-05 20:43:02.172 File "/snap/rockcraft/4547/lib/python3.12/site-packages/craft_application/application.py", line 803, in _set_plugin_group 2026-07-05 20:43:02.172 build_plan = self.services.get("build_plan").plan() 2026-07-05 20:43:02.172 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2026-07-05 20:43:02.172 File "/snap/rockcraft/4547/lib/python3.12/site-packages/craft_application/services/buildplan.py", line 67, in plan 2026-07-05 20:43:02.173 build_on=[craft_platforms.DebianArchitecture.from_host()], 2026-07-05 20:43:02.173 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2026-07-05 20:43:02.173 File "/snap/rockcraft/4547/lib/python3.12/site-packages/craft_platforms/_architectures.py", line 64, in from_host 2026-07-05 20:43:02.173 return cls.from_machine(platform.machine()) 2026-07-05 20:43:02.173 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2026-07-05 20:43:02.173 File "/snap/rockcraft/4547/lib/python3.12/site-packages/craft_platforms/_architectures.py", line 59, in from_machine 2026-07-05 20:43:02.173 return cls(_ARCH_TRANSLATIONS_PLATFORM_TO_DEB.get(arch.lower(), arch.lower())) 2026-07-05 20:43:02.173 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2026-07-05 20:43:02.173 File "/snap/rockcraft/current/usr/lib/python3.12/enum.py", line 757, in __call__ 2026-07-05 20:43:02.174 return cls.__new__(cls, value) 2026-07-05 20:43:02.174 ^^^^^^^^^^^^^^^^^^^^^^^ 2026-07-05 20:43:02.174 File "/snap/rockcraft/current/usr/lib/python3.12/enum.py", line 1171, in __new__ 2026-07-05 20:43:02.174 raise ve_exc 2026-07-05 20:43:02.174 ValueError: 'armv8l' is not a valid DebianArchitecture 2026-07-05 20:43:07.279 Failed to run rockcraft in instance 2026-07-05 20:43:07.286 Full execution log: '/root/.local/state/rockcraft/log/rockcraft-20260705-203948.693794.log' 2026-07-05 20:43:07.286 Warning: 'entrypoint-command' is defined. This operation will result in a rock with an atypical OCI Entrypoint. While that might be acceptable for testing and personal use, it shall require prior approval before submitting to a Canonical registry namespace. 2026-07-05 20:43:07.549 Error executing command: exit status 1 ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved armv8l host support added: craft-platforms PR #244 (commit 8ccf286) maps armv8l to armhf/armv7l, released in 0.12.0, closing the issue.
stealth/space-bunny-alpha — closed resolved Added armv8l host detection by mapping it to armhf/armv7l in craft-platforms#244 (commit 8ccf286), released in version 0.12.0.
qwen/qwen3.6-35b-a3b — — Closed as a duplicate. The armv8l architecture mapping error was resolved upstream in craft-parts, addressing the ValueError during build initialization.
qwen3.6-35b-a3b-mtp-q6
Staleness: 5
Complexity: 30
Confidence: 95
Support Request: 5
needs triage Report of craft-platforms failing with ValueError on armv8l architecture during build. Unlabelled and awaiting maintainer triage.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/craft-platforms#244 (confidence 95%)

    Merged PR adding armv8l mapping in _architectures, commit 8ccf286, released in 0.12.0.

  • Duplicate Of: canonical/craft-parts#696 (confidence 80%)

    Reporter linked it as the equivalent craft-parts issue for armv8l InvalidArchitecture, fixed separately by craft-parts PR #697.

Related issues

Issue Project State Summary Similarity
#1173 `armv8l` architecture not suppored craft-application closed armv8l hosts failed at build-stage platform matching. Fixed by merged PR #1174 (commit 7d75d877), which maps host arch armv8l to armhf; shipped in craft-application 7.2.1.
87%
#244 fix: add support for armv8l craft-platforms merged Merged PR #244 as commit 8ccf286, adding armv8l-to-armhf/armv7l architecture mapping and fixing #243; released in craft-platforms 0.12.0.
82%
#6394 feat: support armv8l snapcraft merged PR #6394 merged as commit e51640488, adding an armv8l-to-armv7l architecture mapping (aligned with craft-parts #697 and craft-platforms #244), completing armv8l support and fixing issue #5638.
78%
#696 InvalidArchitecture: Architecture ‘armv8l’ is not supported craft-parts closed Fixed by adding armv8l architecture support: PR #697 merged as commit 83679d41, mapping armv8l to armv7l/armhf in craft_parts/infos.py. Released in craft-parts 1.30.0.
76%
#1174 fix: add `armv8l` support craft-application merged Merged PR #1174 (commit 7d75d877) added 'armv8l' to the platform→deb/snap arch translation map in craft_application/util/platforms.py, mapping such hosts to 'armhf'. Closes #1173; released in 7.2.1.
76%