← Back to issue list

Charmcraft pack on Apple Silicon fails

View original Github issue

Metadata

Project
charmcraft
Number
#796
Type
issue
State
closed
Author
VariableDeclared
Labels
Created
Updated
Closed

Current evaluation

Charmcraft pack failed on Apple Silicon because Multipass could not locate the Ubuntu 20.04 image. The root cause was a Multipass bug fixed in version 1.9.2. The report was closed as an external dependency issue, not a Charmcraft defect.

Suggested action:

No scores available.

Issue body

Hi Charmcraft team, [Steps to reproduce] 1. Install charmcraft via homebrew 2. Install multipass 3. run `charmcraft pack` The following error is thrown: ``` ➜ charm-openidc-test-fixture git:(main) charmcraft pack Failed to launch VM 'charmcraft-charm-openidc-test-fixture-26152800-0-0-arm64'.res=['arm64'] (may take a while the first time but it's reusable) * Command that failed: 'multipass launch snapcraft:20.04 --name charmcraft-charm-openidc-test-fixture-26152800-0-0-arm64 --cpus 2 --mem 2G --disk 64G' * Command exit code: 2 * Command output: b'\r \r\r \r' * Command standard error output: b'launch failed: Unable to find an image matching "20.04". Please use `multipass find` for supported remotes and images.\n' ``` Log attached: [charmcraft-20220628-092203.976852.log](https://github.com/canonical/charmcraft/files/8999126/charmcraft-20220628-092203.976852.log) [Workaround] I appreciate this is a bit of an edge case, and the workaround here is to run an x64 VM somewhere and use that, as far as I can tell, Thanks! Peter

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6 Charmcraft pack failed on Apple Silicon because Multipass could not locate the Ubuntu 20.04 image. The root cause was a Multipass bug fixed in version 1.9.2. The report was closed as an external dependency issue, not a Charmcraft defect.
qwen/qwen3.6-35b-a3b Closed as not a charmcraft issue. The Apple Silicon failure was caused by Multipass 1.9.1 failing to locate the Ubuntu 20.04 image. Resolved by upgrading Multipass to version 1.9.2. Updating Multipass fixes the problem.
qwen3.6-35b-a3b-mtp-q6 Apple Silicon charmcraft pack failed due to Multipass failing to locate the Ubuntu 20.04 image. Maintainers identified this as a Multipass bug fixed in version 1.9.2. The report was closed as external to charmcraft; updating Multipass resolves the failure.
qwen3.6-35b-a3b-mtp-q6 Closed as unrelated to Charmcraft. The Apple Silicon failure stemmed from Multipass failing to locate the Ubuntu 20.04 image, a bug fixed in Multipass 1.9.2. Updating Multipass resolves the problem.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#708 fix "charmcraft pack" on macOS charmcraft closed Superseded by PR #718, which fixes the root cause of the macOS charmcraft pack build failure involving missing Linux GCC tools.
73%
#1104 charmcraft pack on Ubuntu 23.04 (Lunar) fails. charmcraft closed Charmcraft pack failed on Ubuntu 23.04 due to unavailable build environments. PR #1130 addressed the issue but was blocked by an external cloud-images bug. The issue was closed pending upstream resolution.
72%