FTorch
FTorch copied to clipboard
Windows CI failing to find TorchScript during build
-- Building with Fortran PyTorch coupling
-- Configuring done (20.6s)
-- Generating done (0.2s)
-- Build files have been written to: D:/a/FTorch/FTorch/build
[ 5%] Building Fortran object CMakeFiles/ftorch.dir/src/ftorch.F90.obj
[ 11%] Building Fortran object CMakeFiles/ftorch.dir/src/ftorch_test_utils.f90.obj
[ 16%] Building CXX object CMakeFiles/ftorch.dir/src/ctorch.cpp.obj
In file included from D:\a\FTorch\FTorch\src\ctorch.cpp:6:
In file included from C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\site-packages\torch\include\torch/script.h:3:
In file included from C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\site-packages\torch\include\torch/csrc/api/include/torch/types.h:3:
In file included from C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\site-packages\torch\include\ATen/ATen.h:7:
In file included from C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\site-packages\torch\include\ATen/Context.h:3:
In file included from C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\site-packages\torch\include\ATen/BlasBackend.h:3:
In file included from C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\site-packages\torch\include\c10/util/Exception.h:5:
In file included from C:\hostedtoolcache\windows\Python\3.13.2\x64\Lib\site-packages\torch\include\c10/macros/Macros.h:3:
In file included from C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include\cassert:7:
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include\yvals_core.h(927,1): error: static assertion failed: error STL1000: Unexpected compiler version, expected Clang 18.0.0 or newer.
_EMIT_STL_ERROR(STL1000, "Unexpected compiler version, expected Clang 18.0.0 or newer.");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\include\yvals_core.h(536,44): note: expanded from macro '_EMIT_STL_ERROR'
#define _EMIT_STL_ERROR(NUMBER, MESSAGE) static_assert(false, "error " #NUMBER ": " MESSAGE)
^ ~~~~~
1 error generated.
NMAKE : fatal error U1077: 'C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin\icx.exe @C:\Users\RUNNER~1\AppData\Local\Temp\nm5AA4.tmp' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\nmake.exe" -s -f CMakeFiles\ftorch.dir\build.make /nologo -SL CMakeFiles\ftorch.dir\build' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\nmake.exe" -s -f CMakeFiles\Makefile2 /nologo -LS all' : return code '0x2'
Stop.
-- Install configuration: "Release"
CMake Error at build/cmake_install.cmake:40 (file):
file INSTALL cannot find "D:/a/FTorch/FTorch/build/ftorch.dll": File
exists.
This error appeared overnight and is affecting various PRs with unrelated changes (e.g., #297, #272). It looks like something got updated in GitHub Actions and it's causing issues for us.