Skip to content

Cannot build CoreCLR on Windows #39787

@alexcovington

Description

@alexcovington

I'm having trouble building the CoreCLR on Windows both in and outside of Visual Studio using the building workflow in the documentation.

Currently, whenever I run the command:

.\build.cmd -a x64 -c debug

I get the error message:

 BUILD: Error: native component build failed. Refer to the build log files for details.
      C:\Users\acovingt\runtime\src\coreclr\..\..\artifacts\log\Debug\CoreCLR_Windows_NT__x64__Debug.log
      C:\Users\acovingt\runtime\src\coreclr\..\..\artifacts\log\Debug\CoreCLR_Windows_NT__x64__Debug.wrn
      C:\Users\acovingt\runtime\src\coreclr\..\..\artifacts\log\Debug\CoreCLR_Windows_NT__x64__Debug.err
C:\Users\acovingt\runtime\src\coreclr\runtime.proj(32,5): error MSB3073: The command ""C:\Users\acovingt\runtime\src\coreclr\build-runtime.cmd" -x64 -debug" exited with code 1.

Build FAILED.

C:\Users\acovingt\runtime\src\coreclr\runtime.proj(32,5): error MSB3073: The command ""C:\Users\acovingt\runtime\src\coreclr\build-runtime.cmd" -x64 -debug" exited with code 1.
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:04:10.35
Build failed.
Some builds failed:
        Configuration: Debug, Architecture: x64

The content of the error log file is:

    38>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): error MSB6006: "cmd.exe" exited with code 9009. [C:\Users\acovingt\runtime\artifacts\obj\coreclr\Windows_NT.x64.Debug\src\ToolBox\SOS\DacTableGen\gen_dialib.vcxproj]

I am able to build using the equivalent scripts in WSL, just not Windows. Any help would be appreciated.

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