Snapcraft doesn't check if cross-compiling before trying to install necessary tools
Metadata
Current evaluation
Closed without resolution or comments, likely abandoned or superseded. Snapcraft failed to conditionally install cross-compilation tools, triggering armhf build errors.
Suggested action: —
No scores available.
Issue body
Snapcraft supports cross-compiling (assuming the given plugin also supports it), and attempts to install the correct cross-compiler when doing so. However, it doesn't check to see that it's actually cross-compiling before building those packages, so for instance running on armhf results in:
Could not find a required package in 'build-packages': "The cache has no package named 'gcc-arm-linux-gnueabihf'"
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution or comments, likely abandoned or superseded. Snapcraft failed to conditionally install cross-compilation tools, triggering armhf build errors. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution or comments. The issue appears abandoned, leaving the bug where Snapcraft incorrectly attempts to install cross-compiler packages on native architectures unfixed. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without comments or linked pull requests. The cross-compilation check was not explicitly fixed or documented, indicating the issue was likely abandoned. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without documented resolution. The reported bug regarding unconditional cross-compiler package installation on native armhf builds was abandoned. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1788654 snapcraft cleanbuild doesn't work with cross-compile stage-packages | snapcraft (launchpad) | closed | Closed without resolution. Snapcraft cleanbuild fails during cross-compilation because it does not automatically configure multi-arch package support inside the container. No fix was implemented, and the report appears abandoned. | |
| #1983009 Snapcraft 7.1.0 fails to find stage package when cross-compiling | snapcraft (launchpad) | closed | Closed. Snapcraft 7.1.0 fails to find stage packages like bluez when cross-compiling from amd64 to arm64/armhf, breaking builds. Issue closed without a provided resolution or fix. | |
| #1569280 Snapcraft fails to strip go binaries on arm | snapcraft (launchpad) | closed | Closed without resolution. Snapcraft failed to strip Go binaries on ARM during Launchpad builds, causing failures despite amd64 success. No fix or comments were provided. | |
| #1723208 Snapcraft snap doesn't work natively on trusty | snapcraft (launchpad) | closed | Closed without resolution. The snapcraft build failure on Ubuntu Trusty caused by a missing CXXABI_1.3.8 symbol was abandoned, likely superseded by Trusty reaching end-of-life. | |
| #1980536 snapcraft unusable on systems not using apt | snapcraft (launchpad) | closed | Closed without resolution. Snapcraft retained hard apt dependencies, causing crashes on non-Debian systems like Arch Linux. The issue appears abandoned with no fix provided. | |
| #1769551 snapcraft 2.42 not working in trusty armhf | snapcraft (launchpad) | closed | Closed without comments or resolution. The author reverted to version 2.41, indicating the issue was abandoned or superseded by newer releases. | |
| #1570706 Snapcraft cleanbuild command doesn't work | snapcraft (launchpad) | closed | Closed without resolution, likely abandoned or superseded. The cleanbuild command failed due to LXC hash format incompatibility and container stop errors. | |
| #1723965 snapcraft doesn't work | snapcraft (launchpad) | closed | Closed without resolution or comments, indicating abandonment. The reported snap command failure and GL driver errors remain unresolved. | |
| #1641123 snapcraft does not properly detect the architecture when kernel is 64 bits but userspace is 32 | snapcraft (launchpad) | closed | Closed without resolution. Snapcraft incorrectly identified arm64 architecture in 64-bit kernel/32-bit userspace chroots, generating mismatched snaps. The report was abandoned due to inactivity. | |
| #1731478 Snap of snapcraft fails to run on Solus and openSUSE | snapcraft (launchpad) | closed | Closed without resolution. Hard dependency on Debian apt_pkg caused runtime failures on non-Debian distros. The report was abandoned after seven days with zero comments or patches. |