← Back to issue list

Debcraft snap FTBFS on risc-v due to missing rustc

View original Github issue

Metadata

Project
debcraft
Number
#89
Type
issue
State
open
Author
lengau
Labels
Status: Triaged Type: Bug
Created
Updated
Closed
—

Current evaluation

Debcraft snap FTBFS on riscv64: pydantic-core (via craft-application) has no riscv64 wheel, so pip source-builds it and fails because rustc is absent. Blocks the riscv64 snap declared in snapcraft.yaml.

Suggested action: keep open

Reason: Root cause is fully confirmed in-repo: uv.lock shows pydantic-core 2.33.2 publishes wheels for aarch64/armv7l/ppc64le/s390x/x86_64/i686 but no riscv64, and craft-application>=7.3.0 pulls in pydantic (uv.lock:381), so the `debcraft` part's pip build in snap/snapcraft.yaml has no binary to install. The issue is filed by a maintainer, carries Status: Triaged / Type: Bug, is linked to internal ticket DEBCRAFT-38, and no commit has touched snap/snapcraft.yaml since it was added in #76, so it is neither fixed nor obsolete. It stays open because the declared riscv64 platform (snapcraft.yaml:15) cannot build, but it is not a code defect with a clean local fix — FinnRG notes upstream pydantic#12723 will add riscv64 wheels, so the real resolution is an upstream wheel release, and that external dependency plus the still-untested interaction with sibling #88 (pygit2 on the same `python` plugin) keeps actionability below the triaged-and-ready threshold.

Evaluated by: mr-cal-bot

Impact: 48 Quick Win: 8 Complexity: 62 Confidence: 78 Actionability: 45

Issue body

``` Failed to run the build script for part 'debcraft'. Detailed information: :: + '[' -f setup.py ']' :: + '[' -f pyproject.toml ']' :: + /build/debcraft/parts/debcraft/install/bin/pip install -U . :: error: subprocess-exited-with-error :: :: × Preparing metadata (pyproject.toml) did not run successfully. :: │ exit code: 1 :: ╰─> [5 lines of output] :: Python reports SOABI: cpython-312-riscv64-linux-gnu :: Computed rustc target triple: riscv64-unknown-linux-gnu :: Target triple not supported by rustup: riscv64-unknown-linux-gnu :: Checking for Rust toolchain.... :: Rust not found, installing into a temporary directory :: [end of output] :: :: note: This error originates from a subprocess, and is likely not a problem with pip. :: error: metadata-generation-failed :: × Encountered error while generating package metadata. :: ╰─> pydantic-core :: note: This is an issue with the package mentioned above, not pip. :: hint: See above for details. Recommended resolution: Check the build output and verify the project can work with the 'python' plugin. ``` Full build log: https://launchpadlibrarian.net/848537606/buildlog_snap_ubuntu_noble_riscv64_debcraft-edge_BUILDING.txt.gz

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 48
Quick Win: 8
Complexity: 62
Confidence: 78
Actionability: 45
keep open Debcraft snap FTBFS on riscv64: pydantic-core (via craft-application) has no riscv64 wheel, so pip source-builds it and fails because rustc is absent. Blocks the riscv64 snap declared in snapcraft.yaml.
qwen/qwen3.6-35b-a3b
Impact: 35
Quick Win: 20
Complexity: 25
Confidence: 70
Actionability: 75
keep open Debcraft snap fails to build on riscv64 because pydantic-core requires rustc to compile from source; upstream pydantic is adding riscv64 wheel support in an upcoming release.
qwen/qwen3.8-27b
Impact: 45
Quick Win: 29
Staleness: 55
Complexity: 35
Confidence: 78
Support Request: 5
keep open Debcraft snap FTBFS on riscv64: pydantic-core lacks a riscv64 wheel, forcing a source build that needs rustc. Triaged as a bug; fix expected once pydantic ships riscv64 wheels (pydantic/pydantic#12723). Lock file still pins pydantic 2.11.9.
qwen/qwen3.6-35b-a3b
Staleness: 45
Complexity: 20
Confidence: 85
Support Request: 0
keep open Snap build fails on riscv64 due to missing rustc and pydantic wheels. Triaged and currently blocked on upstream pydantic release adding architecture support.
qwen3.6-35b-a3b-mtp-q6
Staleness: 45
Complexity: 20
Confidence: 85
Support Request: 0
keep open Debcraft snap fails to build on riscv64 due to pydantic-core requiring rustc. Currently triaged and awaiting an upstream pydantic release that will add riscv64 wheels.

Update history

No update history recorded yet.

Related work

  • Related To: debcraft#88 (confidence 90%)

    Sibling open issue: same snap `debcraft` part / python plugin FTBFS on armhf and s390x because pygit2 lacks wheels and libgit2-dev headers are missing. Same class of non-amd64 wheel-availability breakage in the same snapcraft.yaml part.

  • Blocked By: pydantic#12723 (confidence 80%)

    Cited by FinnRG in the 2026-03-18 comment as the upstream change adding riscv64 wheels; pydantic's maintainers reportedly indicated a release is imminent. The debcraft snap cannot build on riscv64 until those wheels are published.

Related issues

Issue Project State Summary Similarity
#88 Debcraft snap FTBFS on armhf, s390x due to libgit2 issue debcraft open Debcraft snap FTBFS on armhf and s390x: pygit2 has no prebuilt wheels there, so pip source-builds it and fails on git2/sys/errors.h. Triaged by maintainer, still open; snap/snapcraft.yaml unchanged since it was added.
79%