Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28381 Discussions

CMake fails at the Fortran compiler ABI info detection with oneAPI-2021.4 and VS2019

tmishima
Beginner
6,648 Views

I recently updated oneAPI to 2021.4 from 2021.2.

Then CMake starts to fail at the Fortran compiler ABI info detection.

So, I also updated CMake to the latest one CMake-3.21.2, but the problem still exists.

I attached very simple reproducer hello.f and coresponding CMakelists.txt.

hello.f:

      WRITE(*,*) 'HELLOW, WORLD!'
      END

CMakelists.txt: 

cmake_minimum_required (VERSION 2.8.12)
enable_language(Fortran)
set(SOLVER "hello")
project (${SOLVER} Fortran)
add_executable (${SOLVER} ${SOLVER}.f)

Output:

C:\Users\K830429\Documents\Work\hello\cmbuild>cmake -A x64 ..
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.18363.
-- The Fortran compiler identification is Intel 2021.4.0.20210910
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - failed
-- Check for working Fortran compiler: C:/Program Files (x86)/Intel/oneAPI/compiler/2021.4.0/windows/bin/intel64/ifort.exe
-- Check for working Fortran compiler: C:/Program Files (x86)/Intel/oneAPI/compiler/2021.4.0/windows/bin/intel64/ifort.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.21/Modules/CMakeTestFortranCompiler.cmake:54 (message):
  The Fortran compiler

    "C:/Program Files (x86)/Intel/oneAPI/compiler/2021.4.0/windows/bin/intel64/ifort.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: C:/Users/K830429/Documents/Work/hello/cmbuild/CMakeFiles/CMakeTmp

    Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/Common7/IDE/devenv.com CMAKE_TRY_COMPILE.sln /build Debug /project cmTC_ea6a7 &&
    Microsoft Visual Studio 2019 RC バージョン 16.9.6。
    Copyright (C) Microsoft Corp. All rights reserved.

    .... (cut Japanese messages) ....

    devenv  [solutionfile | projectfile | folder | anyfile.ext]  [switches]


  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:3 (enable_language)
....(continue)

 

Key point is these two lines:

Change Dir: C:/Users/K830429/Documents/Work/hello/cmbuild/CMakeFiles/CMakeTmp

Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/Common7/IDE/devenv.com CMAKE_TRY_COMPILE.sln /build Debug /project cmTC_ea6a7 &&

At the end of CMake process,  CMakeFiles/CMakeTmp is cleared to be empty. So, I tried to interrupt CMake process in the middle of execution and got these files: - CMAKE_TRY_COMPILE.sln and cmTC_ea6a7.

After some investigations, I noticed " (IFORT)" is added to the end of project name - namely it becomes "cmTC_ea6a7 (IFORT)" . This is the change of oneAPI 2021-4's behavior.

I manually typed "devenv CMAKE_TRY_COMPILE.sln /build Debug /project cmTC_ea6a7.vfproj" and "devenv CMAKE_TRY_COMPILE.sln /build Debug /project "cmTC_ea6a7 (IFORT)". Then, I confirmed that both cases worked successfully.

I'm not sure that this is the Intel's problem or Cmake's one, but firstly I'd like to report here to fix the problem.

Regards,

Tetsuya Mishima

0 Kudos
14 Replies
mecej4
Honored Contributor III
6,588 Views

As far as I can tell, this is a Cmake problem. Intel Fortran 2021.4.0 was released quite recently. The Cmake script that tries to detect the Fortran compiler version was probably not capable of detecting/recognizing this new version. (I do not use Cmake if I can help it).

0 Kudos
JNichols
New Contributor I
6,557 Views

 

      PROGRAM CMakeFortranCompilerId
#if 0
! Identify the compiler
#endif
#if defined(_MSC_VER)
       PRINT *, 'INFO:simulate[MSVC]'
# if _MSC_VER >= 1900
       PRINT *, 'INFO:simulate_version[019.00]'
# elif _MSC_VER >= 1800
       PRINT *, 'INFO:simulate_version[018.00]'
# elif _MSC_VER >= 1700
       PRINT *, 'INFO:simulate_version[017.00]'
# elif _MSC_VER >= 1600
       PRINT *, 'INFO:simulate_version[016.00]'
# elif _MSC_VER >= 1500
       PRINT *, 'INFO:simulate_version[015.00]'
# elif _MSC_VER >= 1400
       PRINT *, 'INFO:simulate_version[014.00]'
# elif _MSC_VER >= 1310
       PRINT *, 'INFO:simulate_version[013.01]'
# else
       PRINT *, 'INFO:simulate_version[013.00]'
# endif
#endif
#if defined(__INTEL_LLVM_COMPILER)
        PRINT *, 'INFO:compiler[IntelLLVM]'
! __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
! later.  Look for 6 digit vs. 8 digit version number to decide encoding.
! VVVV is no smaller than the current year when a versio is released.
# if __INTEL_LLVM_COMPILER < 1000000
#  define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
#  define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
#  define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER    % 10)
# else
#  define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
#  define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
#  define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER     % 100)
# endif
#elif defined(__INTEL_COMPILER) && __INTEL_COMPILER == 201900
        PRINT *, 'INFO:compiler[IntelLLVM]'
! ifx 2021.1 forgot to define __INTEL_LLVM_COMPILER.
! Instead it defines __INTEL_COMPILER == 201900.
# define COMPILER_VERSION_MAJOR DEC(2021)
# define COMPILER_VERSION_MINOR DEC(1)
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
#elif defined(__INTEL_COMPILER) || defined(__ICC)
        PRINT *, 'INFO:compiler[Intel]'
! __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later.
# if __INTEL_COMPILER < 2021
#  define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
#  define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
#  if defined(__INTEL_COMPILER_UPDATE)
#   define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
#  else
#   define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER   % 10)
#  endif
# else
#  define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
#  define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
!  The third version component from --version is an update index,
!  but no macro is provided for it.
#  define COMPILER_VERSION_PATCH DEC(0)
# endif
# if defined(__INTEL_COMPILER_BUILD_DATE)
#  define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
# endif
#elif defined(__SUNPRO_F95)
        PRINT *, 'INFO:compiler[SunPro]'
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_F95>>8)
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_F95>>4 & 0xF)
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_F95    & 0xF)
#elif defined(__SUNPRO_F90)
        PRINT *, 'INFO:compiler[SunPro]'
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_F90>>8)
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_F90>>4 & 0xF)
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_F90    & 0xF)
#elif defined(_CRAYFTN)
        PRINT *, 'INFO:compiler[Cray]'
# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
# if defined(_RELEASE_PATCHLEVEL)
#  define COMPILER_VERSION_PATCH DEC(_RELEASE_PATCHLEVEL)
# endif
#elif defined(__G95__)
        PRINT *, 'INFO:compiler[G95]'
# define COMPILER_VERSION_MAJOR DEC(__G95__)
# define COMPILER_VERSION_MINOR DEC(__G95_MINOR__)
#elif defined(__PATHSCALE__)
        PRINT *, 'INFO:compiler[PathScale]'
# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
# if defined(__PATHCC_PATCHLEVEL__)
#  define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
# endif
#elif defined(__ABSOFT__)
        PRINT *, 'INFO:compiler[Absoft]'
#elif defined(__GNUC__)
        PRINT *, 'INFO:compiler[GNU]'
# define COMPILER_VERSION_MAJOR DEC(__GNUC__)
# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
# if defined(__GNUC_PATCHLEVEL__)
#  define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
# endif
#elif defined(__IBMC__)
# if defined(__COMPILER_VER__)
        PRINT *, 'INFO:compiler[zOS]'
# elif __IBMC__ >= 800
        PRINT *, 'INFO:compiler[XL]'
#  define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
#  define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
#  define COMPILER_VERSION_PATCH DEC(__IBMC__    % 10)
# else
        PRINT *, 'INFO:compiler[VisualAge]'
#  define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
#  define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
#  define COMPILER_VERSION_PATCH DEC(__IBMC__    % 10)
# endif
#elif defined(__NVCOMPILER) || defined(__NVCOMPILER_LLVM__)
        PRINT *, 'INFO:compiler[NVHPC]'
# if defined(__NVCOMPILER_MAJOR__)
#  define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
# else
#  define COMPILER_VERSION_MAJOR DEC(__PGIC__)
# endif
# if defined(__NVCOMPILER_MINOR__)
#  define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
# else
#  define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
# endif
# if defined(__NVCOMPILER_PATCHLEVEL__)
#  define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
# elif defined(__PGIC_PATCHLEVEL__)
#  define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
# endif
#elif defined(__PGI)
        PRINT *, 'INFO:compiler[PGI]'
# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
# if defined(__PGIC_PATCHLEVEL__)
#  define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
# endif
#elif defined(__FLANG)
        PRINT *, 'INFO:compiler[Flang]'
# define COMPILER_VERSION_MAJOR DEC(__FLANG_MAJOR__)
# define COMPILER_VERSION_MINOR DEC(__FLANG_MINOR__)
# if defined(__FLANG_PATCHLEVEL__)
#  define COMPILER_VERSION_PATCH DEC(__FLANG_PATCHLEVEL__)
# endif
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
        PRINT *, 'INFO:compiler[VisualAge]'
#elif defined(__hpux) || defined(__hpux__)
        PRINT *, 'INFO:compiler[HP]'
#elif defined(NAGFOR)
        PRINT *, 'INFO:compiler[NAG]'
#define COMPILER_VERSION_MAJOR DEC(__NAG_COMPILER_RELEASE/10)
#define COMPILER_VERSION_MINOR DEC(__NAG_COMPILER_RELEASE % 10)
#define COMPILER_VERSION_PATCH DEC(__NAG_COMPILER_BUILD)
#else
        PRINT *, 'INFO:compiler[]'
#endif
#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
        PRINT *, 'INFO:compiler_wrapper[CrayPrgEnv]'
#endif

#if 0
! Identify the platform
#endif
#if defined(__linux) || defined(__linux__) || defined(linux)
        PRINT *, 'INFO:platform[Linux]'
#elif defined(__CYGWIN__)
        PRINT *, 'INFO:platform[Cygwin]'
#elif defined(__MINGW32__)
        PRINT *, 'INFO:platform[MinGW]'
#elif defined(__APPLE__)
        PRINT *, 'INFO:platform[Darwin]'
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
        PRINT *, 'INFO:platform[Windows]'
#elif defined(__FreeBSD__) || defined(__FreeBSD)
        PRINT *, 'INFO:platform[FreeBSD]'
#elif defined(__NetBSD__) || defined(__NetBSD)
        PRINT *, 'INFO:platform[NetBSD]'
#elif defined(__OpenBSD__) || defined(__OPENBSD)
        PRINT *, 'INFO:platform[OpenBSD]'
#elif defined(__sun) || defined(sun)
        PRINT *, 'INFO:platform[SunOS]'
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
        PRINT *, 'INFO:platform[AIX]'
#elif defined(__hpux) || defined(__hpux__)
        PRINT *, 'INFO:platform[HP-UX]'
#elif defined(__HAIKU__)
        PRINT *, 'INFO:platform[Haiku]'
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
        PRINT *, 'INFO:platform[BeOS]'
#elif defined(__QNX__) || defined(__QNXNTO__)
        PRINT *, 'INFO:platform[QNX]'
#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
        PRINT *, 'INFO:platform[Tru64]'
#elif defined(__riscos) || defined(__riscos__)
        PRINT *, 'INFO:platform[RISCos]'
#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
        PRINT *, 'INFO:platform[SINIX]'
#elif defined(__UNIX_SV__)
        PRINT *, 'INFO:platform[UNIX_SV]'
#elif defined(__bsdos__)
        PRINT *, 'INFO:platform[BSDOS]'
#elif defined(_MPRAS) || defined(MPRAS)
        PRINT *, 'INFO:platform[MP-RAS]'
#elif defined(__osf) || defined(__osf__)
        PRINT *, 'INFO:platform[OSF1]'
#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
        PRINT *, 'INFO:platform[SCO_SV]'
#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
        PRINT *, 'INFO:platform[ULTRIX]'
#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
        PRINT *, 'INFO:platform[Xenix]'
#else
        PRINT *, 'INFO:platform[]'
#endif
#if defined(_WIN32) && (defined(__INTEL_COMPILER) || defined(__ICC))
# if defined(_M_IA64)
        PRINT *, 'INFO:arch[IA64]'
# elif defined(_M_X64) || defined(_M_AMD64)
        PRINT *, 'INFO:arch[x64]'
# elif defined(_M_IX86)
        PRINT *, 'INFO:arch[X86]'
# endif
#endif

#if 0
! Encode compiler version digits
#endif
#define DEC_8(n) (((n) / 10000000) % 10)
#define DEC_7(n) (((n) / 1000000)  % 10)
#define DEC_6(n) (((n) / 100000)   % 10)
#define DEC_5(n) (((n) / 10000)    % 10)
#define DEC_4(n) (((n) / 1000)     % 10)
#define DEC_3(n) (((n) / 100)      % 10)
#define DEC_2(n) (((n) / 10)       % 10)
#define DEC_1(n) (((n)    )        % 10)
#define HEX_8(n) ((n)>>28 & 0xF)
#define HEX_7(n) ((n)>>24 & 0xF)
#define HEX_6(n) ((n)>>20 & 0xF)
#define HEX_5(n) ((n)>>16 & 0xF)
#define HEX_4(n) ((n)>>12 & 0xF)
#define HEX_3(n) ((n)>>8  & 0xF)
#define HEX_2(n) ((n)>>4  & 0xF)
#define HEX_1(n) ((n)     & 0xF)
@CMAKE_Fortran_COMPILER_ID_VERSION_INFO@

      END

 

 

You could ask the CMAKE people to check this file against the latest APIONE,  and when it is fixed grab the latest binary.  

You will note there is a comment about the oneapi in the file having an error, maybe it has been fixed. 

I have no idea how to contact them, but people are not hard to find these days.  

0 Kudos
tmishima
Beginner
6,531 Views

Hi mecej4 and JNichols, thank you for your quick reply.

Yes I will ask CMake people later.

But, from a different point of view, I attached files which were generated automatically with VS2019 template - Main Program Code Fortran -,

where the solution name and projcet name is hello_world.

VS2019 supports command line build such as " devenv solution_name.sln /build Debug /project project_name".

So, "devenv hello_world.sln /build Debug /project hello_world" should work but it doesn't.

The error message I got was(sorry for Japanese message):

:: oneAPI environment initialized ::

C:\Users\K830429\source\repos>cd C:\Users\K830429\Documents\Work\test\hello_world

C:\Users\K830429\Documents\Work\test\hello_world>devenv hello_world.sln /build Debug /project hello_world

C:\Users\K830429\Documents\Work\test\hello_world>devenv hello_world.sln /build Debug /project hello_world

操作を完了できませんでした。パラメーターが間違っています。

使用法:
devenv  [solutionfile | projectfile | folder | anyfile.ext]  [switches]

<<< English translation >>>
    The operation could not be completed. The parameter is incorrect.

    Use:
    devenv  [solutionfile | projectfile | folder | anyfile.ext]  [switches]

...(CONTINUE)

C:\Users\K830429\Documents\Work\test\hello_world>

 

That's why I think this is also Intel's problem.

I have found someone who encountered a similar problem with oneAPI-2021.4 here:

https://stackoverflow.com/questions/69429393/detecting-fortran-compiler-abi-info-failed 

Regards,

tmishima

0 Kudos
JNichols
New Contributor I
6,464 Views

You are correct, if you add the last parameter I get the same error, although it builds properly in all environments, just leave off the last parameter. 

0 Kudos
tmishima
Beginner
6,409 Views

Thank you for your quick reply. I feel easy to hear that  you get the same error.

CMake executes intenally "devenv CMAKE_TRY_COMPILE.sln /build Debug /project cmTC_ea6a7"  to detect the fortran ABI.

Therefore, this change of oneAPI behavior is the root cause of the problem.

I'm afraid that CMake people might say Intel-side should fix the problem.

So firstly, I would like to hear Intel's idea/answer before I contact with CMake people.

Regards,

tmishima

0 Kudos
andrew_4619
Honored Contributor II
6,377 Views

Are the .sln and .vfproj files in the same folder?  i.e.  

C:\Users\K830429\source\repos>cd C:\Users\K830429\Documents\Work\test\hello_world

0 Kudos
tmishima
Beginner
6,365 Views

Yes, they are in the same folder, "C:\Users\K830429\Documents\Work\test".

Earlier version than 2021.4 such as 2021.2 accepts "devenv hello_world.sln /build Debug /project hello_world".

 

0 Kudos
andrew_4619
Honored Contributor II
6,332 Views

OK but devenv is a Microsoft Product (visual studio) so you would expect command options parsing to be VS not ifort. I guess then next layer down in the VS/ifort integration is might be a problem with Fortran projects. 

0 Kudos
JohnNichols
Valued Contributor III
6,298 Views

devenv works as long as you leave off project.  Just leave it off, it still compiles, unless you have multiple projects in one sln folder, which is done, but makes life a pain.  

0 Kudos
tmishima
Beginner
6,268 Views

Yes, I also guess that this would be a problem of VS/ifort integrations with Fortran projects, becasue C/C++ projects works fine.  Anyway, Intel support told me that they would fix it or (in need) collaborate with CMake people . 

Regards, tmishima

0 Kudos
cean
New Contributor II
6,167 Views

I put your two files under d:\hello

Open that folder with VS2019

Here is the error message:

1> CMake generation started for default configuration: 'x64-Debug'.
1> Found and using vcpkg toolchain file (C:/Users/ian/Documents/GitHub/vcpkg/scripts/buildsystems/vcpkg.cmake).
1> Command line: "C:\WINDOWS\system32\cmd.exe" /c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe"  -G "Ninja"  -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="D:\Hello\out\install\x64-Debug"  -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" -DCMAKE_TOOLCHAIN_FILE="C:/Users/ian/Documents/GitHub/vcpkg/scripts/buildsystems/vcpkg.cmake" "D:\Hello" 2>&1"
1> Working directory: D:\Hello\out\build\x64-Debug
1> [CMake] -- The Fortran compiler identification is unknown
1> [CMake] Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.4.0 Build 20210910_000000
1> [CMake] Copyright (C) 1985-2021 Intel Corporation.  All rights reserved.
1> [CMake] 
1> [CMake] -- Detecting Fortran compiler ABI info
1> [CMake] CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
1> [CMake] Missing variable is:
1> [CMake] CMAKE_Fortran_PREPROCESS_SOURCE
1> [CMake] CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/CMakeDetermineCompilerABI.cmake:49 (try_compile):
1> [CMake]   Failed to generate test project build system.
1> [CMake] Call Stack (most recent call first):
1> [CMake]   C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/CMakeTestFortranCompiler.cmake:20 (CMAKE_DETERMINE_COMPILER_ABI)
1> [CMake]   CMakeLists.txt:3 (enable_language)
1> [CMake] -- Configuring incomplete, errors occurred!
0 Kudos
tmishima
Beginner
6,121 Views

I'm not familiar to open CMakeLists.txt with VS2019 directly.

It seems to create files for  the Ninja-IDE, because  -G "Ninja" option appears in your output.

The CMakeLists.txt is assumed that you open command prompt and type:

cd your_working folder

mkdir cmbuild

cd cmbuild

cmake -A x64 ..

By the way, I already recieved Intel's answer. They wil fix the problem in near future.

Regards, tmishima

0 Kudos
Devorah_H_Intel
Moderator
5,437 Views

This issue is fixed in the upcoming Compiler release version 2021.5 part of oneAPI 2022.1

0 Kudos
cean
New Contributor II
5,310 Views

Looking forward. 

I can't work on my program for a while to add a new file.

0 Kudos
Reply