-
Notifications
You must be signed in to change notification settings - Fork 23.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
[1/N] Add -Wdeprecated and related fixes #108626
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/108626
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 63a111e with merge base 2c1554a ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
53d6177
to
fab245d
Compare
f8de1e1
to
2c34e4b
Compare
Successfully rebased |
aa2a6f1
to
63a111e
Compare
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
@pytorchbot label ciflow/binaries |
The merge job was canceled. If you believe this is a mistake, then you can re trigger it through pytorch-bot. |
@pytorchmergebot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
This PR follows #108626. Pull Request resolved: #109564 Approved by: https://github.com/ezyang
@pytorchbot revert -m "I'm getting errors internally that look like the below on x86_64-apple-ios-simulator with clang 16 D49440218" -c ghfirst
|
@pytorchbot successfully started a revert job. Check the current status here. |
@cyyever your PR has been successfully reverted. |
This reverts commit a53a677. Reverted #108626 on behalf of https://github.com/clee2000 due to I'm getting errors internally that look like the below on x86_64-apple-ios-simulator with clang 16 ([comment](#108626 (comment)))
@clee2000 Should we put x86_64-apple-ios-simulator tests in CI?
May I obtain the string literal because there is no string involved in c10/util/Optional.h |
I'm not sure what the string literal is tbh @ezyang says TR2_OPTIONAL_HOST_CONSTEXPR T const& operator*() const& {
return TR2_OPTIONAL_ASSERTED_EXPRESSION(initialized(), contained_val());
} is the critical line. This is what the rest of the error looks like, I've changed some things since I'm not sure what I'm actually allowed to post
Side note do you have slack? I thought the ios simulator tests would have been enough but I guess not? @malfet cc @ezyang |
@clee2000 Thank you so much,very helpful track back information. I will try to fix it tomorrow |
@clee2000 our iOS build are running using different version of xcode, this is why it was not caught |
This is reland of PRs ##108626 and #109564. We fixed the IOS build failure by changing ``` ((CHECK) ? (EXPR) : ([] { assert(!#CHECK); }(), (EXPR))) ``` to ``` ((CHECK) ? (EXPR) : ([] { assert(false); }(), (EXPR))) ``` in TR2_OPTIONAL_ASSERTED_EXPRESSION, since the former syntax was invalid on Apple Clang. Anyway, we could apply the simple fix hoping that c10::optional would be replaced by std::optional soon. We also enabled -Wdeprecated on c10. Pull Request resolved: #110019 Approved by: https://github.com/clee2000
This PR follows #108626. Hopefully we can enable the warning in the next PR. Pull Request resolved: #109698 Approved by: https://github.com/Skylion007, https://github.com/ezyang
This PR adds -Wdeprecated to CMake warnings and fixes related issues.
cc @EikanWang @jgong5 @ezyang @colesbury @Skylion007