This is the output from the CMakeOutput,log
The system is: Windows - 10.0.22000 - AMD64
Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” succeeded.
Compiler:
Build flags:
Id flags:
The output was:
0
And this is the output from the CMakeError.log
Performing C++ SOURCE FILE Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING failed with the following output:
Change Dir: C:/Users/Kasirat/Documents/Python Scripts/Pytorch_requirements/pytorch/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/MSBuild.exe cmTC_8973d.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R)
Build Engine version 16.9.2+58c36d143 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29924 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
src.cxx
cl /c /Z7 /W1 /WX- /diagnostics:column /MP /Od /Ob0 /D WIN32 /D _WINDOWS /D CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING /D “CMAKE_INTDIR="Debug"” /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline
/GR /std:c++14 /Fo"cmTC_8973d.dir\Debug\" /Fd"cmTC_8973d.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue /w /bigobj -std=c++14 /w /bigobj “C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles
CMakeTmp\src.cxx”
cl : command line warning D9025: overriding ‘/W1’ with ‘/w’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_8973d.vcxproj]
cl : command line warning D9002: ignoring unknown option ‘-std=c++14’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_8973d.vcxproj]
C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\src.cxx(1,10): fatal error C1083: Cannot open include file: ‘glog/stl_logging.h’: No such file or directory
[C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_8973d.vcxproj]
Source file was:
#include <glog/stl_logging.h>
int main(int argc, char** argv) {
return 0;
}
Performing C++ SOURCE FILE Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY failed with the following output:
Change Dir: C:/Users/Kasirat/Documents/Python Scripts/Pytorch_requirements/pytorch/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/MSBuild.exe cmTC_ddffd.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build
Engine version 16.9.2+58c36d143 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29924 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
src.cxx
cl /c /Z7 /W1 /WX- /diagnostics:column /MP /Od /Ob0 /D WIN32 /D _WINDOWS /D COMPILER_SUPPORTS_HIDDEN_VISIBILITY /D “CMAKE_INTDIR="Debug"” /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR
/std:c++14 /Fo"cmTC_ddffd.dir\Debug\" /Fd"cmTC_ddffd.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue /w /bigobj /w /bigobj -fvisibility=hidden “C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build
CMakeFiles\CMakeTmp\src.cxx”
cl : command line warning D9025: overriding ‘/W1’ with ‘/w’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_ddffd.vcxproj]
cl : command line warning D9002: ignoring unknown option ‘-fvisibility=hidden’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_ddffd.vcxproj]
cmTC_ddffd.vcxproj → C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\Debug\cmTC_ddffd.exe
Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY failed with the following output:
Change Dir: C:/Users/Kasirat/Documents/Python Scripts/Pytorch_requirements/pytorch/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/MSBuild.exe cmTC_9f73f.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build
Engine version 16.9.2+58c36d143 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29924 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
src.cxx
cl /c /Z7 /W1 /WX- /diagnostics:column /MP /Od /Ob0 /D WIN32 /D _WINDOWS /D COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY /D “CMAKE_INTDIR="Debug"” /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline
/GR /std:c++14 /Fo"cmTC_9f73f.dir\Debug\" /Fd"cmTC_9f73f.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue /w /bigobj /w /bigobj -fvisibility-inlines-hidden “C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch
build\CMakeFiles\CMakeTmp\src.cxx”
cl : command line warning D9025: overriding ‘/W1’ with ‘/w’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_9f73f.vcxproj]
cl : command line warning D9002: ignoring unknown option ‘-fvisibility-inlines-hidden’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_9f73f.vcxproj]
cmTC_9f73f.vcxproj → C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\Debug\cmTC_9f73f.exe
Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING failed with the following output:
Change Dir: C:/Users/Kasirat/Documents/Python Scripts/Pytorch_requirements/pytorch/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/MSBuild.exe cmTC_8dca0.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.9.2+58c36d143 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29924 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
src.cxx
cl /c /Z7 /W1 /WX- /diagnostics:column /MP /Od /Ob0 /D WIN32 /D _WINDOWS /D CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING /D “CMAKE_INTDIR="Debug"” /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++14 /Fo"cmTC_8dca0.dir\Debug\" /Fd"cmTC_8dca0.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue /w /bigobj -std=c++14 /w /bigobj “C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\src.cxx”
cl : command line warning D9025: overriding ‘/W1’ with ‘/w’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_8dca0.vcxproj]
cl : command line warning D9002: ignoring unknown option ‘-std=c++14’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_8dca0.vcxproj]
C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\src.cxx(1,10): fatal error C1083: Cannot open include file: ‘glog/stl_logging.h’: No such file or directory [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_8dca0.vcxproj]
Source file was:
#include <glog/stl_logging.h>
int main(int argc, char** argv) {
return 0;
}
Performing C++ SOURCE FILE Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY failed with the following output:
Change Dir: C:/Users/Kasirat/Documents/Python Scripts/Pytorch_requirements/pytorch/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/MSBuild.exe cmTC_2533c.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.9.2+58c36d143 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29924 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
src.cxx
cl /c /Z7 /W1 /WX- /diagnostics:column /MP /Od /Ob0 /D WIN32 /D _WINDOWS /D COMPILER_SUPPORTS_HIDDEN_VISIBILITY /D “CMAKE_INTDIR="Debug"” /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++14 /Fo"cmTC_2533c.dir\Debug\" /Fd"cmTC_2533c.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue /w /bigobj /w /bigobj -fvisibility=hidden “C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\src.cxx”
cl : command line warning D9025: overriding ‘/W1’ with ‘/w’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_2533c.vcxproj]
cl : command line warning D9002: ignoring unknown option ‘-fvisibility=hidden’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_2533c.vcxproj]
cmTC_2533c.vcxproj → C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\Debug\cmTC_2533c.exe
Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY failed with the following output:
Change Dir: C:/Users/Kasirat/Documents/Python Scripts/Pytorch_requirements/pytorch/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/MSBuild.exe cmTC_f388e.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.9.2+58c36d143 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29924 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
src.cxx
cl /c /Z7 /W1 /WX- /diagnostics:column /MP /Od /Ob0 /D WIN32 /D _WINDOWS /D COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY /D “CMAKE_INTDIR="Debug"” /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++14 /Fo"cmTC_f388e.dir\Debug\" /Fd"cmTC_f388e.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue /w /bigobj /w /bigobj -fvisibility-inlines-hidden “C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\src.cxx”
cl : command line warning D9025: overriding ‘/W1’ with ‘/w’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_f388e.vcxproj]
cl : command line warning D9002: ignoring unknown option ‘-fvisibility-inlines-hidden’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_f388e.vcxproj]
cmTC_f388e.vcxproj → C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\Debug\cmTC_f388e.exe
Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING failed with the following output:
Change Dir: C:/Users/Kasirat/Documents/Python Scripts/Pytorch_requirements/pytorch/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/MSBuild.exe cmTC_d40c1.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.9.2+58c36d143 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29924 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
src.cxx
cl /c /Z7 /W1 /WX- /diagnostics:column /MP /Od /Ob0 /D WIN32 /D _WINDOWS /D CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING /D “CMAKE_INTDIR="Debug"” /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++14 /Fo"cmTC_d40c1.dir\Debug\" /Fd"cmTC_d40c1.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue /w /bigobj -std=c++14 /w /bigobj “C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\src.cxx”
cl : command line warning D9025: overriding ‘/W1’ with ‘/w’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_d40c1.vcxproj]
cl : command line warning D9002: ignoring unknown option ‘-std=c++14’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_d40c1.vcxproj]
C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\src.cxx(1,10): fatal error C1083: Cannot open include file: ‘glog/stl_logging.h’: No such file or directory [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_d40c1.vcxproj]
Source file was:
#include <glog/stl_logging.h>
int main(int argc, char** argv) {
return 0;
}
Performing C++ SOURCE FILE Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY failed with the following output:
Change Dir: C:/Users/Kasirat/Documents/Python Scripts/Pytorch_requirements/pytorch/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/MSBuild.exe cmTC_12978.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.9.2+58c36d143 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29924 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
src.cxx
cl /c /Z7 /W1 /WX- /diagnostics:column /MP /Od /Ob0 /D WIN32 /D _WINDOWS /D COMPILER_SUPPORTS_HIDDEN_VISIBILITY /D “CMAKE_INTDIR="Debug"” /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++14 /Fo"cmTC_12978.dir\Debug\" /Fd"cmTC_12978.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue /w /bigobj /w /bigobj -fvisibility=hidden “C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\src.cxx”
cl : command line warning D9025: overriding ‘/W1’ with ‘/w’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_12978.vcxproj]
cl : command line warning D9002: ignoring unknown option ‘-fvisibility=hidden’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_12978.vcxproj]
cmTC_12978.vcxproj → C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\Debug\cmTC_12978.exe
Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY failed with the following output:
Change Dir: C:/Users/Kasirat/Documents/Python Scripts/Pytorch_requirements/pytorch/build/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/MSBuild.exe cmTC_c709d.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.9.2+58c36d143 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29924 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
src.cxx
cl /c /Z7 /W1 /WX- /diagnostics:column /MP /Od /Ob0 /D WIN32 /D _WINDOWS /D COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY /D “CMAKE_INTDIR="Debug"” /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++14 /Fo"cmTC_c709d.dir\Debug\" /Fd"cmTC_c709d.dir\Debug\vc142.pdb" /Gd /TP /errorReport:queue /w /bigobj /w /bigobj -fvisibility-inlines-hidden “C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\src.cxx”
cl : command line warning D9025: overriding ‘/W1’ with ‘/w’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_c709d.vcxproj]
cl : command line warning D9002: ignoring unknown option ‘-fvisibility-inlines-hidden’ [C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\cmTC_c709d.vcxproj]
cmTC_c709d.vcxproj → C:\Users\Kasirat\Documents\Python Scripts\Pytorch_requirements\pytorch\build\CMakeFiles\CMakeTmp\Debug\cmTC_c709d.exe
Source file was:
int main() { return 0; }
I had made a mistake in “set CMAKE_INCLUDE_PATH" and “set LIB", instead of leading to path to mkl I pointed to magma, which I changed, but still getting the same issue.
I was only able to get to the build stage if I unset CMAKE_GENERATOR_TOOLSET_VERSION, this is a tip I got from cmake error build failed · Issue #21893 · pytorch/pytorch · GitHub