Yes, it is the correct approach. This code was just changed and then
fixed in the immediate past (yesterday? or perhaps the day before?),
and the fix was exactly as you described.
https://svn.open-mpi.org/trac/ompi/changeset/14939
On Jun 7, 2007, at 11:26 AM, Charles Williams wrote:
Hi,
I've been using openmpi-1.1.5 with no problems, but I decided to
move up to version 1.2 yesterday. I am working with the
developers' version of PETSc, so I attempted to configure it using
the newly-installed open-mpi. When I tried this, though, I ran
into the following problem (from PETsc's configure.log):
Possible ERROR while running preprocessor: In file included from /
Users/willic3/
geoframe/tools/openmpi-debug/include/mpi.h:1783,
from /Users/willic3/geoframe/tools/petsc-dev-new/
include/petsc.
h:138,
from /Users/willic3/geoframe/tools/petsc-dev-new/
src/dm/mesh/si
eve/ALE.hh:4,
from /Users/willic3/geoframe/tools/petsc-dev-new/
src/dm/mesh/si
eve/Sifter.hh:15,
from /Users/willic3/geoframe/tools/petsc-dev-new/
src/dm/mesh/si
eve/Sieve.hh:12,
from /Users/willic3/geoframe/tools/petsc-dev-new/
src/dm/mesh/si
eve/Topology.hh:5,
from /Users/willic3/geoframe/tools/petsc-dev-new/
src/dm/mesh/si
eve/SectionCompletion.hh:5,
from /Users/willic3/geoframe/tools/petsc-dev-new/
src/dm/mesh/si
eve/Numbering.hh:5,
from /Users/willic3/geoframe/tools/petsc-dev-new/
src/dm/mesh/si
eve/Mesh.hh:5,
from conftest.cc:3:
/Users/willic3/geoframe/tools/openmpi-debug/include/openmpi/ompi/
mpi/cxx/mpicxx.
h:162:36: error: ompi/mpi/cxx/constants.h: No such file or directory
/Users/willic3/geoframe/tools/openmpi-debug/include/openmpi/ompi/
mpi/cxx/mpicxx.
h:163:36: error: ompi/mpi/cxx/functions.h: No such file or directory
/Users/willic3/geoframe/tools/openmpi-debug/include/openmpi/ompi/
mpi/cxx/mpicxx.
h:164:35: error: ompi/mpi/cxx/datatype.h: No such file or directory
ret = 256
Here is what I have for my mpicxx:
mpicxx --show
g++ -D_REENTRANT -I/Users/willic3/geoframe/tools/openmpi-debug/
include -g -mcpu=G5 -Wl,-u,_munmap -Wl,-multiply_defined,suppress -
L/Users/willic3/geoframe/tools/openmpi-debug/lib -lmpi_cxx -lmpi -
lopen-rte -lopen-pal
I can make a change to mpicxx.h that fixes the problem:
diff mpicxx-orig.h mpicxx.h
162,164c162,164
< #include "ompi/mpi/cxx/constants.h"
< #include "ompi/mpi/cxx/functions.h"
< #include "ompi/mpi/cxx/datatype.h"
---
> #include "openmpi/ompi/mpi/cxx/constants.h"
> #include "openmpi/ompi/mpi/cxx/functions.h"
> #include "openmpi/ompi/mpi/cxx/datatype.h"
I don't know if this is the correct approach, though. Are the
paths actually incorrect or have I configured open-mpi incorrectly?
Thanks,
Charles
Charles A. Williams
Dept. of Earth & Environmental Sciences
Science Center, 2C01B
Rensselaer Polytechnic Institute
Troy, NY 12180
Phone: (518) 276-3369
FAX: (518) 276-2012
e-mail: will...@rpi.edu
_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users
--
Jeff Squyres
Cisco Systems