scons icon indicating copy to clipboard operation
scons copied to clipboard

Scons doesn't find the (installed) Intel fortran compiler

Open bdbaddog opened this issue 7 years ago • 3 comments

This issue was originally created at: 2011-04-16 10:36:31. This issue was reported by: charlesli. charlesli said at 2011-04-16 10:36:31

Although I have the Intel Fortran compiler installed (version 11.1, evaluation version), scons doesn't find it. Instead it tries to use gfortran (and fails).

bdbaddog avatar Jan 02 '18 14:01 bdbaddog

I can certainly confirm this is still an issue on both Windows and Linux. The examples in my repo here:

https://github.com/dnwillia/SConsTests

Will not compile out of the box if the ifort tool is added to the environment.

dnwillia avatar Jan 09 '25 19:01 dnwillia

not surprised... the Intel compilers have moved and morphed over the years.

mwichmann avatar Jan 09 '25 19:01 mwichmann

Yeah, keeping track of their constantly changing directory structure is a little painful.

One possibility might just be to make it work with PrependENVPath. So, if I put the ifort or ifx binary location into the environment path the tool can detect it and work out the include and linker paths from that. Not sure though.

There are also Intel's configuration scripts. This might be another way to do it. i.e. run their setup script to configure the environment.

dnwillia avatar Jan 09 '25 19:01 dnwillia