<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">I initially used the gfortran binary provided by the HPC Mac OS X website at <a href="http://hpc.sourceforge.net/" target="_blank" style="color: rgb(0, 0, 204); ">http://hpc.sourceforge.net/</a> , which happens to be in 32-bit, and therefore gives rise to the incompatibility issue.<div>
A 64-bit version is available for Mac OS X at <a href="http://gcc.gnu.org/wiki/GFortranBinaries#MacOS" target="_blank" style="color: rgb(0, 0, 204); ">http://gcc.gnu.org/wiki/GFortranBinaries#MacOS</a> .</div><div>After this installation, the MPICH configure and make steps performed smoothly.</div>
<div><br></div><div>Thanks for the help!</div><div><br></div><div><font color="#888888">Sasha</font></div></span><br><div class="gmail_quote">On Fri, Aug 13, 2010 at 12:50 AM, <span dir="ltr"><<a href="mailto:chan@mcs.anl.gov">chan@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
> > configure: error: **** Incompatible Fortran and C Object File<br>
> Types! ****<br>
> > F77 Object File Type produced by "gfortran -O2" is : : Mach-O<br>
> object i386.<br>
> > C Object File Type produced by "gcc -O2" is : : Mach-O 64-bit<br>
> object x86_64.<br>
><br>
> Yes, this message is a 32/64-bit compatibility issue. Your fortran<br>
> compiler is outputting 32-bit by default, but your C compiler is<br>
> outputting 64-bit by default. The GNU compilers (and many other<br>
> compilers) accept "-m32" or "-m64" options to force the corresponding<br>
> output mode. The easiest way to set them is usually something like:<br>
><br>
> /path/to/configure CC="gcc -m32" F77="gfortran -m32" FC="gfortran<br>
> -m32" OTHER_CONFIG_ARGS...<br>
<br>
</div>Since you are using MPICH2-1.2.x, you should use F90 (not FC) to<br>
set Fortran 90+ compiler (FC in 1.2.x and older releases is the<br>
same as F77), i.e.<br>
<br>
/path/to/configure CC="gcc -m32" F77="gfortran -m32" F90="gfortran -m32" CXX="g++ -m32" OTHER_CONFIG_ARGS...<br>
<br>
In the upcoming 1.3 release, F90/F90FLAGS are being<br>
replaced by FC/FCFLAGS. So the configure command will<br>
be exactly like what Dave said.<br>
<br>
A.Chan<br>
<div><div></div><div class="h5">_______________________________________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</div></div></blockquote></div><br>