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

brew: --HEAD won’t install #11938

Closed
ghoffart opened this issue Jun 26, 2022 · 5 comments
Closed

brew: --HEAD won’t install #11938

ghoffart opened this issue Jun 26, 2022 · 5 comments
Labels
downstream An issue with a third party project that uses Zig. question No questions on the issue tracker, please.
Milestone

Comments

@ghoffart
Copy link

Zig Version

--HEAD

Steps to Reproduce

user@Wintermute2 ~ % brew install zig --HEAD

Expected Behavior

Functional Zig environment, installation pulls the required/matching LLVM version.

Actual Behavior

user@Wintermute2 ~ % brew install zig --HEAD
==> Downloading https://ghcr.io/v2/homebrew/core/llvm/manifests/14.0.5
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/llvm/blobs/sha256:ec2fd8d43fcd0de5bfbffdf63d884
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:ec2fd8d43fc
######################################################################## 100.0%
==> Cloning https://github.com/ziglang/zig.git
Cloning into '/Users/user/Library/Caches/Homebrew/zig--git'...
Updating files: 100% (15472/15472), done.
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
==> Installing dependencies for zig: llvm
==> Installing zig dependency: llvm
==> Pouring llvm--14.0.5.arm64_monterey.bottle.tar.gz
🍺 /opt/homebrew/Cellar/llvm/14.0.5: 5,851 files, 983.5MB
==> Installing zig --HEAD
==> cmake . -DZIG_STATIC_LLVM=ON
Last 15 lines from /Users/user/Library/Logs/Homebrew/zig/01.cmake:
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring zig version 0.10.0-dev.2751+08459ff1c
CMake Error at cmake/Findllvm.cmake:101 (message):
expected LLVM 13.x but found 14.0.5 using
/opt/homebrew/opt/llvm/bin/llvm-config
Call Stack (most recent call first):
CMakeLists.txt:107 (find_package)

-- Configuring incomplete, errors occurred!
See also "/tmp/zig-20220626-73388-sllmln/CMakeFiles/CMakeOutput.log".

@ghoffart ghoffart added the bug Observed behavior contradicts documented or intended behavior label Jun 26, 2022
@leecannon
Copy link
Contributor

This is caused by homebrew updating to llvm 14 before zig master has been updated and the brew doesnt specify an llvm version.
As a workaround brew edit zig and change the depends_on "llvm" line to depends_on "llvm@13".

@ghoffart
Copy link
Author

Worked, thanks!

@andrewrk andrewrk added this to the 0.10.0 milestone Jun 28, 2022
@andrewrk andrewrk added question No questions on the issue tracker, please. downstream An issue with a third party project that uses Zig. and removed bug Observed behavior contradicts documented or intended behavior labels Jun 28, 2022
@andrewrk
Copy link
Member

Duplicate of #11274

@nektro
Copy link
Contributor

nektro commented Jun 28, 2022

filed fix here Homebrew/homebrew-core#104496

@nektro
Copy link
Contributor

nektro commented Jul 6, 2022

downstream issue now fixed with Homebrew/homebrew-core@0a0385b

@andrewrk andrewrk closed this as completed Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
downstream An issue with a third party project that uses Zig. question No questions on the issue tracker, please.
Projects
None yet
Development

No branches or pull requests

4 participants