← Back to issue list

SNAPCRAFT_ARCH_TRIPLET not usable with core22 base

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1973376
Type
issue
State
closed
Author
~sdeziel
Labels
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Closed without resolution. The report details a core22 build failure where snapcraft rejects SNAPCRAFT_ARCH_TRIPLET in layout mount points during packing. Core20 remains compatible.

Suggested action:

No scores available.

Issue body

Building a snap using core22 as base fails when using $SNAPCRAFT_ARCH_TRIPLET (https://github.com/simondeziel/microceph/commit/bb1493b9506301106e7ea8aa969b048d55ee6d88): $ snapcraft Launching instance... Installed package repositories ... Executed parts lifecycle Generated snap metadata Cannot pack snap file: Command '['snap', 'pack', '--compression', 'xz', PosixPath('/root/prime')]' returned non-zero exit status 1. (error: cannot pack "/root/prime": cannot validate snap "microceph": layout "/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/ceph" uses invalid mount point: reference to unknown variable "$SNAPCRAFT_ARCH_TRIPLET") The same works when switching to the older core20 base as done in https://github.com/simondeziel/microceph/commit/816142c4491443724bdf6aa239f2a47c3cf7a1ff

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution. The report details a core22 build failure where snapcraft rejects SNAPCRAFT_ARCH_TRIPLET in layout mount points during packing. Core20 remains compatible.
qwen/qwen3.6-35b-a3b Closed without resolution. The issue reports $SNAPCRAFT_ARCH_TRIPLET causing snap pack failures with the core22 base. No fix was implemented or discussed, indicating the report was abandoned or superseded by base version changes.
qwen3.6-35b-a3b-mtp-q6 The $SNAPCRAFT_ARCH_TRIPLET variable fails during snap packing with the core22 base. The report was closed without resolution, fix, or comments, indicating it was abandoned.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1997752 base core20: wrong arch triplet snapcraft (launchpad) closed 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.
83%
#4486 $CRAFT_ARCH_TRIPLET_BUILD_FOR doesn't work on core22 snapcraft closed Resolved. The $CRAFT_ARCH_TRIPLET_BUILD_FOR substitution failure in core22 environment blocks was fixed in snapcraft 8. A maintainer confirmed the fix with a working test case demonstrating correct variable replacement.
78%
#4697 The partial organize operations of parts are missing snapcraft open Core20 cross-arch build: organize with ${SNAPCRAFT_ARCH_TRIPLET} misses files without --target-arch flag. Maintainer asked in Jan 2026 if still reproducible in Snapcraft 8; no response. Core20 has since been dropped.
75%
#1939713 snapcraft init create base: core18 snap snapcraft (launchpad) closed Closed without resolution. Snapcraft defaults were later updated to core20 or core22, superseding this report.
74%
#1866300 snapcraft fails to build core20 snap snapcraft (launchpad) closed Closed without a documented fix. The multipass hang and lxd traceback preventing core20 builds were not addressed, indicating the report was abandoned or superseded by newer snapcraft versions.
73%
#1862256 snapcraft should complain loudly when building base: core20 snap on i386 snapcraft (launchpad) closed Closed as superseded. Improved architecture parsing in snapcraft now correctly rejects unsupported base-architecture combinations, addressing the original request without requiring explicit i386 core20 checks.
72%
#1674828 SNAPCRAFT_SETUP_CORE=1 doesn't work for foreign architectures snapcraft (launchpad) closed SNAPCRAFT_SETUP_CORE=1 failing for foreign architectures during classic snap builds was closed without resolution. Zero comments and no fixes indicate the report was abandoned due to inactivity.
72%
#5634 Core22 unit tests in snapcraft fails with craft application 5.5.0 snapcraft closed Closed and deferred. The core22 test failure was traced to a validation change in craft-application PR #812. The issue was logged internally as SNAPCRAFT-1188 for tracking.
70%