Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] Problems installing in Cygwin - Problem with GCC 3.4.4
From: Gustavo Seabra (gustavo.seabra_at_[hidden])
Date: 2008-11-03 22:19:32


On Mon, Nov 3, 2008 at 8:59 PM, Terry Frankcombe wrote:
>> On Nov 3, 2008, at 3:36 PM, Gustavo Seabra wrote:
>>
>>>> For your fortran issue, the Fortran 90 interface needs the Fortran 77
>>>> interface. So you need to supply an F77 as well (the output from
>>>> configure
>>>> should indicate that the F90 interface was disabled because the F77
>>>> interface was disabled).
>>>
>>> Is that what you mean (see below)?
>>
>> Ah yes -- that's another reason the f90 interface could be disabled:
>> if configure detects that the f77 and f90 compilers are not link-
>> compatible.
>>
>>> I thought the g95 compiler could
>>> deal with F77 as well as F95... If so, could I just pass F77='g95'?
>>
>> That would probably work (F77=g95). I don't know the g95 compiler at
>> all, so I don't know if it also accepts Fortran-77-style codes. But
>> if it does, then you're set. Otherwise, specify a different F77
>> compiler that is link compatible with g95 and you should be good.
>
> Fortran 90 is a superset of the archaic, hamstrung, "I'm too old to learn
> how to program in a useful manner and I still use punched cards" Fortran
> 77. All Fortran 90 compilers are Fortran 77 compilers, by definition.
> Fortran 95 has a few (~5) deleted features and a few minor added features.
> I've never heard of a Fortran 95 compiler that wasn't a Fortran 90
> compiler, and thus a Fortran 77 compiler.
>
> Take g77 and throw it away. While it's not particularly buggy, it hasn't
> been maintained for years and should be out-performed by a more modern
> compiler such as g95 or gfortran.
>

OK, so I tried to set all my fortran compilers to g95... But for some
reason, it looks like g95 and g95 (!) compilers are not compatible...
How's that even possible? (See below)

Thanks a lot,
Gustavo.
------
./configure --prefix=$MPI_HOME \
            --with-mpi-param_check=always \
            --with-threads=posix \
            --enable-mpi-threads \
            --disable-io-romio \
            --enable-mca-no-build=memory_mallopt,maffinity,paffinity \
            --enable-contrib-no-build=vt \
            FC='g95' F77='g95' F90='g95' F95='g95' \
            CC='gcc' CXX='g++' \
            FFLAGS='-O0 -fno-second-underscore'

<snip>
*** Fortran 77 compiler
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g95 accepts -g... yes
checking if Fortran 77 compiler works... yes
checking g95 external symbol convention... single underscore
checking if C and Fortran 77 are link compatible... yes
<snip> (just a ton of "yes"-es)

*** Fortran 90/95 compiler
checking whether we are using the GNU Fortran compiler... yes
checking whether g95 accepts -g... yes
checking if Fortran compiler works... yes
checking whether g95 and g95 compilers are compatible... no
configure: WARNING: *** Fortran 77 and Fortran 90 compilers are not
link compatible
configure: WARNING: *** Disabling MPI Fortran 90/95 bindings