openMPI port fails to build
Ryan Schmidt
ryandesign at macports.org
Sat May 16 21:20:34 PDT 2009
On May 16, 2009, at 12:29, MD White wrote:
> I am trying to build the openMPI port and it is failing. When I
> run with the debug mode on, I see that it has errors with
> "Making all in tools/orte-iof"
> it is listing undefined symbols:
> "_orte_iof" referenced from:
> _orte_iof$non_lazy_ptr in orte_iof.o
> and
> "_orte_routed", referenced from:
> _orte_routed$non_lazy_ptr in libopen-rte.a (hnp_contact.o)
> _orte_routed$non_lazy_ptr in libopen-rte.a (rml_base_contact.o)
>
> Now, I had an earlier failure because I had a version of ifort that
> no longer works (I only had a 30 day test license at one point).
> The strange thing there is that when it complained about this
> message the checks read:
> *** Fortran 77 compiler
> checking for gfortran... no
> checking for g77... no
> checking for f77... no
> checking for xlf... no
> checking for frt... no
> checking for ifort... ifort
> checking whether we are using the GNU Fortran 77 compiler... no
> checking whether ifort accepts -g... no
> checking if Fortran 77 compiler works... no
>
> I do, however have g77 (v 3.4.0) installed in /usr/local/bin/g77
It is not supported to have anything installed in /usr/local while
using MacPorts because MacPorts ports may automatically find such
software in /usr/local and disrupt your build.
> and I have gfortran-mp-4.3 installed (as well as g95). Apparently
> the verbose and debug flags do not normally list these checks, as
> this message went away when I removed ifort from my path. I have
> no idea which fortran the script ultimately finds, but it appears
> to be using /usr/bin/gcc-4.0 to compile this port, so if it is
> finding gfortran 4.3, could that be part of the problem?
>
> I also notice that I must have some version of openmpi installed
> already (with the developer's tools?). When I type:
> mpicc --version
> I get:
> i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5488)
> but if I try this with mpif77 or mpif90, I get a message
> "Unfortunately, this installation of Open MPI was not compiled with
> Fortran 77[90] support. As such, the mpif77[mpif90] compiler is non-
> functional."
>
> I was able to install mpich2 without any (apparent) problems - but
> I need openmpi for PETsc.
>
> I am running OS 10.5.6 and have Xcode 3.1.1 installed.
More information about the macports-users
mailing list