-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Failure using homebrew-provided llvm
#207161
Comments
Could be an upstream LLVM issue but would need to try narrowing down to a minimal reproducer. Seems to be happening in GlobalIsel which is only used in Doesn't seem to happen if using older LLVM ( |
I think this is an upstream issue -- I get a similar failure with upstream's build too. See https://github.com/carlocab/netcdf-llvm/actions/runs/13278624843/job/37072645813 |
Thank you! @czender, since this appears to be upstream, do you want to open an LLVM issue or shall I? Also, does the workaround in #207161 (comment) work on your end? I'll give it a test here when I get the chance, but I can only test whether it works functionally, not whether it works for your workflow. Thank you @cho-m and @carlocab! |
Thanks everyone for verifying the issue and supplying a potential workaround. I just tested to suggested compiler flag and ... it works for me! Yippee! @WardF I would appreciate it if you opened the LLVM issue since it will affect a lot of netCDF users unless/until it's fixed upstream. |
Closing as this is not a Homebrew-specific issue. Please report this at https://github.com/llvm/llvm-project/issues/new?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen&template=Blank+issue to ensure this is fixed. Thanks! |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
(This issue originally reported by @czender at Unidata/netcdf-c#3083)
Original goal is to use the
homebrew
-installedllvm
suite of tools (clang, etc) to compile netCDF-C (https://github.com/Unidata/netcdf-c).What happened (include all command output)?
(from @czender)
A few months ago my default build environment on MacOS stopped working due to a Clang compiler error on the file ocdump.c. I usually do not report compiler errors because they have nothing to do with netCDF per se, and the compiler authors usually resolved these things eventually. So consider this a heads-up and feel free to resolve without taking action. However, note that this particular compiler error on this particular file has been there for ~3-4 months, and survived many patch releases of Clang. So it may be something that prevents other users from building/testing netCDF 4.9.3. Everything here (Clang, MacOS, and the netCDF-main branch are the latest available as of today.
What did you expect to happen?
Expectation was that netcdf-c would compile properly instead of throwing the compiler-specific error above.
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: