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

Ifort error 10417 Problem setting up the Intel(R) Compiler compilation environment. Requires 'instal

jelopezaguilar
Beginner
4,620 Views

Hi everyone,

I'm new round here and on the programming world.

Just downloaded and installed the oneAPI package to get ifort compiler.
Have succesfully installed everything and ifort is invoked properly.
Nevertheless, when trying to compile, the following message is displayed:

ifort: error #10417: Problem setting up the Intel(R) Compiler compilation environment. Requires 'install path' setting gathered from 'gcc'

I can not seem to fix the problem on what I find in forums.

Hope you can help me out to sort this out.

I'm using the latest version of Red Hat distribution.

0 Kudos
5 Replies
VincentP
Beginner
4,575 Views

Hi, do you found a solution? I've the same problem.

0 Kudos
JPek
Novice
4,107 Views

I'm also seeing this, with the compiler being run in a docker container. Oddly, everything is fine if I run in a container on my local machine, but when using the same image in a docker environment on a (Linux) build machine, then I get this failure. gcc and g++ are definitely installed.

Is it possible to know what ifort is doing to make this determination?

 

Jeff

0 Kudos
wtstephens
New Contributor I
3,307 Views

I had that error also


Requires 'install path' setting gathered from 'gcc'

and gcc was not installed!     Installing gcc fixed it.

 

sudo apt install gcc

 

I did then open a new terminal window, and re-sourced setvars.sh again, before compiling.

source /opt/intel/oneapi/setvars.sh
ifort -o hello hello.f90

 

0 Kudos
Germán
New Contributor I
1,149 Views

I just run into this same problem.  Since I can't seem to make a brand new post, I am appending to this one. 

 

Then again, maybe it is not an Intel issue but a CFX issue? 

 

Let it be known that

Intel compiler on its own works fine,

GCC compilers on their own work fine

But, when ask CFX to compile for me, I get that thing about expecting "install path" from gcc:

 

 

/usw/ansys_inc/2024R2/v242/CFX/bin/cfx5mkext usr_iterative_bc.F 
/usw/intel/oneapi/2023.2.0/compiler/2023.2.0/linux/bin/intel64/ifort -fpic -assume 2underscore -check uninit -warn declarations -diag-error 6717 -ftz -O2 -fp-speculation=safe -fp-model=precise -fp-model=source -fimf-arch-consistency=true -qno-opt-dynamic-align -fpe0 -fomit-frame-pointer -real-size 32 -integer-size 32 -DCFX5_ATTR_SINGLE -DCFX5_ATTR_64BIT -DCFX5_ATTR_INT32 -DCFX5_ATTR_IFORT -DCFX5_ATTR_OPTIMISED -DCFX5_ATTR_STD -DCFX5_ATTR_LCOMP -I/usw/ansys_inc/2024R2/v242/CFX/include -o linux-amd64/ifort/usr_iterative_bc.o -c usr_iterative_bc.F
ifort: error #10417: Problem setting up the Intel(R) Compiler compilation environment.  Requires 'install path' setting gathered from 'gcc'
An error has occurred in cfx5mkext:

/usw/intel/oneapi/2023.2.0/compiler/2023.2.0/linux/bin/intel64/ifort exited
with return code 1.

 

 

Running gcc with search path replies the following:  

 

gcc --print-search-dirs
install: /usr/lib/gcc/x86_64-redhat-linux/11/
programs: =/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/11/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../../x86_64-redhat-linux/bin/x86_64-redhat-linux/11/:/usr/lib/gcc/x86_64-redhat-linux/11/../../../../x86_64-redhat-linux/bin/
libraries: =/usw/intel/oneapi/2023.2.0/tbb/2021.10.0/env/../lib/intel64/gcc. . . . . . .

 

For sure, the first line in the replay shows "install", but not "install path". 

 

Any resolution to this one? 

 

 

 

 

 

0 Kudos
Germán
New Contributor I
962 Views

Well, I found a resolution, at least in my environment.

 

So, what I have is

  • I call CFX
  • CFX calls Intel/ifort
  • Intel/ifort calls (somehow) gcc

 

Simple inspection of `ifort -v` does not reveal anything gcc-related:

> /home/myuserid: ifort -v
ifort: remark #10448: Intel(R) Fortran Compiler Classic (ifort) is now deprecated
and will be discontinued late 2024. Intel recommends that customers transition now
to using the LLVM-based Intel(R) Fortran Compiler (ifx) for continued Windows* and
Linux* support, new language support, new language features, and optimizations. Use
'-diag-disable=10448' to disable this message.
ifort version 2021.12.0

 

But, probing icx does

> /home/myuserid: icx -v
Intel(R) oneAPI DPC++/C++ Compiler 2024.1.0 (2024.1.0.20240308)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /intel/oneapi/2024.1.0/compiler/2024.1/bin/compiler
Configuration file: /intel/oneapi/2024.1.0/compiler/2024.1/bin/compiler/../icx.cfg
Found candidate GCC installation: /opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12
Selected GCC installation: /opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64

 

This reveals that the Intel insallation is, somehow, related to a gcc installation different than the one that came with the system.

So, in my environment, the problem is solved by first enabling the /opt/rh gcc instance and THEN executing the cfx5mkext command:

> /home/myuserid: source /opt/rh/gcc-toolset-12/enable
> /home/myuserid: /ansys_inc/2024R2/v242/CFX/bin/cfx5mkext user_defined_fun.F

 

That's it. 

 

Regards,

Germán 

 

0 Kudos
Reply