Building Pytorch from source internal compiler error

username: abcde
cooked: <p>i am trying to build pytorch from source (Windows) using the following commands:<br>
-installed all dependencies according to the github page except i used Visual Studio build tools 2022.<br>
-git clean -d -f -x<br>
-git submodule sync<br>
-git submodule update --init --recursive<br>
install_magma.bat # here i edited the curled link to include release<br>
install_mkl.bat<br>
install_sccache.bat<br>
set TORCH_CUDA_ARCH_LIST=3.5<br>
python setup.py develop</p>
<p>returns the following errormessage:</p>
<pre><code class="lang-auto">FAILED: caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/native/cpu/PowKernel.cpp.DEFAULT.cpp.obj
C:\Users\Justu\scoop\shims\sccache.exe C:\PROGRA~2\MICROS~2\2022\BUILDT~1\VC\Tools\MSVC\1438~1.331\bin\Hostx64\x64\cl.exe  /nologo /TP -DAT_PER_OPERATOR_HEADERS -DCAFFE2_BUILD_MAIN_LIB -DCPUINFO_SUPPORTED_PLATFORM=1 -DFMT_HEADER_ONLY=1 -DIDEEP_USE_MKL -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DNOMINMAX -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DUSE_C10D_GLOO -DUSE_DISTRIBUTED -DUSE_EXTERNAL_MZCRC -DUSE_MIMALLOC -DWIN32_LEAN_AND_MEAN -D_CRT_SECURE_NO_DEPRECATE=1 -D_OPENMP_NOFORCE_MANIFEST -D_UCRT_LEGACY_INFINITY -Dtorch_cpu_EXPORTS -IC:\Users\Justu\pytorch\build\aten\src -IC:\Users\Justu\pytorch\aten\src -IC:\Users\Justu\pytorch\build -IC:\Users\Justu\pytorch -IC:\Users\Justu\pytorch\cmake\..\third_party\benchmark\include -IC:\Users\Justu\pytorch\third_party\onnx -IC:\Users\Justu\pytorch\build\third_party\onnx -IC:\Users\Justu\pytorch\third_party\foxi -IC:\Users\Justu\pytorch\build\third_party\foxi -IC:\Users\Justu\pytorch\third_party\mimalloc\include -IC:\Users\Justu\pytorch\torch\csrc\api -IC:\Users\Justu\pytorch\torch\csrc\api\include -IC:\Users\Justu\pytorch\caffe2\aten\src\TH -IC:\Users\Justu\pytorch\build\caffe2\aten\src\TH -IC:\Users\Justu\pytorch\build\caffe2\aten\src -IC:\Users\Justu\pytorch\build\caffe2\..\aten\src -IC:\Users\Justu\pytorch\torch\csrc -IC:\Users\Justu\pytorch\third_party\miniz-2.1.0 -IC:\Users\Justu\pytorch\third_party\kineto\libkineto\include -IC:\Users\Justu\pytorch\third_party\kineto\libkineto\src -IC:\Users\Justu\pytorch\aten\src\ATen\.. -IC:\Users\Justu\pytorch\c10\.. -IC:\Users\Justu\pytorch\third_party\pthreadpool\include -IC:\Users\Justu\pytorch\third_party\cpuinfo\include -IC:\Users\Justu\pytorch\third_party\fbgemm\include -IC:\Users\Justu\pytorch\third_party\fbgemm -IC:\Users\Justu\pytorch\third_party\fbgemm\third_party\asmjit\src -IC:\Users\Justu\pytorch\third_party\ittapi\src\ittnotify -IC:\Users\Justu\pytorch\third_party\FP16\include -IC:\Users\Justu\pytorch\third_party\fmt\include -IC:\Users\Justu\pytorch\build\third_party\ideep\mkl-dnn\include -IC:\Users\Justu\pytorch\third_party\ideep\mkl-dnn\src\..\include -IC:\Users\Justu\pytorch\third_party\flatbuffers\include -external:IC:\Users\Justu\pytorch\build\third_party\gloo -external:IC:\Users\Justu\pytorch\cmake\..\third_party\gloo -external:IC:\Users\Justu\pytorch\cmake\..\third_party\googletest\googlemock\include -external:IC:\Users\Justu\pytorch\cmake\..\third_party\googletest\googletest\include -external:IC:\Users\Justu\pytorch\third_party\protobuf\src -external:I\mkl\include -external:IC:\Users\Justu\pytorch\third_party\XNNPACK\include -external:IC:\Users\Justu\pytorch\third_party\ittapi\include -external:IC:\Users\Justu\pytorch\cmake\..\third_party\eigen -external:I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -external:IC:\Users\Justu\pytorch\third_party\ideep\mkl-dnn\include\oneapi\dnnl -external:IC:\Users\Justu\pytorch\third_party\ideep\include -external:IC:\Users\Justu\pytorch\caffe2 -external:W0 /DWIN32 /D_WINDOWS /GR /EHsc /Zc:__cplusplus /bigobj /FS /utf-8 -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOCUPTI -DLIBKINETO_NOROCTRACER -DUSE_FBGEMM -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE /wd4624 /wd4068 /wd4067 /wd4267 /wd4661 /wd4717 /wd4244 /wd4804 /wd4273 -DHAVE_AVX2_CPU_DEFINITION /O2 /Ob2 /DNDEBUG /bigobj -DNDEBUG -std:c++17 -MD -DMKL_HAS_SBGEMM -DCAFFE2_USE_GLOO /EHsc /bigobj -O2 -DONNX_BUILD_MAIN_LIB -openmp:experimental -I/mkl/include /fp:strict  /DCPU_CAPABILITY=DEFAULT /DCPU_CAPABILITY_DEFAULT /showIncludes /Focaffe2\CMakeFiles\torch_cpu.dir\__\aten\src\ATen\native\cpu\PowKernel.cpp.DEFAULT.cpp.obj /Fdcaffe2\CMakeFiles\torch_cpu.dir\ /FS -c C:\Users\Justu\pytorch\build\aten\src\ATen\native\cpu\PowKernel.cpp.DEFAULT.cpp
C:\Users\Justu\pytorch\aten\src\ATen/cpu/vec/vec_base.h(150): fatal error C1001:  internal compiler error.
(Compilerdatei "D:\a\_work\1\s\src\vctools\Compiler\CxxFE\sl\p1\c\toinil.c", Zeile 910).
ninja: build stopped: subcommand failed.
</code></pre>
<p>Any help is greatly appreciated!</p>