Hi, <br>below post is similar to our issue but workaround suggested did not work..<br><br><a href="http://translate.google.co.in/translate?hl=en&amp;sl=zh-CN&amp;u=http://www.chinaunix.net/jh/4/979115.html&amp;ei=zsptTo7hPIrQrQfNi524BQ&amp;sa=X&amp;oi=translate&amp;ct=result&amp;resnum=7&amp;ved=0CFQQ7gEwBg&amp;prev=/search%3Fq%3Dpi3f90.f90%252Bundefined%2Breference%2Bto%2B%2560mpi_init_%2527%26hl%3Den%26client%3Dfirefox-a%26hs%3DDP3%26rls%3Dorg.mozilla:en-US:official%26prmd%3Divns">http://translate.google.co.in/translate?hl=en&amp;sl=zh-CN&amp;u=http://www.chinaunix.net/jh/4/979115.html&amp;ei=zsptTo7hPIrQrQfNi524BQ&amp;sa=X&amp;oi=translate&amp;ct=result&amp;resnum=7&amp;ved=0CFQQ7gEwBg&amp;prev=/search%3Fq%3Dpi3f90.f90%252Bundefined%2Breference%2Bto%2B%2560mpi_init_%2527%26hl%3Den%26client%3Dfirefox-a%26hs%3DDP3%26rls%3Dorg.mozilla:en-US:official%26prmd%3Divns</a><br>
<br><div class="gmail_quote">On Tue, Sep 13, 2011 at 10:39 PM, Gus Correa <span dir="ltr">&lt;<a href="mailto:gus@ldeo.columbia.edu">gus@ldeo.columbia.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Akshar<br>
<br>
It sounds as a bug in the program,<br>
which causes a deadlock, not a problem with MPICH2.<br>
Your error message:<div class="im"><br>
&gt; MPID_Send(57): DEADLOCK: attempting to send a message to the local<br>
&gt; process without a prior matching receive<br></div>
If you post the code, the list may help you.<div class="im"><br>
<br>
Gus Correa<br>
<br>
<br>
akshar bhosale wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
sorry for not answering why not mpich2.<br>
We have tried to compile our code using mpich2, it compiles but while running the executable generated, it runs and in between it comes out giving some mpi send error. The code compiled with mpif90 (mpich-1.2.7p1) using gfortran on other machine runs fine.<br>

Error is as follows:<br>
<br>
#######<br>
 3  aft MPI_SEND           2           7           2           0<br>
           3  call MPI_SEND           2           8           2           0<br>
           3  aft MPI_SEND           2           8           2           0<br>
           3  call MPI_SEND           2           9           2           0<br>
           3  aft MPI_SEND           2           9           2           0<br>
           3  call MPI_SEND           2          10           2           0<br>
           3  aft MPI_SEND           2          10           2           0<br>
           3  call MPI_SEND           3           1           3           0<br>
[cli_3]: aborting job:<br>
Fatal error in MPI_Send: Other MPI error, error stack:<br>
MPI_Send(175): MPI_Send(buf=0x2aaab2af2018, count=1, dtype=USER&lt;vector&gt;, dest=3, tag=30003, MPI_COMM_WORLD) failed<br>
MPID_Send(57): DEADLOCK: attempting to send a message to the local process without a prior matching receive<br>
###############<br>
<br>
-akshar<br>
<br></div><div><div></div><div class="h5">
On Tue, Sep 13, 2011 at 10:02 PM, akshar bhosale &lt;<a href="mailto:akshar.bhosale@gmail.com" target="_blank">akshar.bhosale@gmail.com</a> &lt;mailto:<a href="mailto:akshar.bhosale@gmail.com" target="_blank">akshar.bhosale@gmail.<u></u>com</a>&gt;&gt; wrote:<br>

<br>
    thanks for reply.<br>
<br>
    Goal is to generate mpif90 using mpich-1.2.7p1 using gfortran which<br>
    will generate executable from our fortran code.<br>
<br>
    source files to be compiled are .f and .f90 files.<br>
<br>
    f2c flag is given because mp[if90 was not getting generated. no<br>
    other reason. we want mpif90.<br>
<br>
    Now we have tried giving only FC=gfortran and no other flag of<br>
    option except prefix, but still it is not generating mpif90 nor mpif77.<br>
<br>
    mpif90 generated  by using [export F90=fortran;F90FLAGS=&quot;-ff2c&quot;.]<br>
    options if tries to compile our code, it throws error<br>
<br>
<br>
    &lt;path to mpif90&gt;/mpif90 -f90=gfortran -Wl -o ../output_code.x set.o<br>
    inp.o otp.o bvsol.o user_kg.o mpi_util.o mpi_communication.o<br>
    mpi_memalloc.o driver.o rxn.o advdi_1d_finitediff_mf.o  aq_lib.o \<br>
            -L/ioapi/Linux2_x86_64gfort -lioapi<br>
    -L/np_cs/netcdf/INSTALL/lib -lnetcdf -L/usr/lib64/<br>
     -lgomp /np_cs/lapack/lapack-3.2.1/<u></u>lapack_LINUX.a<br>
    /np_cs/lapack/lapack-3.2.1/<u></u>blas_LINUX.a<br>
<br>
    /build/lib/libmpich.a(farg.o): In function `mpir_iargc__&#39;:<br>
    farg.f:(.text+0x6): undefined reference to `f__xargc&#39;<br>
    /build/lib/libmpich.a(farg.o): In function `mpir_getarg__&#39;:<br>
    farg.f:(.text+0x38): undefined reference to `getarg_&#39;<br>
    collect2: ld returned 1 exit status<br>
    make: *** [../output_code.x] Error 1<br>
<br>
    -akshar<br>
<br>
<br>
<br>
<br>
<br>
<br>
    On Tue, Sep 13, 2011 at 8:52 PM, Gus Correa &lt;<a href="mailto:gus@ldeo.columbia.edu" target="_blank">gus@ldeo.columbia.edu</a><br></div></div><div><div></div><div class="h5">
    &lt;mailto:<a href="mailto:gus@ldeo.columbia.edu" target="_blank">gus@ldeo.columbia.edu</a>&gt;<u></u>&gt; wrote:<br>
<br>
        Hi Pavan and Akshar<br>
<br>
        I see, it&#39;s MPICH-1.<br>
        May I ask why?<br>
<br>
        Would a workaround perhaps be to build only mpif77 (no mpif90),<br>
        replace &#39;use mpi&#39; by &#39;#include &quot;mpif.h&quot;&#39; in the application code,<br>
        and recompile it with mpif77?<br>
<br>
        I wonder if -ff2c works at all with Fortran90.<br>
        (See man page detail below.)<br>
<br>
        Anyway, I remember that there were complaints of runtime<br>
        errors (P4 errors) with mpich-1,<br>
        reported on this and other mailing lists,<br>
        when running on current Linux kernels.<br>
        Even with simple codes like the cpi example.<br>
        Using MPICH-1 may be an uphill battle.<br>
<br>
        I hope this helps,<br>
        Gus Correa<br>
<br>
         &gt;From man gfortran (4.1.2):<br>
<br>
              -ff2c<br>
                  Generate code designed to be compatible with code<br>
        generated by g77 and f2c.<br>
<br>
                  The calling conventions used by g77 (originally<br>
        implemented in f2c) require functions that return type default<br>
        &quot;REAL&quot; to actually return the C type<br>
                  &quot;double&quot;, and functions that return type &quot;COMPLEX&quot; to<br>
        return the values via an extra argument in the calling sequence<br>
        that points to where to store the<br>
                  return value.  Under the default GNU calling<br>
        conventions, such functions simply return their results as they<br>
        would in GNU C -- default &quot;REAL&quot; functions<br>
                  return the C type &quot;float&quot;, and &quot;COMPLEX&quot; functions<br>
        return the GNU C type &quot;complex&quot;.  Additionally, this option<br>
        implies the -fsecond-underscore option,<br>
                  unless -fno-second-underscore is explicitly requested.<br>
<br>
                  This does not affect the generation of code that<br>
        interfaces with the libgfortran library.<br>
<br>
                  Caution: It is not a good idea to mix Fortran code<br>
        compiled with &quot;-ff2c&quot; with code compiled with the default<br>
        &quot;-fno-f2c&quot; calling conventions as, calling<br>
                  &quot;COMPLEX&quot; or default &quot;REAL&quot; functions between program<br>
        parts which were compiled with different calling conventions<br>
        will break at execution time.<br>
<br>
                  Caution: This will break code which passes intrinsic<br>
        functions of type default &quot;REAL&quot; or &quot;COMPLEX&quot; as actual<br>
        arguments, as the library implementations<br>
                  use the -fno-f2c calling conventions.<br>
<br>
<br>
<br>
<br>
        Pavan Balaji wrote:<br>
<br>
<br>
            Gus: He doesn&#39;t want to use MPICH2. He&#39;s using MPICH-1.<br>
<br>
                   -- Pavan<br>
<br>
            On 09/13/2011 09:51 AM, Gus Correa wrote:<br>
<br>
                Hi Akshar<br>
<br>
                Maybe the F90FLAGS=&quot;-ff2c&quot; flag is causing the problem?<br>
                What if you remove it and use gfortran for F77 and FC?<br>
<br>
<br>
                Also, my &#39;configure -help&#39; (a bit old, MPICH2 1.3.2p1)<br>
                mentions FC, not F90, as the environment variable to be set.<br>
<br>
                For what it is worth, MPICH2 builds fine for us, with<br>
                gcc, g++ and gfortran (for F77 and FC).<br>
<br>
                My two cents,<br>
                Gus Correa<br>
<br>
                akshar bhosale wrote:<br>
<br>
                    Hi,<br>
<br>
                       If i specify F77 anf F90 as gfortran, it doesn&#39;t<br>
                    create mpif90 and<br>
                    mpif77 at all.<br>
                    Please see attached config log<br>
                    If i specify F90=gfortran and F90FLAGS=&quot;-ff2c&quot;, the<br>
                    it creates mpif90<br>
                    and mpif77 but is generating below issue.<br>
                    Kindly help.<br>
                    -akshar<br>
<br>
                    On Tue, Sep 13, 2011 at 9:46 AM, Rajeev<br>
                    Thakur&lt;<a href="mailto:thakur@mcs.anl.gov" target="_blank">thakur@mcs.anl.gov</a> &lt;mailto:<a href="mailto:thakur@mcs.anl.gov" target="_blank">thakur@mcs.anl.gov</a>&gt;<br>
                    &lt;mailto:<a href="mailto:thakur@mcs.anl.gov" target="_blank">thakur@mcs.anl.gov</a><br>
                    &lt;mailto:<a href="mailto:thakur@mcs.anl.gov" target="_blank">thakur@mcs.anl.gov</a>&gt;&gt;&gt;  wrote:<br>
<br>
                        In the configure step, if you specify both F77<br>
                    and F90 as gfortran,<br>
                        it should work.<br>
<br>
                        Rajeev<br>
<br>
                        On Sep 12, 2011, at 9:49 PM, akshar bhosale wrote:<br>
<br>
                         &gt;  Hi,<br>
                         &gt;  thanks.<br>
                         &gt;  but, in case of mpicc, it can be ignored,<br>
                    but in case of mpif90,<br>
                        it is still an issue.<br>
                         &gt;  e.g. hello_mpi.f90 program<br>
                         &gt;  ####################<br>
                         &gt;  program main<br>
                         &gt;     use mpi<br>
                         &gt;  !<br>
                         &gt;  ! implicit none<br>
                         &gt;  !<br>
                         &gt;    integer error<br>
                         &gt;    integer id<br>
                         &gt;    integer p<br>
                         &gt;    real ( kind = 8 ) wtime<br>
                         &gt;  !<br>
                         &gt;  !  Initialize MPI.<br>
                         &gt;  !<br>
                         &gt;    call MPI_Init ( error )<br>
                         &gt;  !<br>
                         &gt;  !  Get the number of processes.<br>
                         &gt;  !<br>
                         &gt;    call MPI_Comm_size ( MPI_COMM_WORLD, p,<br>
                    error )<br>
                         &gt;<br>
                         &gt;  !<br>
                         &gt;  !  Get the individual process ID.<br>
                         &gt;  !<br>
                         &gt;    call MPI_Comm_rank ( MPI_COMM_WORLD, id,<br>
                    error )<br>
                         &gt;  !<br>
                         &gt;  !  Print a message.<br>
                         &gt;  !<br>
                         &gt;    if ( id == 0 ) then<br>
                         &gt;<br>
                         &gt;      wtime = MPI_Wtime ( )<br>
                         &gt;<br>
                         &gt;      write ( *, &#39;(a)&#39; ) &#39; &#39;<br>
                         &gt;      write ( *, &#39;(a)&#39; ) &#39;HELLO_MPI - Master<br>
                    process:&#39;<br>
                         &gt;      write ( *, &#39;(a)&#39; ) &#39;  FORTRAN90/MPI version&#39;<br>
                         &gt;      write ( *, &#39;(a)&#39; ) &#39; &#39;<br>
                         &gt;      write ( *, &#39;(a)&#39; ) &#39;  An MPI test program.&#39;<br>
                         &gt;      write ( *, &#39;(a)&#39; ) &#39; &#39;<br>
                         &gt;      write ( *, &#39;(a,i8)&#39; ) &#39;  The number of<br>
                    processes is &#39;, p<br>
                         &gt;      write ( *, &#39;(a)&#39; ) &#39; &#39;<br>
                         &gt;<br>
                         &gt;    end if<br>
                         &gt;<br>
                         &gt;    write ( *, &#39;(a)&#39; ) &#39; &#39;<br>
                         &gt;    write ( *, &#39;(a,i8,a)&#39; ) &#39;  Process &#39;, id,<br>
                    &#39; says &quot;Hello, world!&quot;&#39;<br>
                         &gt;<br>
                         &gt;    if ( id == 0 ) then<br>
                         &gt;<br>
                         &gt;      write ( *, &#39;(a)&#39; ) &#39; &#39;<br>
                         &gt;      write ( *, &#39;(a)&#39; ) &#39;HELLO_MPI - Master<br>
                    process:&#39;<br>
                         &gt;      write ( *, &#39;(a)&#39; ) &#39;  Normal end of<br>
                    execution: &quot;Goodbye,<br>
                        world!&quot;.&#39;<br>
                         &gt;<br>
                         &gt;      wtime = MPI_Wtime ( ) - wtime<br>
                         &gt;      write ( *, &#39;(a)&#39; ) &#39; &#39;<br>
                         &gt;      write ( *, &#39;(a,g14.6,a)&#39; ) &#39;  Elapsed<br>
                    wall clock time = &#39;,<br>
                        wtime, &#39; seconds.&#39;<br>
                         &gt;<br>
                         &gt;     end if<br>
                         &gt;   !<br>
                         &gt;   !  Shut down MPI.<br>
                         &gt;   !<br>
                         &gt;    call MPI_Finalize ( error )<br>
                         &gt;<br>
                         &gt;    stop<br>
                         &gt;    end<br>
                         &gt;  ############################<br>
                         &gt;<br>
                         &gt;  $ ../../../build/bin/mpif90 hello_mpi.f90<br>
                         &gt;<br>
                     /scratch1/np_cs/trial1/build/_<u></u>_lib/libmpich.a(farg.o):<br>
                    In function<br>
                        `mpir_iargc__&#39;:<br>
                         &gt;  farg.f:(.text+0x6): undefined reference to<br>
                    `f__xargc&#39;<br>
                         &gt;<br>
                     /scratch1/np_cs/trial1/build/_<u></u>_lib/libmpich.a(farg.o):<br>
                    In function<br>
                        `mpir_getarg__&#39;:<br>
                         &gt;  farg.f:(.text+0x38): undefined reference to<br>
                    `getarg_&#39;<br>
                         &gt;  collect2: ld returned 1 exit status<br>
                         &gt;<br>
                         &gt;<br>
                         &gt;<br>
                         &gt;<br>
                         &gt;<br>
                         &gt;<br>
                         &gt;<br>
                         &gt;<br>
                         &gt;<br>
                         &gt;<br>
                         &gt;<br>
                         &gt;<br>
                         &gt;  On Mon, Sep 12, 2011 at 9:42 AM, Rajeev Thakur<br>
                        &lt;<a href="mailto:thakur@mcs.anl.gov" target="_blank">thakur@mcs.anl.gov</a><br></div></div>
                    &lt;mailto:<a href="mailto:thakur@mcs.anl.gov" target="_blank">thakur@mcs.anl.gov</a>&gt;&lt;<u></u>mailto:<a href="mailto:tha__kur@mcs.anl.gov" target="_blank">tha__kur@mcs.anl.gov</a><div><div></div>
<div class="h5"><br>
                    &lt;mailto:<a href="mailto:thakur@mcs.anl.gov" target="_blank">thakur@mcs.anl.gov</a>&gt;&gt;&gt;  wrote:<br>
                         &gt;  Ignore that. Compile a real program as mpicc<br>
                    foo.c.<br>
                         &gt;<br>
                         &gt;  On Sep 11, 2011, at 8:38 PM, akshar bhosale<br>
                    wrote:<br>
                         &gt;<br>
                         &gt;  &gt;  Hi,<br>
                         &gt;  &gt;  thank you for reply.<br>
                         &gt;  &gt;<br>
                         &gt;  &gt;  I tried to install it make it using<br>
                    following options now and i<br>
                        get following error with undefined reference to<br>
                    main. options given<br>
                        while configuring the same are :<br>
                         &gt;  &gt;  export F90=fortran;F90FLAGS=&quot;-ff2c&quot;.<br>
                         &gt;  &gt;  but error of undefined reference to main<br>
                    is observed in every<br>
                        executable like :<br>
                         &gt;  &gt;<br>
                         &gt;  &gt;  ./mpicc -v<br>
                         &gt;  &gt;  mpicc for 1.2.7 (release) of : 2005/06/22<br>
                    16:33:49<br>
                         &gt;  &gt;  Using built-in specs.<br>
                         &gt;  &gt;  Target: x86_64-redhat-linux<br>
                         &gt;  &gt;  Configured with: ../configure --prefix=/usr<br>
                        --mandir=/usr/share/man<br>
                    --infodir=/usr/share/info --enable-shared<br>
                        --enable-threads=posix --enable-checking=release<br>
                    --with-system-zlib<br>
                        --enable-__cxa_atexit --disable-libunwind-exceptions<br>
                        --enable-libgcj-multifile<br>
                                           --enable-languages=c,c++,objc,<u></u>__obj-c++,java,fortran,ada<br>
                        --enable-java-awt=gtk --disable-dssi<br>
                    --disable-plugin<br>
                                           --with-java-home=/usr/lib/jvm/<u></u>__java-1.4.2-gcj-1.4.2.0/jre<br>
                        --with-cpu=generic --host=x86_64-redhat-linux<br>
                         &gt;  &gt;  Thread model: posix<br>
                         &gt;  &gt;  gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)<br>
                         &gt;  &gt;                      /usr/libexec/gcc/x86_64-__<u></u>redhat-linux/4.1.2/collect2<br>
                        --eh-frame-hdr -m elf_x86_64 --hash-style=gnu<br>
                    -dynamic-linker<br>
                        /lib64/ld-linux-x86-64.so.2<br>
                                           /usr/lib/gcc/x86_64-redhat-__<u></u>linux/4.1.2/../../../../lib64/<u></u>__crt1.o<br>
                                           /usr/lib/gcc/x86_64-redhat-__<u></u>linux/4.1.2/../../../../lib64/<u></u>__crti.o<br>
                        /usr/lib/gcc/x86_64-redhat-__<u></u>linux/4.1.2/crtbegin.o<br>
                        -L/scratch1/np_cs/trial2/__<u></u>build/lib<br>
                        -L/opt/intel/mkl/<a href="http://10.2.2.025/__lib/em64t" target="_blank">10.2.2.025/__<u></u>lib/em64t</a><br></div></div>
                    &lt;<a href="http://10.2.2.025/lib/em64t" target="_blank">http://10.2.2.025/lib/em64t</a>&gt;&lt;<a href="http://10.2.2.025/__lib/em64t" target="_blank"><u></u>http://10.2.2.025/__lib/em64t</a><div class="im">
<br>
                    &lt;<a href="http://10.2.2.025/lib/em64t" target="_blank">http://10.2.2.025/lib/em64t</a>&gt;&gt;<br>
                        -L/opt/intel/mkl/<a href="http://10.2.2.025/__lib/em64t" target="_blank">10.2.2.025/__<u></u>lib/em64t</a><br></div>
                    &lt;<a href="http://10.2.2.025/lib/em64t" target="_blank">http://10.2.2.025/lib/em64t</a>&gt;&lt;<a href="http://10.2.2.025/__lib/em64t" target="_blank"><u></u>http://10.2.2.025/__lib/em64t</a><div><div>
</div><div class="h5"><br>
                    &lt;<a href="http://10.2.2.025/lib/em64t" target="_blank">http://10.2.2.025/lib/em64t</a>&gt;&gt;<br>
                        -L/usr/lib/gcc/x86_64-redhat-_<u></u>_linux/4.1.2<br>
                        -L/usr/lib/gcc/x86_64-redhat-_<u></u>_linux/4.1.2<br>
                                           -L/usr/lib/gcc/x86_64-redhat-_<u></u>_linux/4.1.2/../../../../lib64<br>
                        -L/lib/../lib64 -L/usr/lib/../lib64 -lmpich<br>
                    -lpthread -lrt -lgcc<br>
                        --as-needed -lgcc_s --no-as-needed -lc -lgcc<br>
                    --as-needed -lgcc_s<br>
                        --no-as-needed<br>
                    /usr/lib/gcc/x86_64-redhat-__<u></u>linux/4.1.2/crtend.o<br>
                                           /usr/lib/gcc/x86_64-redhat-__<u></u>linux/4.1.2/../../../../lib64/<u></u>__crtn.o<br>
                         &gt;  &gt;<br>
                                           /usr/lib/gcc/x86_64-redhat-__<u></u>linux/4.1.2/../../../../lib64/<u></u>__crt1.o:<br>
                    In<br>
                        function `_start&#39;:<br>
                         &gt;  &gt;  (.text+0x20): undefined reference to `main&#39;<br>
                         &gt;  &gt;  collect2: ld returned 1 exit status<br>
                         &gt;  &gt;<br>
                         &gt;  &gt;  ./mpif90 -v<br>
                         &gt;  &gt;  mpif90 for 1.2.7 (release) of :<br>
                    2005/06/22 16:33:49<br>
                         &gt;  &gt;  Driving: gfortran<br>
                    -L/scratch1/np_cs/trial2/__<u></u>build/lib -v<br>
                        -lmpichf90 -lmpich -lpthread -lrt<br>
                    -lgfortranbegin -lgfortran -lm<br>
                        -shared-libgcc<br>
                         &gt;  &gt;  Using built-in specs.<br>
                         &gt;  &gt;  Target: x86_64-redhat-linux<br>
                         &gt;  &gt;  Configured with: ../configure --prefix=/usr<br>
                        --mandir=/usr/share/man<br>
                    --infodir=/usr/share/info --enable-shared<br>
                        --enable-threads=posix --enable-checking=release<br>
                    --with-system-zlib<br>
                        --enable-__cxa_atexit --disable-libunwind-exceptions<br>
                        --enable-libgcj-multifile<br>
                                           --enable-languages=c,c++,objc,<u></u>__obj-c++,java,fortran,ada<br>
                        --enable-java-awt=gtk --disable-dssi<br>
                    --disable-plugin<br>
                                           --with-java-home=/usr/lib/jvm/<u></u>__java-1.4.2-gcj-1.4.2.0/jre<br>
                        --with-cpu=generic --host=x86_64-redhat-linux<br>
                         &gt;  &gt;  Thread model: posix<br>
                         &gt;  &gt;  gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)<br>
                         &gt;  &gt;                      /usr/libexec/gcc/x86_64-__<u></u>redhat-linux/4.1.2/collect2<br>
                        --eh-frame-hdr -m elf_x86_64 --hash-style=gnu<br>
                    -dynamic-linker<br>
                        /lib64/ld-linux-x86-64.so.2<br>
                                           /usr/lib/gcc/x86_64-redhat-__<u></u>linux/4.1.2/../../../../lib64/<u></u>__crt1.o<br>
                                           /usr/lib/gcc/x86_64-redhat-__<u></u>linux/4.1.2/../../../../lib64/<u></u>__crti.o<br>
                        /usr/lib/gcc/x86_64-redhat-__<u></u>linux/4.1.2/crtbegin.o<br>
                        -L/scratch1/np_cs/trial2/__<u></u>build/lib<br>
                        -L/opt/intel/mkl/<a href="http://10.2.2.025/__lib/em64t" target="_blank">10.2.2.025/__<u></u>lib/em64t</a><br></div></div>
                    &lt;<a href="http://10.2.2.025/lib/em64t" target="_blank">http://10.2.2.025/lib/em64t</a>&gt;&lt;<a href="http://10.2.2.025/__lib/em64t" target="_blank"><u></u>http://10.2.2.025/__lib/em64t</a><div class="im">
<br>
                    &lt;<a href="http://10.2.2.025/lib/em64t" target="_blank">http://10.2.2.025/lib/em64t</a>&gt;&gt;<br>
                        -L/opt/intel/mkl/<a href="http://10.2.2.025/__lib/em64t" target="_blank">10.2.2.025/__<u></u>lib/em64t</a><br></div>
                    &lt;<a href="http://10.2.2.025/lib/em64t" target="_blank">http://10.2.2.025/lib/em64t</a>&gt;&lt;<a href="http://10.2.2.025/__lib/em64t" target="_blank"><u></u>http://10.2.2.025/__lib/em64t</a><div class="im">
<br>
                    &lt;<a href="http://10.2.2.025/lib/em64t" target="_blank">http://10.2.2.025/lib/em64t</a>&gt;&gt;<br>
                        -L/usr/lib/gcc/x86_64-redhat-_<u></u>_linux/4.1.2<br>
                        -L/usr/lib/gcc/x86_64-redhat-_<u></u>_linux/4.1.2<br>
                                           -L/usr/lib/gcc/x86_64-redhat-_<u></u>_linux/4.1.2/../../../../lib64<br>
                        -L/lib/../lib64 -L/usr/lib/../lib64 -lmpichf90<br>
                    -lmpich -lpthread<br>
                        -lrt -lgfortranbegin -lgfortran -lm -lgcc_s<br>
                    -lgcc -lc -lgcc_s -lgcc<br>
                        /usr/lib/gcc/x86_64-redhat-__<u></u>linux/4.1.2/crtend.o<br>
                                           /usr/lib/gcc/x86_64-redhat-__<u></u>linux/4.1.2/../../../../lib64/<u></u>__crtn.o<br>
                         &gt;  &gt;<br>
                                           /usr/lib/gcc/x86_64-redhat-__<u></u>linux/4.1.2/libgfortranbegin._<u></u>_a(fmain.o):<br>
                        In function `main&#39;:<br>
                         &gt;  &gt;  (.text+0xa): undefined reference to `MAIN__&#39;<br>
                         &gt;  &gt;  collect2: ld returned 1 exit status<br>
                         &gt;  &gt;<br>
                         &gt;  &gt;  Am i missing somethin?<br>
                         &gt;  &gt;  thank you<br>
                         &gt;  &gt;  -akshar<br>
                         &gt;  &gt;<br>
                         &gt;  &gt;  On Mon, Sep 12, 2011 at 1:24 AM, William<br>
                    Gropp<br>
                        &lt;<a href="mailto:wgropp@illinois.edu" target="_blank">wgropp@illinois.edu</a><br></div>
                    &lt;mailto:<a href="mailto:wgropp@illinois.edu" target="_blank">wgropp@illinois.edu</a>&gt;&lt;<u></u>mailto:<a href="mailto:wg__ropp@illinois.edu" target="_blank">wg__ropp@illinois.edu</a><div><div></div>
<div class="h5"><br>
                    &lt;mailto:<a href="mailto:wgropp@illinois.edu" target="_blank">wgropp@illinois.edu</a>&gt;&gt;&gt;  wrote:<br>
                         &gt;  &gt;  You can use gfortran for F77 and F90.  If<br>
                    your requirement is<br>
                        to use gfortran for F77 and a different fortran<br>
                    for F90, then they<br>
                        will need to use consistent linker names,<br>
                    calling conventions, data<br>
                        sizes, and libraries.  The config.log file will<br>
                    have details on why<br>
                        configure decided that the Fortran 77 and<br>
                    Fortran 90 compilers were<br>
                        not compatible.<br>
                         &gt;  &gt;<br>
                         &gt;  &gt;  Bill<br>
                         &gt;  &gt;<br>
                         &gt;  &gt;<br>
                         &gt;  &gt;  On Sep 9, 2011, at 4:28 PM, akshar<br>
                    bhosale wrote:<br>
                         &gt;  &gt;<br>
                         &gt;  &gt;  hi,<br>
                         &gt;  &gt;  we have requirement of mpich-1.2.7 with<br>
                    gfortran. We have fiven<br>
                        flags as : CC=gcc;F90=fortran;F77=__<u></u>gfortran;<br>
                    and tried to configure,<br>
                        it throws error as configure: error: Fortran 90<br>
                    and Fortran 77<br>
                        compilers are not compatible..<br>
                         &gt;  &gt;  We have to do it using gfortran only. os<br>
                    is rhel5.1 64 bit<br>
                         &gt;  &gt;  what extran flags settings we have to do?<br>
                         &gt;  &gt;<br>
                         &gt;  &gt;  -akshar<br>
                         &gt;  &gt;<br>
                     ______________________________<u></u>___________________<br>
                         &gt;  &gt;  mpich-discuss mailing list                        <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
                    &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.<u></u>gov</a>&gt;<br>
                        &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl." target="_blank">mpich-discuss@mcs.anl.</a><u></u>__gov<br>
                    &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.<u></u>gov</a>&gt;&gt;<br>
                         &gt;  &gt;  To manage subscription options or<br>
                    unsubscribe:<br>
                         &gt;  &gt;<br>
                     <a href="https://lists.mcs.anl.gov/__mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/__<u></u>mailman/listinfo/mpich-discuss</a><br>
                    &lt;<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/<u></u>mailman/listinfo/mpich-discuss</a><u></u>&gt;<br>
                         &gt;  &gt;<br>
                         &gt;  &gt;  William Gropp<br>
                         &gt;  &gt;  Director, Parallel Computing Institute<br>
                         &gt;  &gt;  Deputy Director for Research<br>
                         &gt;  &gt;  Institute for Advanced Computing<br>
                    Applications and Technologies<br>
                         &gt;  &gt;  Paul and Cynthia Saylor Professor of<br>
                    Computer Science<br>
                         &gt;  &gt;  University of Illinois Urbana-Champaign<br>
                         &gt;  &gt;<br>
                         &gt;  &gt;<br>
                         &gt;  &gt;<br>
                         &gt;  &gt;<br>
                         &gt;  &gt;<br>
                     ______________________________<u></u>___________________<br>
                         &gt;  &gt;  mpich-discuss mailing list                        <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
                    &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.<u></u>gov</a>&gt;<br>
                        &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl." target="_blank">mpich-discuss@mcs.anl.</a><u></u>__gov<br>
                    &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.<u></u>gov</a>&gt;&gt;<br>
                         &gt;  &gt;  To manage subscription options or<br>
                    unsubscribe:<br>
                         &gt;  &gt;<br>
                     <a href="https://lists.mcs.anl.gov/__mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/__<u></u>mailman/listinfo/mpich-discuss</a><br></div></div><div class="im">
                    &lt;<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/<u></u>mailman/listinfo/mpich-discuss</a><u></u>&gt;<br>
                         &gt;<br>
                         &gt;<br>
                     ______________________________<u></u>___________________<br>
                         &gt;  mpich-discuss mailing list                        <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
                    &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.<u></u>gov</a>&gt;<br></div><div class="im">
                        &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl." target="_blank">mpich-discuss@mcs.anl.</a><u></u>__gov<br>
                    &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.<u></u>gov</a>&gt;&gt;<br>
                         &gt;  To manage subscription options or unsubscribe:<br>
                         &gt;<br>
                     <a href="https://lists.mcs.anl.gov/__mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/__<u></u>mailman/listinfo/mpich-discuss</a><br></div><div class="im">
                    &lt;<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/<u></u>mailman/listinfo/mpich-discuss</a><u></u>&gt;<br>
                         &gt;<br>
                         &gt;<br>
                     ______________________________<u></u>___________________<br>
                         &gt;  mpich-discuss mailing list                        <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
                    &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.<u></u>gov</a>&gt;<br></div><div class="im">
                        &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl." target="_blank">mpich-discuss@mcs.anl.</a><u></u>__gov<br>
                    &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.<u></u>gov</a>&gt;&gt;<br>
                         &gt;  To manage subscription options or unsubscribe:<br>
                         &gt;<br>
                     <a href="https://lists.mcs.anl.gov/__mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/__<u></u>mailman/listinfo/mpich-discuss</a><br></div><div class="im">
                    &lt;<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/<u></u>mailman/listinfo/mpich-discuss</a><u></u>&gt;<br>
<br>
                        ______________________________<u></u>___________________<br>
                        mpich-discuss mailing list                        <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
                    &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.<u></u>gov</a>&gt;<br></div><div class="im">
                        &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl." target="_blank">mpich-discuss@mcs.anl.</a><u></u>__gov<br>
                    &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.<u></u>gov</a>&gt;&gt;<br>
                        To manage subscription options or unsubscribe:<br>
                                           <a href="https://lists.mcs.anl.gov/__mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/__<u></u>mailman/listinfo/mpich-discuss</a><br></div><div class="im">

                    &lt;<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/<u></u>mailman/listinfo/mpich-discuss</a><u></u>&gt;<br>
<br>
<br>
<br>
                    ------------------------------<u></u>__----------------------------<u></u>--__------------<br>
<br>
                    ______________________________<u></u>___________________<br>
                    mpich-discuss mailing list                        <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
                    &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.<u></u>gov</a>&gt;<br>
                    To manage subscription options or unsubscribe:<br>
                    <a href="https://lists.mcs.anl.gov/__mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/__<u></u>mailman/listinfo/mpich-discuss</a><br>
                    &lt;<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/<u></u>mailman/listinfo/mpich-discuss</a><u></u>&gt;<br>
<br>
<br>
                ______________________________<u></u>___________________<br>
                mpich-discuss mailing list     <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
                &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.<u></u>gov</a>&gt;<br>
                To manage subscription options or unsubscribe:<br>
                <a href="https://lists.mcs.anl.gov/__mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/__<u></u>mailman/listinfo/mpich-discuss</a><br>
                &lt;<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/<u></u>mailman/listinfo/mpich-discuss</a><u></u>&gt;<br>
<br>
<br>
<br>
        ______________________________<u></u>___________________<br>
        mpich-discuss mailing list     <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
        &lt;mailto:<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.<u></u>gov</a>&gt;<br>
        To manage subscription options or unsubscribe:<br>
        <a href="https://lists.mcs.anl.gov/__mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/__<u></u>mailman/listinfo/mpich-discuss</a><br></div><div class="im">
        &lt;<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/<u></u>mailman/listinfo/mpich-discuss</a><u></u>&gt;<br>
<br>
<br>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>------------<br>
<br>
______________________________<u></u>_________________<br>
mpich-discuss mailing list     <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/<u></u>mailman/listinfo/mpich-discuss</a><br>
</div></blockquote><div><div></div><div class="h5">
<br>
______________________________<u></u>_________________<br>
mpich-discuss mailing list     <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/<u></u>mailman/listinfo/mpich-discuss</a><br>
</div></div></blockquote></div><br>