Skip to content
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 broken windows build #1320

Merged
merged 19 commits into from
Sep 26, 2024
Merged

Fix broken windows build #1320

merged 19 commits into from
Sep 26, 2024

Conversation

andrewkho
Copy link
Contributor

@andrewkho andrewkho commented Sep 25, 2024

Windows build has been broken for a while on trunk, due to new MSVC deprecation warnings being treated by errors. It turns out the submodule pointer for aws-sdk-cpp hadn't been updated in a while. This PR updates it the pointer to 1.11.311, which can build on windows. Main branch does not build on MacOS due to a bug in cmake where it doesn't set the correct MACOSX_DEPLOYMENT_TARGET.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 25, 2024
@andrewkho andrewkho changed the base branch from andrewkh/update-ci-python-versions to main September 25, 2024 18:20
Copy link

pytorch-bot bot commented Sep 25, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/data/1320

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit cd94f06 with merge base a629426 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@@ -54,6 +54,9 @@ else()
else()
list(APPEND AWSSDK_LIBRARIES ${aws_cpp_sdk_INSTALL}/lib/lib${lib}.a)
endif()
if(MSVC)
target_compile_options(${lib} PRIVATE /W4 /WX)
Copy link
Contributor

@divyanshk divyanshk Sep 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick clarification, do we mean to make warnings surface better ? or suppress them ? (got confused by PR title 😄)

As far as I can tell /W4 should make even informational warnings surface. Source: https://learn.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level?view=msvc-170

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah sorry there's a compiler flag that makes warnings get treated as errors. In this case it's a deprecation warning and just trying to get it to ignore, not sure the right incantation

@ramanishsingh
Copy link
Contributor

LGTM!

Copy link
Contributor

@divyanshk divyanshk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@andrewkho andrewkho changed the title try to lower warning level Fix broken windows build Sep 25, 2024
@andrewkho andrewkho merged commit 69f2f23 into main Sep 26, 2024
47 checks passed
@andrewkho andrewkho deleted the andrewkh/ignore-msvc-warning branch September 26, 2024 00:42
andrewkho added a commit that referenced this pull request Sep 26, 2024
---------

Co-authored-by: andrewkh <[email protected]>
andrewkho added a commit that referenced this pull request Sep 26, 2024
---------

Co-authored-by: andrewkh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants