Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] Help: OpenMPI Compilation in Raspberry Pi
From: Jeff Squyres (jsquyres) (jsquyres_at_[hidden])
Date: 2013-01-22 11:45:02


On Jan 19, 2013, at 1:05 PM, Lee Eric <openlinuxsource_at_[hidden]> wrote:

> However, I hit another issue about fortran as configure running.
>
> *** Fortran 90/95 compiler
> checking for armv6-rpi-linux-gnueabi-gfortran...
> armv6-rpi-linux-gnueabi-gfortran
> checking whether we are using the GNU Fortran compiler... yes
> checking whether armv6-rpi-linux-gnueabi-gfortran accepts -g... yes
> checking if Fortran 77 compiler works... links (cross compiling)
> checking armv6-rpi-linux-gnueabi-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 to see if mpif77/mpif90 compilers need additional linker flags... none
> checking if Fortran 77 compiler supports CHARACTER... yes
> checking size of Fortran 77 CHARACTER... configure: error: Can not
> determine size of CHARACTER when cross-compiling

Just to follow up on this point -- cross compiling with Open MPI is a known issue.

The specific problem you're running in to here is that configure is trying to compile *and run* some Fortran tests. Which obviously doesn't work in a cross-compiling environment.

You can work around this, however, either by disabling Fortran (which you did), or you can pre-populate configure's answers to the Fortran tests (so that it doesn't actually have to run anything). However, we have never fully documented the procedure on how to do this (it's not straightforward, and definitely not for the weak of heart).

If you don't need Fortran, simply disabling Fortran is probably your best bet.

-- 
Jeff Squyres
jsquyres_at_[hidden]
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/