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

Official build and CI builds failed with CMake Warning due to build agents updated VS #31888

Closed
safern opened this issue Feb 6, 2020 · 5 comments · Fixed by #32626
Closed

Comments

@safern
Copy link
Member

safern commented Feb 6, 2020

Official builds are currently hitting: #30845 because the build agents got updated to VS2019 16.4 and CMake is 3.15.1, we need 3.15.5 or later.

I will disable WarnAsError for Windows in the official builds shortly. We should revert that when this is fixed.

cc: @dotnet/runtime-infrastructure @MattGal

@jkoritzinsky
Copy link
Member

This is showing up now on the runtime-live-build pipeline.

@robertpi
Copy link

Hello,

I'm trying to build the latest master locally on windows 10, Visual Studio VS 2019, 16.4.1 and I'm getting this error:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB8065: Custom build for item "C:\code\dotnet\runtime\artifacts\obj\native\netcoreapp5.0-Windows_NT-Debug-x64\CMakeFiles\a61efa86ec94e068b992e83ccf5bfaea\INSTALL_force.rule" succeeded, but specified output "c:\code\dotnet\runtime\artifacts\obj\native\netcoreapp5.0-windows_nt-debug-x64\cmakefiles\install_force" has not been created. This may cause incremental build to work incorrectly. [C:\code\dotnet\runtime\artifacts\obj\native\netcoreapp5.0-Windows_NT-Debug-x64\install.vcxproj] [C:\code\dotnet\runtime\src\libraries\Native\build-native.proj]

This seems to be the same error as #30845, but I have the code from the PRs in this pull request disabling warning as errors.

I don't have CMake installed, it's unclear whether this is still necessary. The instructions about building under windows, which where once here, seem to have been removed: dotnet/corefx@81c91fa#diff-4b7d5829731d454157a0e13d9d46da42

@trylek
Copy link
Member

trylek commented Feb 12, 2020

@robertpi - I believe the updated build instructions for the consolidated runtime repo are at

https://github.com/dotnet/runtime/blob/master/docs/workflow/README.md

https://github.com/dotnet/runtime/blob/master/docs/workflow/requirements/windows-requirements.md

and related. I'm not sure what PR you are referring to. I fixed the issue for the runtime-live-build pipeline with

#31999

Please however note that this fix is specific to lab testing - it only modifies the yml scripts to pass around an extra parameter so it doesn't affect local builds. AFAIK our standard developer guidance is that building the dotnet/runtime repo requires CMake 3.15.5 or newer.

@robertpi
Copy link

It was just that CMake was missing. It builds fine with the latest cmake installed. Might be nice to have a link from the building docs to the requirements page, that's what confused me. Should I open a PR for that.

@ViktorHofer
Copy link
Member

@robertpi we already document that in the following way:

  1. The Readme.md links to the workflow instructions:

image

  1. The workflow instructions link to the build requirements:

image

@safern safern changed the title Official build failing with CMake Warning due to build agents updated VS Official build and CI builds failed with CMake Warning due to build agents updated VS Feb 18, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants