-
Notifications
You must be signed in to change notification settings - Fork 206
Cannot compile exla on Mac #1599
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
Comments
Possibly related: |
I just ran into this on my own, it seemed related to this clang issue: llvm/llvm-project#94194 and I was able to resolve it by cloning the exla repo and adding Specifically I saw this with Apple Clang 17.0.0 on my laptop, while it worked fine with clang 16.0.0 |
It looks like this issue has been fixed in the latest version of the file. Would updating the xla version used in elixir-nx/xla resolve this? |
@nallwhy I believe it would but I'm not very familiar with the XLA project and although I took a look I couldn't figure out how to do so quickly. As far as I can tell this is a new type of warning which was added to Clang, and is now warning about existing issues in the XLA code. Updating the version of XLA in the XLA project is probably the right thing to do but for me just modifying it to ignore the warning let me continue the project I was working on. I could probably install Clang 16 on my laptop instead but that seemed tricky. |
I ran into this as well after upgrading macOS. @Joss-Steward's idea of vendoring to disable the warning makes sense. In case it helps others: in my case my
Vendoring is a good solution too but I didn't want to deal with Git submodules :) and only changing |
Another quick solution until fix committed is to define environment variable CXX with llvm 16, as mentioned earlier. For brew'ed llvm define CXX to |
With #1603 you'll be able to add the custom no-warn flag. This is not necessarily a fix for the underlying issue (I'll see about updating XLA), but it will unblock everyone and serve as a temporary solution for future similar problems. Example: $ CFLAGS=-Wnomissing-template-arg-list-after-template-kw mix compile
...
c++ -Wnomissing-template-arg-list-after-template-kw -fPIC ... -c c_src/exla/custom_calls/qr_f64.cc -o cache/0.9.1/objs/custom_calls/qr_f64.o
... |
The text was updated successfully, but these errors were encountered: