I am trying to build an application called 'eccodes' produced by an organisation called 'ECMWF'.
I have CMake (version 3.19), Visual Studio 2019 Community edition (version 16.9.3) installed and Parallel Studio XE 2020 (version 19.1.0).
I installed the Visual Studio and then the Parallel Studio XE. After installing I ran:
To do the build in the command prompt I first go to:
C:\Program Files (x86)\IntelSWTools\parallel_studio_xe_2020.0.075\compilers_and_libraries_2020\windows\bin
Then I run the following:
cmake -DBASH_EXE=C:/PATH_TO_BASH.EXE/ C:/PATH_TO_ECCODES/eccodes -DCMAKE_Fortran_COMPILER="C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2020.0.166/windows/bin/intel64_ia32/ifort"
-- Detecting Fortran compiler ABI info - failed
-- Check for working Fortran Compiler: C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2020.0.166/windows/bin/intel64_ia32/ifort.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.19/Modules/CMakeTestFortranCompiler.cmake:51 (message):
The Fortran compiler
"C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2020.0.166/windows/bin/intel64_ia32/ifort.exe"
is not able to compile a simple test program.
Unfortunately, none of us have any idea what this script is testing to determine whether the compiler is available or "broken". You will have to dig into the script to see what it is doing, reproduce the test and look at the result. If you can show us error messages from the compilation or linkage process itself,. we MIGHT be able to offer advice.