首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >检测Fortran编译器ABI信息-失败

检测Fortran编译器ABI信息-失败
EN

Stack Overflow用户
提问于 2021-10-03 22:33:52
回答 1查看 557关注 0票数 0

当尝试在getdp项目上使用cmake时,获取标题中提到的错误。我在Windows中使用Visual Studio Community 2019。我已经安装了Inter编译器。下面是更完整的错误:

代码语言:javascript
复制
-- 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/*/source/repos/getdp/build/CMakeFiles/CMakeTmp

    Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/devenv.com CMAKE_TRY_COMPILE.sln /build Debug /project cmTC_34aef &&
    Microsoft Visual Studio 2019 Version 16.11.3.
    Copyright (C) Microsoft Corp. All rights reserved.

    Package 'IFLangServicePackage' failed to load.

    Package 'IFLangServicePackage' failed to load.

    The operation could not be completed. The parameter is incorrect.

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

一些pages会要求您提及编译器路径。但这并不管用。Disabling Windows Defender也不起作用。

可能的问题是什么?

EN

回答 1

Stack Overflow用户

发布于 2021-10-18 16:01:36

如果您可以将英特尔C/C++编译器与英特尔Fortran一起使用,而不是Visual Studio,则在修复CMake错误之前,可以使用忍者生成器作为变通方法。

代码语言:javascript
复制
cmake -G Ninja

这将需要在您的路径上使用Ninja

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69429393

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档