← Back to issue list

Snapcraft 7.1.1 does not build with core22 on riscv64

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1984227
Type
issue
State
closed
Author
~xypron
Labels
riscv64
Created
Updated
Closed

Current evaluation

Fixed in Snapcraft 7.1.2, which added the missing riscv64 support needed to build core22 snaps.

Resolution: closed resolved

Reason: Maintainer @sergiusens confirmed the riscv64/core22 fix was included in Snapcraft 7.1.2; release commit b88928ce4 records that release.

Evaluated by: mr-cal-bot

No scores available.

Issue body

I tried to build the hello snap (https://github.com/ubuntu-core/hello-snapcraftio.git) with core22 but it fails: $ git diff diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index ddd1730..c0223cf 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,5 +1,5 @@ name: hello -base: core20 +base: core22 confinement: strict grade: stable $ snapcraft --use-lxd Architecture 'riscv64' is not supported. Recommended resolution: Make sure the architecture name is correct. Full execution log: '/home/zfsdt/.cache/snapcraft/log/snapcraft-20220810-171743.045480.log'

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed in Snapcraft 7.1.2, which added the missing riscv64 support needed to build core22 snaps.
stealth/space-bunny-alpha — closed resolved Fixed core22 riscv64 build support in Snapcraft 7.1.2 via merged PR canonical/snapcraft#3868 (commit cbafb4eb4), adding riscv64 to core22 meta architecture support.
stealth/space-bunny-alpha — closed stale Closed as stale without a fix after becoming inactive; Snapcraft 7.1.1 core22 builds on riscv64 remained unsupported.
qwen/qwen3.6-35b-a3b — — Closed without resolution due to inactivity. Snapcraft 7.1.1 failed to build on riscv64 with core22, reporting the architecture as unsupported. No fix was implemented.
qwen/qwen3.6-35b-a3b — — Closed without resolution or comments, effectively abandoned due to lack of activity or lack of riscv64 support.
qwen/qwen3.6-35b-a3b — — Closed without resolution. Snapcraft 7.1.1 lacks riscv64 support for core22 builds, and no fix or workaround was provided.
qwen3.6-35b-a3b-mtp-q6 — — Snapcraft 7.1.1 failed to build on riscv64 with core22, citing unsupported architecture. The report was closed after 14 days with no comments or resolution, indicating abandonment.

Update history

Date Change
created

Related issues

Issue Project State Summary Similarity
#4980 Fix Snapcraft 7 builds on riscv64 snapcraft closed Closed as obsolete without a riscv64 fix: Snapcraft 7 now serves core18-only builds, which do not support RISC-V.
85%
#2012074 snapcraft cannot build snap by default on aarch64 snapcraft (launchpad) open ARM64 default builds failed on Snapcraft 7.3.1 because core20 selected amd64-only Multipass images; later defaults use core22/LXD on Linux, addressing the reported path.
79%
#1976221 Missing linker base while building with core22 base snapcraft (launchpad) closed Resolved by upgrading from legacy Snapcraft to Snapcraft 7.x, which correctly builds core22 snaps; no code fix or linked PR was recorded.
77%
#2080728 A core24 snap creation fails on compression (RISCV64) snapcraft (launchpad) closed core24 riscv64 snap builds failed at `snap pack` (exit 20). Maintainers traced it to older snapd on RISCV lacking core24 support, not snapcraft; fixed once newer snapd shipped. Reporter confirmed 'Fixed now' on 2024-10-26.
75%
#2099923 Snapcraft builds are failing: install of snap "snapcraft" failed snapcraft (launchpad) open Reported Launchpad Bionic non-i386 builds cannot install Snapcraft 7.x/stable because core20 needs snapd 2.61; the issue remains open, untriaged, and unanswered.
75%
#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.
74%
#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.
73%
#1866300 snapcraft fails to build core20 snap snapcraft (launchpad) closed Closed without a documented fix after core20 Multipass/LXD failures; core20 build-base support was unavailable and the workaround was destructive mode.
73%
#1978844 snapcraft try not available for core22-based snap snapcraft (launchpad) closed Core22 support for snapcraft try was merged in canonical/snapcraft#3981 (commit 2691262b8) and released on the edge channel.
72%
#2064639 snapcraft remote-build core20 armhf openssl error snapcraft (launchpad) closed armhf/riscv64/ppc64el/s390x remote-build failed on core20 after cryptography 42.0.5 broke the OpenSSL legacy provider. Fixed by merged PR canonical/snapcraft#4784 (commit 7aeffed19), setting CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1 in the snap manifest; LP#2064639 closed as fixed.
72%