← Back to issue list

cli: disable --target-arch support on core20

View original Github issue

Metadata

Project
snapcraft
Number
#3151
Type
pull request
State
merged
Author
cjp256
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #3151 as commit 8942d89d2, disabling --target-arch for core20 because cross-compilation had limitations; architecture targeting was deferred pending better --build-on support.

Resolution: closed resolved

Reason: The PR was merged into master as commit 8942d89d2. It disables --target-arch on core20 until build environments can reliably target the correct architecture.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Rather than cross-compiling, which has numerous limitations, this commit disables --target-arch. We need to work on expanding support for --build-on to create an environment to target the correct architecture. Signed-off-by: Chris Patterson <chris.patterson@canonical.com> - [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #3151 as commit 8942d89d2, disabling --target-arch for core20 because cross-compilation had limitations; architecture targeting was deferred pending better --build-on support.
stealth/space-bunny-alpha — closed resolved Merged #3151 (commit 8942d89d2), disabling --target-arch for core20 due to cross-compilation limitations and deferring support until --build-on can target the correct architecture.
qwen/qwen3.6-35b-a3b — — Merged changes disable the --target-arch CLI flag for core20 bases due to cross-compilation limitations. The flag is temporarily removed while future development expands --build-on support for multi-architecture targeting.
qwen3.6-35b-a3b-mtp-q6 — — Merged into master. Disables --target-arch support on core20 to bypass cross-compilation limitations. Future work will expand --build-on to handle architecture targeting.

Update history

No update history recorded yet.

Related work

  • Superseded By: snapcraft#3410 (confidence 96%)

    Later merged as ceee8c010 to re-enable core20 target-arch support experimentally.

  • Related To: snapcraft#3152 (confidence 93%)

    Companion merged PR disabling the ineffective --target-arch option for Multipass and LXD.

Related issues

Issue Project State Summary Similarity
#3410 project: enable experimental target-arch support for core20 snapcraft merged Merged PR #3410 as commit ceee8c010, enabling core20 builds to use --target-arch while displaying an experimental warning.
82%
#5817 Unclear remote build error with ``--build-for`` on core20 snapcraft open Legacy remote-build rejected --build-for on core20 long-form architectures with a cryptic 'architecture list is already set' error. Maintainers traced it to a long-standing Launchpad/legacy builder limitation; fixed as a better error message in #6090, and the legacy builder was later removed entirely.
74%
#3152 cli: disable --target-arch for multipass/lxd snapcraft merged PR #3152 merged as commit 2dd5e5d1e, hiding/disabling the --target-arch option for Multipass and LXD builds because it had no effect; follow-up PR #3175 later restored it with a deprecation warning.
72%
#6090 feat(remote-build/legacy): improve error when building with --build-for snapcraft merged Merged PR #6090 improved legacy remote-builder errors for core20, clarifying that --build-for requires shorthand architectures because of Launchpad limitations. It addresses #5817 and supersedes #5819.
71%
#5675 Remove core20 lifecycle snapcraft closed Merged PR #6019 via commit fa7952b4d, removing core20 build/lifecycle support and core20 command entries; core20 spread tests were removed separately in PR #6009.
71%
#4373 library linter fails on foreign archs and can't be disabled for core20 snapcraft open Cross-arch core20 builds still lint foreign ELF files, causing missing-loader failures or QEMU segfaults and potentially 20+ GB core dumps; open PR #6249 proposes the fix.
71%
#1997752 base core20: wrong arch triplet snapcraft (launchpad) closed 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.
70%