Skip to content

git clone; ./build.cmd fails #32483

Closed
Closed

Description

@guylangston

@benaadams suggest that I raise this issue as he had numerous reports from the wild:

Steps to reproduce:

  • git clone https://github.com/dotnet/runtime.git
  • ./build.sh

Results in error:

Build FAILED.

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB8065: Custom build for item "E:\Projects\runtime\artifacts\obj\native\netcoreapp5.0-Windows_NT-Debug-x64\CMakeFiles\f69e234f9a3a26126514dd267f0ee80f\INSTALL_force.rule" succeeded, but specified output "e:\projects\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. [E:\Projects\runtime\artifacts\obj\native\netcoreapp5.0-Windows_NT-Debug-x64\install.vcxproj] [E:\Projects\runtime\src\libraries\Native\build-native.proj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB8065: Custom build for item "E:\Projects\runtime\artifacts\obj\native\netcoreapp5.0-Windows_NT-Debug-x64\CMakeFiles\f69e234f9a3a26126514dd267f0ee80f\INSTALL_force.rule" succeeded, but specified output "e:\projects\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. [E:\Projects\runtime\artifacts\obj\native\netcoreapp5.0-Windows_NT-Debug-x64\install.vcxproj] [E:\Projects\runtime\src\libraries\Native\build-native.proj]
    0 Warning(s)
    2 Error(s)
Time Elapsed 00:21:44.90
(NETCORE_ENGINEERING_TELEMETRY=Category) Build failed.

Environment

  • Windows10
  • Visual Studio 16.4.5
    (Let me know what addition information you need)
  • git source: e7cd7bc1227a74d8e71226bf60a5969c8d57021f (HEAD -> master, origin/master, origin/HEAD) [master] Update dependencies from mono/linker dotnet/arcade (#32472)

Work-Around

$ echo "" > "e:\projects\runtime\artifacts\obj\native\netcoreapp5.0-windows_nt-debug-x64\cmakefiles\install_force"
$ ./build.sh

Build succeeded.
    0 Warning(s)
    0 Error(s)

Activity

  1. added
    area-Infrastructure-coreclr
    untriaged
    on Feb 18, 2020
  2. vcsjones commented on Feb 18, 2020

    @vcsjones
    Member

    I ran in to this when my installed cmake version was below 3.15.5. Are you using a version of cmake that is older than that?

    @jkoritzinsky

  3. guylangston commented on Feb 18, 2020

    @guylangston
    Author

    I ran in to this when my installed cmake version was below 3.15.5. Are you using a version of cmake that is older than that?

    @jkoritzinsky

    cmake version 3.15.19101501-MSVC_2

  4. vcsjones commented on Feb 18, 2020

    @vcsjones
    Member

    @guylangston
    @jkoritzinsky can probably confirm but the last I understood, the version of cmake that ships with Visual Studio is a little out of date. Can you try downloading the latest version, ensure it is on your PATH (make sure cmake --version output is the one you just installed), and seeing if that resolves the issue?

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

  5. guylangston commented on Feb 18, 2020

    @guylangston
    Author
    $ choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
    => cmake v3.16.2 [Approved]
    

    Then:

    **********************************************************************
    ** Visual Studio 2019 Developer Command Prompt v16.4.5
    ** Copyright (c) 2019 Microsoft Corporation
    **********************************************************************
    
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>cmake --version
    cmake version 3.16.2
    
    E:\Projects\runtime>where cmake
    C:\Program Files\CMake\bin\cmake.exe
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe
    
    E:\Projects>rmdir /s /q runtime
    ...
    
    E:\Projects>git clone https://github.com/dotnet/runtime.git
    ...
    
    E:\Projects> build.cmd
    ...
    Build succeeded.
        0 Warning(s)
        0 Error(s)
    
    Time Elapsed 00:20:24.86
    

    @vcsjones Looks like you were correct.

  6. danmoseley commented on Feb 18, 2020

    @danmoseley
    Contributor

    https://github.com/dotnet/runtime/blob/master/docs/workflow/requirements/windows-requirements.md#cmake specifies 3.15.5 -- one would think that "3.15.19101501-MSVC_2" would meet that criterion but I'm guessing that 19101501 is not actually the 19 millionth revision of 3.15 and is just some unusual versioning scheme.

    Closing since this seems resolved.

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

    Labels

    area-Infrastructure-coreclruntriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions