[mpich-discuss] mpif77 -f77=gfortran

Kenneth Raffenetti raffenet at mcs.anl.gov
Tue Feb 16 15:38:03 CST 2016


Hi Andreas,

In MPICH 3.2, if configure detects your F77 and FC compilers are the 
same, a single mpifort compiler wrapper is built. Symlinks for mpif77 
and mpif90 are maintained, but in your case are not fully backwards 
compatible. The newer mpifort does not recognize -f77. It should 
recognize -fc, however.

Ken

On 02/16/2016 06:17 AM, Andreas Gocht wrote:
> Hey there
>
> I tired to compile a program using autotools. I realized that during the
> configure autotools is trying to compile "mpif77 -f77=gfortran -c -g
> conftest.f". The compilation fails with:
>
> configure:18975: mpif77 -f77=gfortran -c -g conftest.f >&5
> gfortran: error: unrecognized command line option '-f77=gfortran'
> configure:18975: $? = 1
> configure: failed program was:
> |       program main
> |
> |       end
> configure:18983: result: no
>
> witch leads the whole configure to fail.
>
> I tried to compile the sample program on the command line unsing "mpif77
> -f77=gfortran test.f" and I got the same result (test.f containing just
> "program main \n \n end").
> According to the man page of MPICH v3.2 "-f77" should choose the used
> Fortran compiler? It looks like the option is passed to fortran itself?
> I tried it with MPICH v3.2 as well as with the latest version form the
> git. MPICH 3.1 is working fine.
> Has there something changed between MPICH 3.1 and 3.2?
>
> Best Andreas
>
>
>
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list