<div>Ok, I&#39;ve added those flags, along with some others, but I still get the same error. The output from show is:</div><div><br></div><div>/usr/local/bin/gfortran -c bla.f -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 -I/usr/local/mpich2/include -I/usr/local/mpich2/include</div>

<div><br></div><div>I configured with:</div><div><br></div><div><div><div>./configure --enable-fx --enable-f77 --prefix=/usr/local/mpich2 --enable-shared --enable-sharedlibs=osx-gcc 2&gt;&amp;1 | tee c.txt</div></div></div>

<div><br></div><div><br></div><div>I&#39;m attaching the configure and make (VERBOSE=1) logs too.</div><div><br></div><div>Thanks,</div><div>Brandt</div><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 11 Feb 2011 14:32:01 -0600 (CST)<br>
From: Anthony Chan &lt;<a href="mailto:chan@mcs.anl.gov">chan@mcs.anl.gov</a>&gt;<br>
Subject: Re: [mpich-discuss] Error when compiling with mpif90<br>
To: <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
Message-ID:<br>
        &lt;<a href="mailto:2104102570.47103.1297456321711.JavaMail.root@zimbra.anl.gov">2104102570.47103.1297456321711.JavaMail.root@zimbra.anl.gov</a>&gt;<br>
Content-Type: text/plain; charset=utf-8<br>
<br>
<br>
<br>
----- Original Message -----<br>
<br>
&gt; not /usr/bin/mpif90, which gives a different error message about not<br>
&gt; supporting fortran.<br>
&gt;<br>
&gt; The output from using show is:<br>
&gt;<br>
&gt; /usr/local/bin/gfortran -c bla.f -mcmodel=large<br>
&gt; -I/usr/local/mpich2/include<br>
&gt; -L/usr/local/mpich2/lib -cpp -I/usr/local/mpich2/include<br>
&gt; -I/usr/local/mpich2/include<br>
<br>
I am not familiar with Mac, but AFAIK, mpich2&#39;s mpif90 does not add<br>
&quot;-cpp&quot; or &quot;-mcmodel&quot;.  How did you configure mpich2 ?  Can you send us<br>
the configure and make outputs ?  I would like to make sure that<br>
your mpich2 build is OK.<br>
<br>
A.Chan<br>
<br>
&gt;<br>
&gt; And just to repeat, the compiler error messages are below.<br>
&gt;<br>
&gt; /var/folders/zz/zzzivhrRnAmviuee++2ZO++-7KU/-Tmp-//ccsWDdv3.s:23533:junk<br>
&gt; `@PLTOFF&#39; after expression<br>
&gt; /var/folders/zz/zzzivhrRnAmviuee++2ZO++-7KU/-Tmp-//ccsWDdv3.s:23537:junk<br>
&gt; `@GOTOFF&#39; after expression<br>
&gt;<br>
<br></blockquote></div>