Just to elaborate: as the error message implies, this error message was put 
there specifically to ensure that the Fortran compiler works before continuing 
any further.  If the Fortran compiler is busted, configure exits with this help 
message.

You can either fix your Fortran compiler, or use --disable-mpi-fortran to 
disable all Fortran support from Open MPI (and therefore this "test whether the 
Fortran compiler works" test will be skipped).

Here's the specific log section showing the failure:

-----
configure:32389: checking if Fortran compiler works
configure:32418: gfortran -o conftest    conftest.f  >&5
configure:32418: $? = 0
configure:32418: ./conftest
./conftest: error while loading shared libraries: libquadmath.so.0: wrong ELF 
class: ELFCLASS32
configure:32418: $? = 127
configure: program exited with status 127
configure: failed program was:
|       program main
|
|       end
configure:32434: result: no
configure:32448: error: Could not run a simple Fortran program.  Aborting.
-----


On Aug 26, 2014, at 10:10 AM, Ralph Castain <r...@open-mpi.org> wrote:

> Looks like there is something wrong with your gfortran install:
> 
> *** 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... no
> **********************************************************************
> * It appears that your Fortran compiler is unable to produce working
> * executables.  A simple test application failed to properly
> * execute.  Note that this is likely not a problem with Open MPI,
> * but a problem with the local compiler installation.  More
> * information (including exactly what command was given to the
> * compiler and what error resulted when the command was executed) is
> * available in the config.log file in the Open MPI build directory.
> **********************************************************************
> configure: error: Could not run a simple Fortran program.  Aborting.
> 
> 
> FWIW: I can compile and run on my CentOS6.5 system just fine. I have gfortran 
> 4.4.7 installed on it
> 
> On Aug 26, 2014, at 2:59 AM, Syed Ahsan Ali <ahsansha...@gmail.com> wrote:
> 
>> 
>> 
>> I have problems in compilation of openmpi-1.8.1 on Linux machine. Kindly see 
>> the logs attached.
>> 
>> 
>> <configure.bz2>_______________________________________________
>> users mailing list
>> us...@open-mpi.org
>> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
>> Link to this post: 
>> http://www.open-mpi.org/community/lists/users/2014/08/25147.php
> 
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
> Link to this post: 
> http://www.open-mpi.org/community/lists/users/2014/08/25150.php


-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to: 
http://www.cisco.com/web/about/doing_business/legal/cri/

Reply via email to