# The Fortran and C compiler identification is unknown and Detecting Fortran compiler ABI info - failed

**URL:** https://discourse.cmake.org/t/the-fortran-and-c-compiler-identification-is-unknown-and-detecting-fortran-compiler-abi-info-failed/6654
**Category:** Usage
**Tags:** os:linux
**Created:** [October 13, 2022, 2:16am UTC](https://discourse.cmake.org/t/the-fortran-and-c-compiler-identification-is-unknown-and-detecting-fortran-compiler-abi-info-failed/6654 "2022-10-13T02:16:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![edobune](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/e/eb8c5e/32.png) [@edobune](https://discourse.cmake.org/u/edobune)
#### Post date: [October 13, 2022, 2:16am UTC](https://discourse.cmake.org/t/the-fortran-and-c-compiler-identification-is-unknown-and-detecting-fortran-compiler-abi-info-failed/6654/1 "2022-10-13T02:16:52Z")

</div>

cmake -D CMAKE\_TOOLCHAIN\_FILE=intel-avx2 -D CMAKE\_INSTALL\_PREFIX=…/ -D CMAKE\_BUILD\_TYPE=Release -D CMAKE\_VERBOSE\_MAKEFILE=off /home/edwinobune/SALMON-v.2.1.0/build/…  
– The Fortran compiler identification is unknown  
/opt/intel/oneapi/mpi/2021.7.0/bin/mpiifort: line 710: ifort: command not found  
– The C compiler identification is unknown  
– Detecting Fortran compiler ABI info  
– Detecting Fortran compiler ABI info - failed  
– Check for working Fortran compiler: /opt/intel/oneapi/mpi/2021.7.0/bin/mpiifort  
– Check for working Fortran compiler: /opt/intel/oneapi/mpi/2021.7.0/bin/mpiifort - broken  
CMake Error at /usr/share/cmake/Modules/CMakeTestFortranCompiler.cmake:51 (message):  
The Fortran compiler

```
"/opt/intel/oneapi/mpi/2021.7.0/bin/mpiifort"

```

is not able to compile a simple test program.

It fails with the following output:

```
Change Dir: /home/edwinobune/SALMON-v.2.1.0/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_98852/fast && /usr/bin/gmake -f CMakeFiles/cmTC_98852.dir/build.make CMakeFiles/cmTC_98852.dir/build
gmake[1]: Entering directory '/home/edwinobune/SALMON-v.2.1.0/build/CMakeFiles/CMakeTmp'
Building Fortran object CMakeFiles/cmTC_98852.dir/testFortranCompiler.f.o
/opt/intel/oneapi/mpi/2021.7.0/bin/mpiifort -c /home/edwinobune/SALMON-v.2.1.0/build/CMakeFiles/CMakeTmp/testFortranCompiler.f -o CMakeFiles/cmTC_98852.dir/testFortranCompiler.f.o
/opt/intel/oneapi/mpi/2021.7.0/bin/mpiifort: line 710: ifort: command not found
gmake[1]: *** [CMakeFiles/cmTC_98852.dir/build.make:78: CMakeFiles/cmTC_98852.dir/testFortranCompiler.f.o] Error 127
gmake[1]: Leaving directory '/home/edwinobune/SALMON-v.2.1.0/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_98852/fast] Error 2

```

---

<div class="post-metadata">

### Author: ![bill.hoffman](https://discourse.cmake.org/user_avatar/discourse.cmake.org/bill.hoffman/32/13_2.png) [@bill.hoffman](https://discourse.cmake.org/u/bill.hoffman)
#### Post date: [October 14, 2022, 5:04pm UTC](https://discourse.cmake.org/t/the-fortran-and-c-compiler-identification-is-unknown-and-detecting-fortran-compiler-abi-info-failed/6654/2 "2022-10-14T17:04:16Z")

</div>

> [@edobune](#):
>
> `ifort: command not found`

Looks like an issue with your PATH. i.e ifort is not in it.
