Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make is intermittently unavailable on macos 14 #11370

Open
2 of 16 tasks
lengau opened this issue Jan 13, 2025 · 1 comment
Open
2 of 16 tasks

make is intermittently unavailable on macos 14 #11370

lengau opened this issue Jan 13, 2025 · 1 comment

Comments

@lengau
Copy link

lengau commented Jan 13, 2025

Description

(I've only marked the x86 runner images, but I'm guessing it happens on both x86 and arm64, and maybe other versions of macos.)

On the latest macos-14 runner image, the make command sometimes fails with:

 sh: line 1:  3678 Bus error: 10           /Applications/Xcode_15.4.app/Contents/Developer/usr/bin/xcodebuild -sdk '' -find make 2> /dev/null
make: error: sh -c '/Applications/Xcode_15.4.app/Contents/Developer/usr/bin/xcodebuild -sdk '' -find make 2> /dev/null' failed with exit code 35328: (null) (errno=No such file or directory)
xcode-select: Failed to locate 'make', requesting installation of command line developer tools.

This is inconsistent though, as it both worked and broke on different jobs in the same workflow.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

Version: 20250106.587

https://github.com/canonical/charmcraft/actions/runs/12755016605/job/35550123637?pr=2073

Note that the "Fast tests" job uns on the same version but doesn't have this issue (despite running the same make command)

Is it regression?

unknown

Expected behavior

make commands work

Actual behavior

Running make returns an xcode error:


Run make setup-tests
  make setup-tests
  shell: /bin/bash -e {0}
  env:
    PYTEST_ADDOPTS: --no-header -v -rN -m 'slow'
    HOMEBREW_NO_INSTALL_FROM_API: 
    HOMEBREW_GITHUB_API_TOKEN: ***
    UV_CACHE_DIR: /Users/runner/work/_temp/setup-uv-cache
sh: line 1:  3678 Bus error: 10           /Applications/Xcode_15.4.app/Contents/Developer/usr/bin/xcodebuild -sdk '' -find make 2> /dev/null
make: error: sh -c '/Applications/Xcode_15.4.app/Contents/Developer/usr/bin/xcodebuild -sdk '' -find make 2> /dev/null' failed with exit code 35328: (null) (errno=No such file or directory)
xcode-select: Failed to locate 'make', requesting installation of command line developer tools.
Error: Process completed with exit code 72.

Repro steps

  1. Create a workflow that uses macos-14-large and runs make
  2. Run it many times until you get this error.
@susmitamane
Copy link
Contributor

Hi @lengau

We will investigate the issue and keep you posted on further updates.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants