<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Mike,<br>
<br>
Humm, sorry it didn't work as expected. My development platform runs
OSX 10.5.7. I have compiled many working openmpi versions with the
following recipe:<br>
<br>
export LD_LIBRARY_PATH=/opt/gcc-4.3.2/lib:$LD_LIBRARY_PATH &&
export PATH=/opt/gcc-4.3.2/bin:$PATH<br>
<br>
./configure --prefix=/opt/openmpi-1.2.8_gcc-4.3.2_m32 --enable-static
--enable-shared --disable-dependency-tracking --with-devel-headers
--with-wrapper-ldflags="-Wl,-search_paths_first"
CC=/opt/gcc-4.3.2/bin/gcc LDFLAGS="-L/opt/gcc-4.3.2/lib"
FC=/opt/gcc-4.3.2/bin/gfortran F77=/opt/gcc-4.3.2/bin/gfortran
CXX=/opt/gcc-4.3.2/bin/g++ CPP=/opt/gcc-4.3.2/bin/cpp CFLAGS="-m32 -O3
-march=native" CXXFLAGS="-m32 -O3 -march=native" FCFLAGS="-m32 -O3
-march=native" FFLAGS="-m32 -O3 -march=native"<br>
<br>
As you understand, my homemade gcc/gfortran lives in /opt/gcc-4.3.2/bin
and I install the corresponding openmpi in
/opt/openmpi-1.2.8_gcc-4.3.2_m32. Same story with openmpi up to version
1.3.2 and gcc up to 4.4.0. The -m32 flag is there to specify 32bit
binaries (-m64 will build 64bit openmpi for the corresponding binaries,
adapt the LDFLAGS too). I am quite convinced that the error message you
receive comes from a mixture with Apple provided openmpi libs without
gfortran support.<br>
And when it is done, in order to compile or run mpi software, I add
the path to the new openmpi binaries and libs in front with a:<br>
<br>
export PATH=/opt/openmpi-1.2.8_gcc-4.3.2_m32/bin:$PATH &&
export
DYLD_LIBRARY_PATH=/opt/openmpi-1.2.8_gcc-4.3.2_m32/lib:$DYLD_LIBRARY_PATH<br>
<br>
i.e. I end with a
PATH=/opt/openmpi-1.2.8_gcc-4.3.2_m32/bin:/opt/gcc-4.3.2/bin:xxx and
DYLD_LIBRARY_PATH=/opt/openmpi-1.2.8_gcc-4.3.2_m32/lib:/opt/gcc-4.3.2:xxx
where xxx is the original content of the variables.<br>
<br>
Kind regards,<br>
<br>
Alain<br>
<br>
<br>
Michael Hayden wrote:
<blockquote cite="mid:D3B46E74-3E45-4FFC-996E-2D978D6D3719@umbc.edu"
type="cite">Alain,
<div><br>
</div>
<div>Thanks for taking the time to look into my problem.</div>
<div><br>
</div>
<div>I tried the --with-wrapper-ldflags=-Wl,-search_paths_first
approach, but it didn't work.</div>
<div>Also, my PATH already includes /usr/local/bin and /usr/local/lib.</div>
<div><br>
</div>
<div>After I compile openmpi I tried some of the test programs in the
~/examples dir. All the C and C++ programs ran on all 8 of my
processors, but the all the Fortran ones returned this error:</div>
<div><br>
</div>
<div>
<div><font class="Apple-style-span" color="#ff1e00">Unfortunately,
this installation of Open MPI was not compiled with</font></div>
<div><font class="Apple-style-span" color="#ff1e00">Fortran 90
support. As such, the mpif90 compiler is non-functional.</font></div>
<div><br>
</div>
<div>I even went to gcc.gnu.org and got the gcc-4.4.0 fortran and did
the whole process over again, but got the same result.</div>
<div><br>
</div>
<div>Mike</div>
<div><br>
</div>
</div>
</blockquote>
...<br>
</body>
</html>