<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Rowena,<br>
<br>
Pythia's 'configure' script expects compiler flags for the MPI*
variables; e.g.,<br>
<br>
&nbsp;&nbsp;&nbsp; MPIINCLUDES="-I/opt/mpich/include"<br>
&nbsp;&nbsp;&nbsp; MPILIBS="-L/opt/mpich/lib -lmpich"<br>
<br>
However, I recommend that you avoid this problem altogether by
configuring Pythia without MPI. PyLith does not need Pythia's MPI
modules. So configure Pythia like this:<br>
<br>
&nbsp;&nbsp;&nbsp; ./configure --without-mpi<br>
<br>
In fact, I highly recommend this, as this isn't the only Pythia-MPI
road block you are likely to encounter. (The Pythia 'configure' script
has some issues with MPICH2... or, more accurately, MPICH2 has some
C++/preprocessor-related issues which 'configure' does not
automatically work-around.)<br>
<br>
--Leif<br>
<br>
<br>
Rowena Lohman wrote:
<blockquote
 cite="mid8ff973e30611281443h3e896ee3l8bbaf4f42dc7d985@mail.gmail.com"
 type="cite">Hi all,<br>
  <br>
It did turn out that my petsc problems had to do with a dead
libgfortran link that is now fixed, thanks for helping me find that.<br>
  <br>
Next problem:&nbsp; It isn't clear to me exactly how MPILIBS and MPIINCLUDES
should be set for petsc.&nbsp; I started by setting them to the /lib and
/bin directories that petsc created during mpich installation:
  <br>
  <br clear="all">
MPILIBS=/u/vento0/rlohman/pylith-0.8/petsc-dev/externalpackages/mpich2-1.0.4p1/lib<br>
MPIINCLUDES=/u/vento0/rlohman/pylith-0.8/petsc-dev/externalpackages/mpich2-1.0.4p1/bin<br>
  <br>
However, when I do this, pythia dies during ./configure with the
following problem:
  <br>
  <br>
configure:19916: g++ -o conftest -g -O2&nbsp;&nbsp; conftest.cc
/u/vento0/rlohman/pylith-0.8/petsc-dev/externalpackages/mpich2-1.0.4p1/lib&nbsp;
&gt;&amp;5<br>
/u/vento0/rlohman/pylith-0.8/petsc-dev/externalpackages/mpich2-1.0.4p1
/lib: file not recognized: Is a directory<br>
  <br>
To me this looks like it expects MPILIBS to be a file, not a
directory.&nbsp; However, I've tried replacing it with the name of the files
in lib/ and it still dies at that point, looking for MPI_Init.&nbsp; I can
send my whole config.log file if someone tells me what I should set for
MPILIBS.<br>
  <br>
Thanks again,<br>
Rowena<br>
  <br>
  <br>
-- <br>
-----------------------------------<br>
Rowena Lohman<br>
MS 300-233<br>
Jet Propulsion Lab<br>
Pasadena, CA 91109
  <br>
818-354-4253<br>
-----------------------------------
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
CIG-CS mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CIG-CS@geodynamics.org">CIG-CS@geodynamics.org</a>
<a class="moz-txt-link-freetext" href="http://geodynamics.org/cgi-bin/mailman/listinfo/cig-cs">http://geodynamics.org/cgi-bin/mailman/listinfo/cig-cs</a>
  </pre>
</blockquote>
<br>
</body>
</html>