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 brew installation issue #10

Closed
mxgrn opened this issue Dec 3, 2022 · 3 comments
Closed

macOS brew installation issue #10

mxgrn opened this issue Dec 3, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@mxgrn
Copy link

mxgrn commented Dec 3, 2022

Following the README for installing on macOS, getting the following error:

==> Installing zf from natecraddock/taps
==> Installing dependencies for natecraddock/taps/zf: z3 and zig
==> Installing natecraddock/taps/zf dependency: z3
==> Pouring z3--4.11.2.arm64_ventura.bottle.2.tar.gz
🍺  /opt/homebrew/Cellar/z3/4.11.2: 142 files, 30.3MB
==> Installing natecraddock/taps/zf dependency: zig
==> Pouring zig--0.10.0.arm64_ventura.bottle.tar.gz
🍺  /opt/homebrew/Cellar/zig/0.10.0: 13,837 files, 362.1MB
==> Installing natecraddock/taps/zf
==> zig build -Drelease-fast=true
Last 15 lines from /Users/mxgrn/Library/Logs/Homebrew/zf/01.zig:
2022-12-03 07:39:57 +0000

zig
build
-Drelease-fast=true

/private/tmp/zf-20221203-28656-cl3y6q/zf-0.5/src/main.zig:238:45: error: invalid builtin function: '@minimum'
        var terminal = try ui.Terminal.init(@minimum(candidates.len, config.lines), no_color);
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: zf...
error: The following command exited with error code 1:
/opt/homebrew/Cellar/zig/0.10.0/bin/zig build-exe /private/tmp/zf-20221203-28656-cl3y6q/zf-0.5/src/main.zig -OReleaseFast --cache-dir /private/tmp/zf-20221203-28656-cl3y6q/zf-0.5/zig-cache
 --global-cache-dir /private/tmp/zf-20221203-28656-cl3y6q/zf-0.5/.brew_home/.cache/zig --name zf --enable-cache
error: the following build command failed with exit code 1:
/private/tmp/zf-20221203-28656-cl3y6q/zf-0.5/zig-cache/o/e6c08c3c962bc14f424bc077b89fec37/build /opt/homebrew/Cellar/zig/0.10.0/bin/zig /private/tmp/zf-20221203-28656-cl3y6q/zf-0.5 /privat
e/tmp/zf-20221203-28656-cl3y6q/zf-0.5/zig-cache /private/tmp/zf-20221203-28656-cl3y6q/zf-0.5/.brew_home/.cache/zig -Drelease-fast=true
@natecraddock
Copy link
Owner

Thank you for the reminder. The most recent release of zf (0.5) requires Zig 0.9.0, while the latest version of zig is 0.10.0. I haven't yet made a release, but I have one coming soon! I had forgotten that there was a small code incompatibility between the Zig versions and I wasn't prioritizing the zf release. I will get it out soon!

@natecraddock natecraddock self-assigned this Dec 9, 2022
@natecraddock natecraddock added the bug Something isn't working label Dec 9, 2022
@natecraddock
Copy link
Owner

I just released zf 0.6.0 and updated the brew package. Sorry for the wait! I'm closing this, but please let me know if it still doesn't work.

@natecraddock
Copy link
Owner

Also, zf was just upstreamed to homebrew core so you don't need my natecraddock/taps tap anymore!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants