base core20: wrong arch triplet
Metadata
Current evaluation
Wrong SNAPCRAFT_ARCH_TRIPLET for core20 build-on/run-on builds fixed by adding SNAPCRAFT_ARCH_BUILD_ON/BUILD_FOR and *_TRIPLET_BUILD_FOR envvars (PR #4313, commit 93a9d8170); follow-up #4332 (48bd0632f) errors on unevaluable multi-arch cases.
Resolution: closed resolved
Reason: Maintainer ~mr-cal closed the bug after merging snapcraft PR #4313 (commit 93a9d8170), which introduced SNAPCRAFT_ARCH_TRIPLET_BUILD_FOR for core20 parts; UX follow-up snapcraft#4314 was resolved by PR #4332 (48bd0632f).
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Wrong SNAPCRAFT_ARCH_TRIPLET for core20 build-on/run-on builds fixed by adding SNAPCRAFT_ARCH_BUILD_ON/BUILD_FOR and *_TRIPLET_BUILD_FOR envvars (PR #4313, commit 93a9d8170); follow-up #4332 (48bd0632f) errors on unevaluable multi-arch cases. | |
| qwen/qwen3.8-27b | — | closed resolved | Fixed in PR #4313 (commit 93a9d8170), which added build-on/build-for arch environment variables for core20 so SNAPCRAFT_ARCH_TRIPLET reflects the target arch instead of the host. UX follow-up tracked in #4314. | |
| stealth/space-bunny-alpha | — | closed stale | Closed without a recorded fix; later core20 build-for architecture variables were added in PR #4313 (93a9d8170). | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without comments; likely abandoned. Reported snapcraft incorrectly setting SNAPCRAFT_ARCH_TRIPLET during cross-architecture builds. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without a fix or resolution, likely abandoned due to inactivity. The report indicated Snapcraft incorrectly sets SNAPCRAFT_ARCH_TRIPLET when building on a mismatched host architecture. No comments or patches were submitted. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without comments or resolution, likely abandoned. The report detailed Snapcraft incorrectly setting SNAPCRAFT_ARCH_TRIPLET during cross-architecture builds. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. Snapcraft incorrectly set SNAPCRAFT_ARCH_TRIPLET based on the host architecture rather than the target. The report appears abandoned or superseded by the craft project, indicated by the craft-1498 label. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Abandoned. Closed without comments or resolution. SNAPCRAFT_ARCH_TRIPLET incorrectly matched the host architecture instead of the target during cross-arch builds. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcraft#4313
(confidence 95%)
Merged PR adding build-on/build-for arch and triplet environment variables for core20 (93a9d8170), cited in the closing comment
-
Related To:
snapcraft#4314
(confidence 90%)
Follow-up UX issue for erroring when build-for envvars cannot be evaluated, referenced in closing comment
-
Likely Fixed By:
snapcraft#4332
(confidence 80%)
PR closing #4314 (48bd0632f) errors when build-for arch variables cannot be evaluated
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4332 environment: error when build-for arch variable cannot be evaluated | snapcraft | merged | Merged PR #4332 (48bd0632f) now errors on unevaluable core20 SNAPCRAFT_ARCH_BUILD_FOR and SNAPCRAFT_ARCH_TRIPLET_BUILD_FOR variables instead of producing "None". | |
| #4313 environment: add build-on and build-for envvars for core20 | snapcraft | merged | Merged PR #4313 as 93a9d8170, adding core20 SNAPCRAFT build-on/build-for architecture and triplet environment variables plus tests. | |
| #1973376 SNAPCRAFT_ARCH_TRIPLET not usable with core22 base | snapcraft (launchpad) | closed | Closed without a code fix: core22 requires CRAFT_ARCH_TRIPLET instead of SNAPCRAFT_ARCH_TRIPLET; the reporter confirmed Snapcraft 7.0.2 builds successfully with the replacement. | |
| #4486 $CRAFT_ARCH_TRIPLET_BUILD_FOR doesn't work on core22 | snapcraft | closed | Fixed in Snapcraft 8: core22 app environment blocks now expand CRAFT_ARCH_TRIPLET_BUILD_FOR and CRAFT_ARCH_TRIPLET. | |
| #2009520 core18/20: inconsistent architecture parsing | snapcraft (launchpad) | closed | Superseded by snapcore/snapcraft#4340 and #4341. Core22+ overlapping build-on handling merged in #3821 (4876b53); core20 support was declined. | |
| #1999580 core22: wrong arch in snap.yaml when building for all archs | snapcraft (launchpad) | closed | Fixed in merged canonical/snapcraft#4150 (commit 77d3454d): core22 snap.yaml now records build-for (all) instead of the build-on architecture. | |
| #1862256 snapcraft should complain loudly when building base: core20 snap on i386 | snapcraft (launchpad) | closed | Closed as superseded: improved architecture parsing rejects unsupported core20/i386 builds, making a dedicated check unnecessary; snapcraft#4392 improved this handling. | |
| #3821 meta: architectures | snapcraft | merged | Merged core22 architecture support, including build-on/build-for handling, host and build-instance selection, and SNAPCRAFT_BUILD_FOR filtering, via commit 4876b53. | |
| #3414 project loader: export SNAPCRAFT_TARGET_ARCH in build environment | snapcraft | merged | Merged PR #3414 (commit ff2cd96bb) added SNAPCRAFT_TARGET_ARCH to the global build environment in set_global_environment() for core22, alongside SNAPCRAFT_ARCH_TRIPLET. | |
| #1943603 snapcraft --target-arch=i386 does not build i386 images, because core20 does not support i386 and yet the build starts and wastes time | snapcraft (launchpad) | open | Legacy Snapcraft accepted an unsupported core20/i386 target, wasted build time, and produced an amd64 snap; current validation excludes i386 and drops core20. |