← Back to issue list

fix "charmcraft pack" on macOS

View original Github issue

Metadata

Project
charmcraft
Number
#708
Type
pull request
State
closed
Author
delgod
Labels
Created
Updated
Closed

Current evaluation

Superseded by PR #718, which fixes the root cause of the macOS charmcraft pack build failure involving missing Linux GCC tools.

Suggested action:

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
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.
qwen3.6-35b-a3b-mtp-q6 Superseded by PR #718, which fixes the root cause of the macOS charmcraft pack failure caused by a missing Linux GCC compiler in the build environment.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#713 [MacOS] error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 charmcraft closed Build failed on macOS and Ubuntu due to missing x86_64-linux-gnu-gcc during charmcraft pack. A workaround adding build-essential to charmcraft.yaml was provided. The issue was closed after a maintainer confirmed the bug and implemented a fix.
75%
#1767 Charmcraft pack does not work when updating to 3.1.1 on osx charmcraft closed Fixed in pull request #1823. The update resolved a snap injection bug that incorrectly attempted to inject the host charmcraft snap on macOS, restoring successful builds after the 3.1.1 upgrade.
74%
#796 Charmcraft pack on Apple Silicon fails charmcraft closed 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.
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%
#1747 Failed to run the build script for part 'charm' charmcraft closed Build script failure during charmcraft pack was resolved. The issue was closed after the maintainer acknowledged the report and merged the fix in PR #1751.
71%
#2635 ci: disable macos tests for Charmcraft 3.5 charmcraft merged Merged PR temporarily disabling macOS tests for Charmcraft 3.5 CI. macOS testing will be re-enabled later to resolve issue #2605. Approved by two reviewers and merged after passing required checks.
71%
#501 charmcraft pack fails trying to include a non-existing charm/src/.tox/ charmcraft closed charmcraft pack failed when copying non-existent build directories or files. Users worked around it with charmcraft clean. The issue was closed as fixed upstream in the underlying parts lifecycle code.
70%