-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Cannot build clr after installing latest VS nightly #41886
Comments
Tagging subscribers to this area: @ViktorHofer |
For reference the file that generates that Interesting that this didn't happen before this VS update. Based on this snippet from the docs:
I'm wondering if the default preprocessor warnings changed? Looking at the checked in CC @hoyosjs @mikem8361 have you run across this issue before when changing this file? |
I confirmed that appending runtime/eng/native/configurecompiler.cmake Lines 445 to 447 in 22927dd
See also internal tracking items https://devdiv.visualstudio.com/DevDiv/_workitems/edit/966470 and https://microsoft.visualstudio.com/OS/_workitems/edit/23240387 for further context. |
The CPP checked in version is just the windows C version renamed. So this is a toolset change indeed, and there's a few places where the new preprocessor will hit this - anything that touches a header like winbase.h or minwindef.h |
Possible root cause is that the intermediate project file corguids_obj.vcxproj contains the following line: <AdditionalOptions>%(AdditionalOptions) /Zm200 /Zc:strictStrings /w34092 /w34121 /w34125 /w34130 /w34132 /w34212 /w34530 /w35038 /w44177 /ZH:SHA_256 /source-charset:utf-8 -std:c11</AdditionalOptions> Note the " Will need to hand the investigation off to somebody else, as I think I've gone as far as I can go with my current skill set. :) |
Keeping this open to track reacting to any suggestions from MSVC / Windows SDK team. |
This seems to be fixed on master, but I have the same issue on release/5.0 |
What's the current status of this issue? Or in the other words - how we can compile 5.0 version on Windows? On a fresh
Update: Just manually using PR #41900 helps, maybe it could be just merged to the |
I can confirm that this issue also exists in release/3.1 and @GrabYourPitchforks change fixes the errors. /cc @trylek |
3.1 port -> dotnet/coreclr#28142 |
Closing as this should now be fixed in all branches that we care about. |
Just updated to VS 2019 Int Preview 16.8.0 Preview 3.0 [30504.10.main], and builds are failing on my local box. Repros in both the master and the release/5.0-rc2 branches.
Error appears even after running
git clean -xdf
.More info on the warning: https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/c5105
The text was updated successfully, but these errors were encountered: