[mpich-discuss] Error when compiling with mpif90

Anthony Chan chan at mcs.anl.gov
Mon Feb 14 00:25:30 CST 2011


Everything makes sense now.

----- Original Message -----

> $ mpif90 -fdefault-real-8 -O3 -fdollar-ok -fmax-errors=6
> -fconvert=big-endian -frecord-marker=4 -cpp -mcmodel=large -DMPI
> -I/usr/local/mpich2/include -L/usr/local/mpich2/lib -c bla.f

With mpif90, you don't need
"-I/usr/local/mpich2/include -L/usr/local/mpich2/lib"
which will be taken care of by mpif90.

> I hope everything's clear now, and thank you for your help,

Have you tried to compile your code on linux with mpich2 built by
gcc+gfortran ?  I would try to eliminate flags in "-fdefault-real-8
-O3 -fdollar-ok -fmax-errors=6 -fconvert=big-endian -frecord-marker=4
-cpp -mcmodel=large" one by one to see which causes the error...

A.Chan 


More information about the mpich-discuss mailing list