<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>Hello again,</div><div><br></div><div>I uninstalled, deleted the necessary .dylib's, and started again. Here are the commands I used after your comments.</div>
<div><br></div><div>export FC=gfortran</div><div><br></div><div><div>$ ./configure --prefix=/usr/local/mpich2 --enable-shared --enable-sharedlibs=osx-gcc --enable-fc 2>&1 | tee c.txt</div></div><div>(c.txt attached)</div>
<div>$ make VERBOSE=1 2>&1 | tee m.txt</div><div>(m.txt attached)</div><div><br></div><div>$ sudo make install 2>&1 | tee mi.txt</div><div><br></div><div>$ cd examples/f90</div><div>$ make 2>&1 | tee m_examples_f90.txt</div>
<div>(m_examples_f90.txt attached)</div><div><br></div><div>$ mpiexec -n 2 ./pi3f90</div><div>(pi3f90 runs and computes pi)</div><div><br></div><div>$ mpif90 -show</div><div>gfortran -Wl,-flat_namespace -I/usr/local/mpich2/include -I/usr/local/mpich2/include -L/usr/local/mpich2/lib -lmpichf90 -lmpichf90 -lpmpich -lmpich -lopa -lmpl -lpthread</div>
<div><br></div><div>I've attached c.txt, m.txt, and m_examples_f90.txt in the compressed file (I apologize for any inconvenience - my email was rejected when I didn't compress them). In my last email, by the output from show I meant the output when I used show and also included the compile options I use to compile my code. I copied the output from only "mpif90 -show" above. </div>
<div><br></div><div>Since the examples work, I believe it is a problem specific to my code. This code has compiled on Linux clusters with MPICH2 wrapping ifort, and also compiles in serial on Mac OS X with gfortran. I don't own a license of intel's ifort, so I can't try to install MPICH2 using ifort on Mac OS X. I'm copying the compile command which generates the error message. The fortran file is a few thousand lines long (this is an old inherited code) so I haven't included it.</div>
<div><br></div><div>$ 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<span style="white-space: pre-wrap; ">        </span> -c bla.f</div>
<div><br></div><div>I hope everything's clear now, and thank you for your help,</div><div>Brandt</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
Message: 2<br>Date: Sat, 12 Feb 2011 19:50:26 -0600<br>From: Rajeev Thakur <<a href="mailto:thakur@mcs.anl.gov" target="_blank" style="color: rgb(7, 77, 143); ">thakur@mcs.anl.gov</a>><div class="im" style="color: rgb(80, 0, 80); ">
<br>Subject: Re: [mpich-discuss] Error when compiling with mpif90<br>To: <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank" style="color: rgb(7, 77, 143); ">mpich-discuss@mcs.anl.gov</a><br></div>Message-ID: <<a href="mailto:4B1C8D42-DB1E-443F-B2CE-601B27AC0D6B@mcs.anl.gov" target="_blank" style="color: rgb(7, 77, 143); ">4B1C8D42-DB1E-443F-B2CE-601B27AC0D6B@mcs.anl.gov</a>><br>
Content-Type: text/plain; charset=us-ascii<br><br>What is --enable-fx for? Just try doing<br>./configure --prefix=/usr/local/mpich2 --enable-shared --enable-sharedlibs=osx-gcc 2>&1 | tee c.txt<br><br>Rajeev<div><div>
<span id="q_12e20ff260b87b42_3" class="h4" style="cursor: pointer; color: rgb(80, 0, 80); font-size: 9px; ">- Show quoted text -</span></div></div>> <c.txt><m.txt>_______________________________________________<br>
> mpich-discuss mailing list<div class="im" style="color: rgb(80, 0, 80); "><br>> <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank" style="color: rgb(7, 77, 143); ">mpich-discuss@mcs.anl.gov</a><br></div><div class="im" style="color: rgb(80, 0, 80); ">
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank" style="color: rgb(7, 77, 143); ">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br><br><br><br>------------------------------<br>
<br></div>Message: 4<br>Date: Sat, 12 Feb 2011 21:56:45 -0600 (CST)<div class="im" style="color: rgb(80, 0, 80); "><br>From: Anthony Chan <<a href="mailto:chan@mcs.anl.gov" target="_blank" style="color: rgb(7, 77, 143); ">chan@mcs.anl.gov</a>><br>
Subject: Re: [mpich-discuss] Error when compiling with mpif90<br>To: <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank" style="color: rgb(7, 77, 143); ">mpich-discuss@mcs.anl.gov</a><br>Message-ID:<br></div> <<a href="mailto:2145033232.49844.1297569405967.JavaMail.root@zimbra.anl.gov" target="_blank" style="color: rgb(7, 77, 143); ">2145033232.49844.1297569405967.JavaMail.root@zimbra.anl.gov</a>><div class="im" style="color: rgb(80, 0, 80); ">
<br>Content-Type: text/plain; charset=utf-8<br><br><br></div>Both .txt files seem fine. Did you do "make install" after "make" ?<br>--enable-fx should be --enable-fc. But since Fortran 90 support is<br>
enabled by default, --enable-fx is ignored.<br><br>Can you do the following ?<br><br>cd <mpich2-build-directory>/examples/f90<br>make<br><br>and send us the output of the "make" command ? More questions inlined<br>
below.<div class="im" style="color: rgb(80, 0, 80); "><br><br>----- Original Message -----<br>> Ok, I've added those flags, along with some others, but I still get<br>> the same<br>> error. The output from show is:<br>
<br></div><div><div><span id="q_12e20ff260b87b42_13" class="h4" style="cursor: pointer; color: rgb(80, 0, 80); font-size: 9px; ">- Show quoted text -</span></div></div>> _______________________________________________<br>
> mpich-discuss mailing list<div class="im" style="color: rgb(80, 0, 80); "><br>> <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank" style="color: rgb(7, 77, 143); ">mpich-discuss@mcs.anl.gov</a><br></div><div class="im" style="color: rgb(80, 0, 80); ">
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank" style="color: rgb(7, 77, 143); ">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a></div></blockquote></span>