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

Cannot install on M2 with Sonoma 14.5 #72

Open
azat opened this issue Aug 7, 2024 · 5 comments
Open

Cannot install on M2 with Sonoma 14.5 #72

azat opened this issue Aug 7, 2024 · 5 comments
Assignees

Comments

@azat
Copy link
Owner

azat commented Aug 7, 2024

This is the error message

==> Installing azat-archive/chdig/chdig
==> make chdig build_completion deploy-binary
Last 15 lines from /Users/daniel/Library/Logs/Homebrew/chdig/01.make:
help: consider giving `items` an explicit type, where the placeholders `_` are specified
   |
83 |     let items: Box<_> = format_items
   |              ++++++++

   Compiling zerocopy v0.7.32
   Compiling utf8parse v0.2.1
   Compiling strsim v0.10.0
   Compiling cc v1.0.83
   Compiling regex-automata v0.4.4
   Compiling darling_core v0.14.4
For more information about this error, try `rustc --explain E0282`.
error: could not compile `time` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
make: *** [chdig] Error 101

Reported-by: @dwinkler1
Original issue: https://github.com/azat-archive/homebrew-chdig/issues/1

@azat
Copy link
Owner Author

azat commented Aug 7, 2024

@dwinkler1 Which version of rust do you have?

@azat azat self-assigned this Aug 7, 2024
@azat
Copy link
Owner Author

azat commented Aug 7, 2024

Updating rust to at least, I would say. 1.74+ should help (not sure about particular version for now, but 1.81 definitely works)

@dwinkler1
Copy link

dwinkler1 commented Aug 7, 2024

I was on 1.78. Upgraded to 1.80 now but getting a similar error now. It looks like brew pulled in its own version of rustc also v1.80

==> Fetching azat-archive/chdig/chdig
==> Downloading https://github.com/azat/chdig/archive/refs/tags/v24.1.1.tar.gz
Already downloaded: /Users/daniel/Library/Caches/Homebrew/downloads/44b56dc066f5face6de20504c0f9df649aeb2f8cd22165b6e23c3d46df350ace--chdig-24.1.1.tar.gz
==> Installing chdig from azat-archive/chdig
==> make chdig build_completion deploy-binary
Last 15 lines from /Users/daniel/Library/Logs/Homebrew/chdig/01.make:
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
help: consider giving `items` an explicit type, where the placeholders `_` are specified
   |
83 |     let items: Box<_> = format_items
   |              ++++++++

   Compiling crossbeam-channel v0.5.11
   Compiling num-complex v0.4.4
For more information about this error, try `rustc --explain E0282`.
error: could not compile `time` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
make: *** [chdig] Error 101

@azat
Copy link
Owner Author

azat commented Aug 7, 2024

OK, I haven't updated the brew formula for a while, can you try modify https://github.com/azat-archive/homebrew-chdig/blob/main/chdig.rb#L4C56-L4C63 to v24.4.1?

And if it will work, please submit an MR!

azat added a commit to azat-archive/homebrew-chdig that referenced this issue Aug 7, 2024
@azat
Copy link
Owner Author

azat commented Aug 7, 2024

@dwinkler1 I've updated the version in the formula. Can you please try again?

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

No branches or pull requests

2 participants