Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.
This repository was archived by the owner on Mar 2, 2022. It is now read-only.

Can't Build in Windows 10 #77

@GCRhoads

Description

@GCRhoads

Steps to reproduce

Everything work correctly until I try the cmake command.

Observed Results

cmake .. -DCMAKE_BUILD_TYPE=relwithdebinfo –DPYTORCH15=ON
-- The C compiler identification is MSVC 19.29.30037.0
-- The CXX compiler identification is MSVC 19.29.30037.0
-- Detecting C compiler ABI info
CMake Error: Generator: execution of make failed. Make command was /nologo cmTC_e285f\fast &&
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x86/cl.exe
CMake Error: Generator: execution of make failed. Make command was /nologo cmTC_e285f\fast &&
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x86/cl.exe - broken
CMake Error at C:/Users/glenn/miniconda3/Library/share/cmake-3.18/Modules/CMakeTestCCompiler.cmake:66 (message):
The C compiler

"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x86/cl.exe

is not able to compile a simple test program.

It fails with the following output:

Change Dir: C/Users/glenn/Documents/Polygames/polygames/build/CMakeFiles/CMakeTmp

Run Build Command(s):nmake /nologo cmTC_0b369\fast && The system cannot find the file specified
Generator: execution of make failed. Make command was: nmake /nolog cmTC_0b369\fast &&

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)

-- Configuring incomplete, errors occurred!
See also "C:/Users/glenn/Documents/Polygames/polygames/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/glenn/Documents/Polygames/polygames/build/CMakeFiles/CMakeError.log".

------------------------------------------------------CMakeError.log file--------------------------------------------------

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler:
Build flags:
Id flags:

The output was:
1
Microsoft (R) Build Engine version 16.10.1+2fd48ab73 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 6/11/2021 12:29:01 AM.
Project "C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug".
Creating directory "Debug\CompilerIdC.tlog".
InitializeBuildStatus:
Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\" /Fd"Debug\vc142.pdb" /external:env:EXTERNAL_INCLUDE /external:W0 /Gd /TC /FC /errorReport:queue CMakeCCompilerId.c
CMakeCCompilerId.c
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CMakeCCompilerId.c(20,52): error C2146: syntax error: missing ';' before identifier 'COMPILER_ID' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj]
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CMakeCCompilerId.c(20,64): error C2143: syntax error: missing '{' before 'string' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj]
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CMakeCCompilerId.c(20,64): error C2059: syntax error: 'string' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj]
Done Building Project "C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) ->
(ClCompile target) ->
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CMakeCCompilerId.c(20,52): error C2146: syntax error: missing ';' before identifier 'COMPILER_ID' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj]
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CMakeCCompilerId.c(20,64): error C2143: syntax error: missing '{' before 'string' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj]
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CMakeCCompilerId.c(20,64): error C2059: syntax error: 'string' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj]

0 Warning(s)
3 Error(s)

Time Elapsed 00:00:02.89

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler:
Build flags:
Id flags:

The output was:
1
Microsoft (R) Build Engine version 16.10.1+2fd48ab73 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 6/11/2021 12:29:04 AM.
Project "C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug".
Creating directory "Debug\CompilerIdC.tlog".
InitializeBuildStatus:
Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\" /Fd"Debug\vc142.pdb" /external:env:EXTERNAL_INCLUDE /external:W0 /Gd /TC /FC /errorReport:queue CMakeCCompilerId.c
CMakeCCompilerId.c
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CMakeCCompilerId.c(20,52): error C2146: syntax error: missing ';' before identifier 'COMPILER_ID' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj]
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CMakeCCompilerId.c(20,64): error C2143: syntax error: missing '{' before 'string' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj]
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CMakeCCompilerId.c(20,64): error C2059: syntax error: 'string' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj]
Done Building Project "C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) ->
(ClCompile target) ->
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CMakeCCompilerId.c(20,52): error C2146: syntax error: missing ';' before identifier 'COMPILER_ID' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj]
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CMakeCCompilerId.c(20,64): error C2143: syntax error: missing '{' before 'string' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj]
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CMakeCCompilerId.c(20,64): error C2059: syntax error: 'string' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdC\CompilerIdC.vcxproj]

0 Warning(s)
3 Error(s)

Time Elapsed 00:00:01.34

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler:
Build flags:
Id flags:

The output was:
1
Microsoft (R) Build Engine version 16.10.1+2fd48ab73 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 6/11/2021 12:29:06 AM.
Project "C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug".
Creating directory "Debug\CompilerIdCXX.tlog".
InitializeBuildStatus:
Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\" /Fd"Debug\vc142.pdb" /external:env:EXTERNAL_INCLUDE /external:W0 /Gd /TP /FC /errorReport:queue CMakeCXXCompilerId.cpp
CMakeCXXCompilerId.cpp
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CMakeCXXCompilerId.cpp(14,52): error C2146: syntax error: missing ';' before identifier 'COMPILER_ID' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj]
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CMakeCXXCompilerId.cpp(14,64): error C2143: syntax error: missing ';' before 'string' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj]
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CMakeCXXCompilerId.cpp(14,64): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj]
Done Building Project "C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) ->
(ClCompile target) ->
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CMakeCXXCompilerId.cpp(14,52): error C2146: syntax error: missing ';' before identifier 'COMPILER_ID' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj]
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CMakeCXXCompilerId.cpp(14,64): error C2143: syntax error: missing ';' before 'string' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj]
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CMakeCXXCompilerId.cpp(14,64): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj]

0 Warning(s)
3 Error(s)

Time Elapsed 00:00:01.60

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler:
Build flags:
Id flags:

The output was:
1
Microsoft (R) Build Engine version 16.10.1+2fd48ab73 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 6/11/2021 12:29:08 AM.
Project "C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
Creating directory "Debug".
Creating directory "Debug\CompilerIdCXX.tlog".
InitializeBuildStatus:
Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX64\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:column /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\" /Fd"Debug\vc142.pdb" /external:env:EXTERNAL_INCLUDE /external:W0 /Gd /TP /FC /errorReport:queue CMakeCXXCompilerId.cpp
CMakeCXXCompilerId.cpp
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CMakeCXXCompilerId.cpp(14,52): error C2146: syntax error: missing ';' before identifier 'COMPILER_ID' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj]
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CMakeCXXCompilerId.cpp(14,64): error C2143: syntax error: missing ';' before 'string' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj]
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CMakeCXXCompilerId.cpp(14,64): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj]
Done Building Project "C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) ->
(ClCompile target) ->
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CMakeCXXCompilerId.cpp(14,52): error C2146: syntax error: missing ';' before identifier 'COMPILER_ID' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj]
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CMakeCXXCompilerId.cpp(14,64): error C2143: syntax error: missing ';' before 'string' [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj]
C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CMakeCXXCompilerId.cpp(14,64): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int [C:\Users\glenn\polygames\build\CMakeFiles\3.19.6\CompilerIdCXX\CompilerIdCXX.vcxproj]

0 Warning(s)
3 Error(s)

Time Elapsed 00:00:01.27

Expected Results

  • What did you expect to happen?

Relevant Code

// TODO(you): code here to reproduce the problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions