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

macos-13 builds are failing #116026

Closed
JelleZijlstra opened this issue Feb 28, 2024 · 1 comment
Closed

macos-13 builds are failing #116026

JelleZijlstra opened this issue Feb 28, 2024 · 1 comment
Labels
build The build process and cross-build OS-mac type-bug An unexpected behavior, bug, or error

Comments

@JelleZijlstra
Copy link
Member

JelleZijlstra commented Feb 28, 2024

Bug report

In both #105511 and #116025, the macos-13 builds fail with:

Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/2to3
Target /usr/local/bin/2to3
already exists. You may want to remove it:
  rm '/usr/local/bin/2to3'

To force the link and overwrite all conflicting files:
  brew link --overwrite python@3.12

To list all files that would be deleted:
  brew link --overwrite python@3.12 --dry-run

The failure first appears on the main branch after #115661 was merged, but that looks unlikely to be related, especially since the failure happens before we even start building CPython. I suspect something changed in the runner.

Linked PRs

@JelleZijlstra JelleZijlstra added type-bug An unexpected behavior, bug, or error OS-mac build The build process and cross-build labels Feb 28, 2024
JelleZijlstra added a commit to JelleZijlstra/cpython that referenced this issue Feb 28, 2024
@JelleZijlstra
Copy link
Member Author

Comparing a successful run (https://github.com/python/cpython/actions/runs/8065615837/job/22031816546) and a failing one (https://github.com/python/cpython/actions/runs/8073964044/job/22058540805), I noticed that in the successful run we didn't do anything to xz, but in the failing run we decided to upgrade from 5.4.5 to 5.4.6. That upgrade then makes Homebrew reinstall Python 3.12 for some reason (because Python depends on xz?), and that leads to the brew link error.

As a workaround, I opened a PR to pin xz to 5.4.5.

miss-islington pushed a commit to miss-islington/cpython that referenced this issue Feb 29, 2024
…thonGH-116027)

(cherry picked from commit 02beb9f)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Feb 29, 2024
…thonGH-116027)

(cherry picked from commit 02beb9f)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
JelleZijlstra added a commit that referenced this issue Mar 1, 2024
…H-116027) (#116157)

(cherry picked from commit 02beb9f)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
JelleZijlstra added a commit that referenced this issue Mar 1, 2024
…H-116027) (#116158)

(cherry picked from commit 02beb9f)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build OS-mac type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant