← Back to issue list

Building for arm not possible on Raspberry Pi 3 (32 bit)

View original Github issue

Metadata

Project
rockcraft
Number
#319
Type
issue
State
open
Author
ghislainbourgeois
Labels
—
Created
Updated
Closed
—

Current evaluation

32-bit ARM builds on Raspberry Pi 3 now use the Debian architecture name armhf; PR #380/commit 340064d2 resolved the obsolete arm/armv7l host compatibility error.

Suggested action: close resolved

Reason: Commit 340064d2 (canonical/rockcraft#380), titled "feat: use debian arch in platforms," changed platform identifiers to Debian architectures. The current architecture map and schema support armhf, snap/snapcraft.yaml declares an armhf build target, and the 1.16 release notes confirm restored armhf availability.

Evaluated by: mr-cal-bot

Impact: 42 Quick Win: 25 Complexity: 35 Confidence: 96 Actionability: 91

Issue body

### Bug Description Building a ROCK for arm does not work on a Raspberry Pi 3 running the 32 bit version of Ubuntu 22.04. Rockcraft simply refuses to build with the following error message: ``` Error for platform entry 'arm': this machine's architecture (armv7l) is not compatible with the ROCK's target architecture. Can only build a ROCK for arm if the host is compatible with ['arm']. ``` ### To Reproduce ``` rockcraft init sed -i "s/amd64/arm/" rockcraft.yaml rockcraft --verbose ``` ### Environment Raspberry Pi 3 Model B Ubuntu Server 22.04.2 LTS ### rockcraft.yaml ```shell name: my-rock-name # the name of your ROCK base: ubuntu:22.04 # the base environment for this ROCK version: '0.1' # just for humans. Semantic versioning is recommended summary: Single-line elevator pitch for your amazing ROCK # 79 char long summary description: | This is my my-rock-name's description. You have a paragraph or two to tell the most important story about it. Keep it under 100 words though, we live in tweetspace and your description wants to look good in the container registries out there. license: GPL-3.0 # your application's SPDX license platforms: # The platforms this ROCK should be built on and run on arm: parts: my-part: plugin: nil ``` ### Relevant log output ```shell Error for platform entry 'arm': this machine's architecture (armv7l) is not compatible with the ROCK's target architecture. Can only build a ROCK for arm if the host is compatible with ['arm']. ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 42
Quick Win: 25
Complexity: 35
Confidence: 96
Actionability: 91
close resolved 32-bit ARM builds on Raspberry Pi 3 now use the Debian architecture name armhf; PR #380/commit 340064d2 resolved the obsolete arm/armv7l host compatibility error.
qwen/qwen3.6-35b-a3b
Impact: 10
Quick Win: 7
Complexity: 10
Confidence: 85
Actionability: 80
close not a bug User reported inability to build for 32-bit ARM on Raspberry Pi 3 using platform label 'arm'. Error message no longer exists in current codebase; correct label is 'armhf'.
qwen/qwen3.8-27b
Impact: 20
Quick Win: 18
Staleness: 75
Complexity: 10
Confidence: 80
Support Request: 85
close not a bug User tried to build a ROCK for 'arm' on a Raspberry Pi 3 (32-bit, armv7l) but rockcraft rejected it because 'arm' is not a valid platform name. The correct Debian architecture name for 32-bit ARM is 'armhf', as defined in rockcraft/architectures.py. The maintainer suggested 'armv7l' but that is also incorrect. This is a usage/configuration issue, not a bug.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 30
Confidence: 60
Support Request: 40
needs triage Unlabelled report of an architecture compatibility error when building for 'arm' on 32-bit Raspberry Pi. Maintainer suggested 'armv7l' but issue remains unprioritized and inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 20
Confidence: 85
Support Request: 20
close stale Unresolved build failure on 32-bit ARM due to architecture compatibility check. Inactive for over 3 years with no follow-up after maintainer requested a test.
qwen3.6-35b-a3b-mtp-q6
Staleness: 92
Complexity: 40
Confidence: 85
Support Request: 15
close stale Rockcraft refuses to build for arm on Raspberry Pi 3 (32-bit) due to host architecture compatibility checks. Maintainer provided a potential workaround but received no follow-up in over 10 months.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/rockcraft#380 (confidence 98%)

    PR #380 introduced Debian platform architecture names; armhf now maps to ARM v7 and supersedes the reported arm/armv7l mismatch.

Related issues

No related issues found above the similarity threshold.