On Thu, 24 Apr 2008, luyi wrote:
I am very sorry, I just find that I install openmpi and mpich together, that
is the problem!
It is working now.
Thank you very much!
You're welcome. I'll send a copy of this back to libmesh-users, so if
someone else has the same problem in the future they can find the
answer via search engine.
---
Roy
Roy Stogner 写道:
On Wed, 23 Apr 2008, luyi wrote:
I compile libmesh0.62 in Ubuntu 8.04, when "make examples", there is a
problem shown as follow:
ex0.i686-pc-linux-gnu.opt.o: In function `MPI::Op::Init(void (*)(void
const*, void*, int, MPI::Datatype const&), bool)':
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/op_inln.h:122: undefined
reference to `ompi_mpi_cxx_op_intercept'
ex0.i686-pc-linux-gnu.opt.o: In function `Intracomm':
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/intracomm_inln.h:23:
undefined reference to `MPI::Comm::Comm()'
ex0.i686-pc-linux-gnu.opt.o: In function `Intracomm':
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/intracomm.h:25: undefined
reference to `MPI::Comm::Comm()'
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/intracomm.h:25: undefined
reference to `MPI::Comm::Comm()'
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/intracomm.h:25: undefined
reference to `MPI::Comm::Comm()'
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/intracomm.h:25: undefined
reference to `MPI::Comm::Comm()'
ex0.i686-pc-linux-gnu.opt.o:/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/intracomm.h:25:
more undefined references to `MPI::Comm::Comm()' follow
ex0.i686-pc-linux-gnu.opt.o:(.data.rel.ro._ZTVN3MPI3WinE[vtable for
MPI::Win]+0x14): undefined reference to
`MPI::Win::Set_errhandler(MPI::Errhandler const&)'
ex0.i686-pc-linux-gnu.opt.o:(.data.rel.ro._ZTVN3MPI3WinE[vtable for
MPI::Win]+0x24): undefined reference to `MPI::Win::Free()'
collect2: ld return 1
make[1]: *** [ex0-opt] return 1
make[1]: Leaving directory `/home/cfd/Library/libmesh/examples/ex0'
make: *** [examples] return1
The mpi library used by PETSc have be changed to openmpi, I change the
compiler using
/configure --with-cxx=mpicxx --with-cc=mpicc --with-f77=mpif77, but it not
OK !
Check your Makefiles and see if libMesh isn't using mpicxx for some
reason. Otherwise, it looks like this is a bug in your MPI
implementation. The whole point of using mpicxx (and snooping PETSc's
linker variables on top of that) is to make sure we don't miss
whatever libraries your MPI version needs to link. If mpicxx on your
system misses a library that OpenMPI needs, there's nothing we can do
about that.
---
Roy
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users