-
Notifications
You must be signed in to change notification settings - Fork 620
Fix clang vla warning #2736
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
Fix clang vla warning #2736
Conversation
✅ Deploy Preview for pytorch-fbgemm-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Thanks for working on this @cyyever. I'm still seeing the issue even when manually adding add the flags this PR implements (using clang/clang++ 18.1.8). Do you know if the fixs works for clang 18? |
@jamesETsmith Can you help check |
@cyyever great idea, it looks like the flag is there (and in stdout during compilation): From
From
|
@jamesETsmith That flag is overwritten by '-Wall -Wextra -Werror' later. That means there is a flag order problem. Check where you added the flag and move it behind Wall |
Thanks for the heads up @cyyever. I'm building FBGEMM through PyTorch and it doesn't seem like I can change the ordering of the CMAKE_CXX_FLAGS from the command line without modifying the cmake source like you have for FBGEMM or PyTorch. I replicated the changes from your pytorch PR and that seems to have worked. Thanks for the work on this, I hope it gets merged. |
@q10 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@q10 Any process towards landing? |
Hi @cyyever sorry for the delay, there have been some internal issues preventing the PR from being imported into our internal systems, but we are working to import and land this PR. |
@q10 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: Pull Request resolved: facebookresearch/FBGEMM#860 Fix the error ``` /var/lib/jenkins/workspace/third_party/fbgemm/src/FbgemmI8Spmdm.cc:188:41: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension] ``` X-link: pytorch#2736 Reviewed By: sryap Differential Revision: D69761012 Pulled By: q10 fbshipit-source-id: 58ed28af37a399ef5385e62340968dabdd09f260
Fix the error