Hi,

I'm building OpenMPI 1.10.0 with EasyBuild against an Intel Toolchain with GCC
4.9.2.
In the configure step gfortran is used as the Fortran compiler, though we want
to use ifort from Intel of course.
Turns out (if I'm not mistaken) that the configure of OpenMPI looks for the FC
environment variable and ignores both F77 and F90.
Can the FC variable be included in the compiler toolchains?

Now I overcome this by adding
preconfigopts = 'FC=$F90 CFLAGS="%s" CXXFLAGS="%s" FCFLAGS="%s" ' % (....)
to the easyconfig file

A very basic manual test also shows this behavior:
$ untar OpenMPI tarball
$ module load intel
$ CC=icc CXX=icpc F90=ifort ./configure
*** Fortran compiler
checking for gfortran... gfortran
checking whether we are using the GNU Fortran compiler... yes
checking whether gfortran accepts -g... yes
checking whether ln -s works... yes
checking if Fortran compiler works... yes

Once you start to specify intel specific FCFLAGS the gfortran compiler will
fail to build software and the configure process is stopped.

If you configure with the following:
$ untar OpenMPI tarball
$ module load intel
$ CC=icc CXX=icpc FC=ifort ./configure
*** Fortran compiler
checking whether we are using the GNU Fortran compiler... no
checking whether ifort accepts -g... yes
checking whether ln -s works... yes
checking if Fortran compiler works... yes

Reply via email to