Skip to content

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

Closed

Description

@safern

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

Activity

  1. added
    area-Infrastructure-coreclr
    untriaged
    on Feb 6, 2020
  2. added and removed
    untriaged
    area-Infrastructure-coreclr
    on Feb 6, 2020
  3. jkoritzinsky commented on Feb 8, 2020

    @jkoritzinsky
    Member

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

  4. robertpi commented on Feb 12, 2020

    @robertpi

    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

  5. trylek commented on Feb 12, 2020

    @trylek
    Member

    @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.

  6. robertpi commented on Feb 12, 2020

    @robertpi

    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.

  7. ViktorHofer commented on Feb 12, 2020

    @ViktorHofer
    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

  8. 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[/+] on Feb 18, 2020
  9. ghost locked as resolved and limited conversation to collaborators on Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions