VS: ifort detecting ABI - endless process
It is really strange case, but reproduces at 8+ hosts in our company. Environment:
- Microsoft Visual Studio Community 2019 Version 16.11.2
- CMake 3.21.2
- Intel fortran (Doesn't matter - we tested with 2019 XE, 2020 XE, OneAPI 2021)
- Use Visual Studio (-G "Visual Studio 16 2019" -A x64 or Win32) for solution file preparation
Simple project:
CMAKE_MINIMUM_REQUIRED(VERSION 3.18.3)
PROJECT(Test LANGUAGES Fortran)
ADD_LIBRARY(${PROJECT_NAME} SHARED test.f)
output log:
Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19043.
The C compiler identification is MSVC 19.29.30133.0
The CXX compiler identification is MSVC 19.29.30133.0
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
Detecting C compile features
Detecting C compile features - done
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
Detecting CXX compile features
Detecting CXX compile features - done
The Fortran compiler identification is Intel 2021.3.0.20210609
Detecting Fortran compiler ABI info
and Detecting Fortran compiler ABI info
is endless process.
Look, ninja generator (Windows) work good and without any errors:
-- The Fortran compiler identification is Intel 2021.3.0.20210609
-- Check for working Fortran compiler: C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/bin/intel64/ifort.exe
-- Check for working Fortran compiler: C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/bin/intel64/ifort.exe - works
-- Checking whether C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/bin/intel64/ifort.exe supports Fortran 90
-- Checking whether C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/bin/intel64/ifort.exe supports Fortran 90 - yes
-- Fortran compiler ID = Intel 2021.3.0.20210609 x64
The main thing, that ALL of my projects worked well before Windows updated.
Current version:
Выпуск Windows 10 Pro
Версия 21H1
Дата установки 17.11.2020
Сборка ОС 19043.1165
Взаимодействие Windows Feature Experience Pack 120.2212.3530.0
Windows successfully installed next KB:
And after reboot - generator was broken...
Looks like it the first case (and ticket), but KB will be installed for many PC host and cmake can't generate solution after update!