fix "charmcraft pack" on macOS
Metadata
Current evaluation
Closed in favor of #718, which corrected the Multipass image remote and fixed macOS packing; merged as 3e94133d (implementation c929f310).
Resolution: closed superseded
Reason: Maintainer @sergiusens stated that #718 fixed the root cause. That PR corrected Charmcraft's Multipass image remote and was merged in commit 3e94133d.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Hi Team,
running on macOS 12.2.1 (Intel CPU) the charmcraft 1.4.0 and multipass 1.8.1
```
charmcraft init
charmcraft pack
```
see the following errors
```
2022-03-10 15:54:04.722 :: 2022-03-10 15:53:45.348 :: Collecting PyYAML
2022-03-10 15:54:04.722 :: 2022-03-10 15:53:45.389 :: Downloading PyYAML-6.0.tar.gz (124 kB)
2022-03-10 15:54:04.722 :: 2022-03-10 15:53:45.657 :: Installing build dependencies: started
2022-03-10 15:54:04.722 :: 2022-03-10 15:54:03.286 :: Installing build dependencies: finished with status 'error'
2022-03-10 15:54:04.722 :: 2022-03-10 15:54:03.286 :: ERROR: Command errored out with exit status 1:
2022-03-10 15:54:04.722 :: 2022-03-10 15:54:03.286 :: command: /root/parts/charm/build/staging-venv/bin/python3 /root/parts/charm/build/staging-venv/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-nedyydq_/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel Cython
...
2022-03-10 15:54:04.724 :: 2022-03-10 15:54:03.342 :: x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/root/parts/charm/build/staging-venv/include -I/usr/include/python3.8 -c /tmp/pip-install-q6ivu611/Cython/Cython/Plex/Scanners.c -o build/temp.linux-x86_64-3.8/tmp/pip-install-q6ivu611/Cython/Cython/Plex/Scanners.o
2022-03-10 15:54:04.724 :: 2022-03-10 15:54:03.342 :: unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
2022-03-10 15:54:04.724 :: 2022-03-10 15:54:03.342 :: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed superseded | Closed in favor of #718, which corrected the Multipass image remote and fixed macOS packing; merged as 3e94133d (implementation c929f310). | |
| stealth/space-bunny-alpha | — | closed superseded | Closed after canonical/charmcraft#718 fixed the root cause by making Multipass use the correct image remote, resolving the macOS Intel pack failure. | |
| qwen/qwen3.6-35b-a3b | — | — | Superseded by PR #718, which fixes the root cause of the macOS charmcraft pack build failure involving missing Linux GCC tools. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed and superseded by PR #718, which resolved the underlying build environment issue causing charmcraft pack failures on macOS. |
Update history
No update history recorded yet.
Related work
-
Superseded By:
charmcraft#718
(confidence 100%)
Merged fix for the same macOS packing failure; implementation commit c929f310.
-
Related To:
charmcraft#713
(confidence 95%)
Reported the underlying missing x86_64_64-linux GCC failure fixed by #718.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #718 multipass: use the correct image remote | charmcraft | merged | Merged PR #718 via 3e94133d (implementation c929f310), correcting Charmcraft's Multipass image remote and fixing the macOS build failure in #713. | |
| #1767 Charmcraft pack does not work when updating to 3.1.1 on osx | charmcraft | closed | macOS packing was fixed by merged PR #1822 (commit 6a2501ee), updating craft-application to 4.1; PR #1823 added macOS smoke coverage. | |
| #796 Charmcraft pack on Apple Silicon fails | charmcraft | closed | Pack failed on Apple Silicon because Multipass 1.9.1 could not find the 20.04 image; maintainer closed it as not a Charmcraft bug, fixed by updating to Multipass 1.9.2. |