-
Notifications
You must be signed in to change notification settings - Fork 620
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
fatal clang-format error on macOS can't upgrade/install via Homebrew #1737
Comments
Is it possible to ask at the brew issues (https://github.com/Homebrew/brew/issues) why clang-format is required in the installation process they have? |
If something is misconfigured on our side, any advice they can provide is welcome. |
AFAICT, the missing clang-format is not fatal and should not stop the configuration, and might be a red herring. The actual error might be somewhere else... Could be seeing only stdout here, but not stderr? |
Yes, the clang-format bit is not fatal, need to see all the cmake output to know the source of the failed update, guessing it is deflate related which would be just off the last 15 lines of output? |
@meshula homebrew has said this is an openexr issue not a homebrew issue and they won't review @kdt3rd below is the output, appears there are missing files from the distro? Candidly this is a huge issue as this has broken a ton of stuff, including ffmpeg which I use daily and which opencv and many other packages depend. FWIW clang functions as it should and compiles many other code. If someone can make or please suggest fixes would appreciate it. Thanks much.
|
I can reproduce the problem with the above instructions. This isn't a solution, but the culprit seems to be the |
I stand by my original argument that the homebrew recipe is where a fix needs to lie. It's possible there's something we can do at our end, but I've read and reread the docs, and it's not clear to me what that might be.
our docs talk about how to choose between a supplied libdeflate and getting cmake to fetch it.
|
Then, if you are convinced that homebrew is the fix can someone on your end (openEXR) please make the request? I'm doing this on macOS 11.7.10. Homebrew 4.2.19-127-g0ecac81 and this is the reporting Homebrew outputs: -- Configuring incomplete, errors occurred! Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!
This happens every time I try to update a package that uses it: opencv, ffmpeg, jpeg-xl, etc., etc. @cary-ilm If there is a command I can issue with my brew command, "remove that option and it works." e.g. brew install XYZ - can you please tell me what that is. Thanks in advance to everyone who is reviewing / responding to this. |
Again not an ultimate solution, but if the system in question has libdeflate installed, then cmake should find it and avoid the fetch that's causing the problem. Can manage to install libdeflate independently ahead of time as a workaround? It sounds like homebrew really doesn't like fetching content, which is something we need to resolve one way or the other. |
Specifically to Cary's comment, if you first do this, does it help?
If yes, then all we have to ask of homebrew is to update their recipe to specify that libdeflate is a dependency. |
@cary-ilm @meshula that appeared to work. Thanks very much for your input and help. If you could ask homebrew to update their recipe to include libdeflate going forward I would appreciate it. While I've made notes for myself, once I finish testing the project I'm working on this macOS and platform, I'll be moving to macOS Sonoma against Apple Silicon for same code base. Thanks again - +1 |
Thanks for figuring this one out! I encountered the same problem building 'openexr' on macOS 10.15 with clang 12.0, and initially thought the error log was choking on missing 'clang-format', except that did not resolve the actual error after successful Good to be reminded to read the entire cmake log for the real error missing 'libdeflate', resolved by |
Hi all, I don't have availability to go through the process documented here: https://docs.brew.sh/How-To-Open-a-Homebrew-Pull-Request ~ Is anyone who uses homebrew able to take the time to work through their process for adding libdeflate to a recipe? |
Running on MacBook Pro Intel on macOS 11.7.10. Homebrew 4.2.19-127-g0ecac81
Trying to upgrade openexr via homebrew and receiving the following errors -- can't resolve -- please advise, unable to upgrade other packages that depend on openexr:
thanks in advance
The text was updated successfully, but these errors were encountered: