Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: [OMPI users] Cross-compiling openmpi
From: Hossein Talebi (talebi.hossein_at_[hidden])
Date: 2012-02-08 10:26:15


Hello All,

I try to cross-compile openmpi under linux for Windows. I have Ubuntu
linux 11.1 and x86_64-w64-mingw32. When I run the configure commands I
get the error message below:

*** Fortran 77 compiler
checking for x86_64-w64-mingw32-gfortran... x86_64-w64-mingw32-gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether x86_64-w64-mingw32-gfortran accepts -g... yes
checking if Fortran 77 compiler works... links (cross compiling)
checking x86_64-w64-mingw32-gfortran external symbol convention...
single underscore
checking if C and Fortran 77 are link compatible... yes
checking to see if F77 compiler likes the C++ exception flags...
skipped (no C++ exceptions flags)
checking if Fortran 77 compiler supports LOGICAL... yes
checking size of Fortran 77 LOGICAL... configure: error: Can not
determine size of LOGICAL when cross-compiling

my configure options are:
 ./configure --prefix=/opt/mpich2.1.5_mingw64/
--host=x86_64-w64-mingw32 CXX=x86_64-w64-mingw32-g++
CC=x86_64-w64-mingw32-gcc FC=x86_64-w64-mingw32-gfortran

Please help me to know if what I want to do is possible, if yes, how
can I fix this issue.

Thank you.

Cheers
Hossein