[Trilinos-Users] Installation; Better situation but another Problem

Thornquist, Heidi K hkthorn at sandia.gov
Mon Sep 15 11:20:12 MDT 2008


Hi AA,

I don't know if you've already resolved your issue, but my recommendation would be to use the mpi
compiler wrappers (mpiCC, mpicc, mpif77) generated by Open MPI, which are in the /home/openmpi-1.2.6/bin
directory, instead of directly calling the compiler (g++, gcc, gfortran) and trying to pass in the mpi library
using the path and -lmpi.  The wrappers are there to ensure that you get all your paths correct.  Otherwise,
if you have another version of Open MPI or MPICH installed on your machine, you may unintentionally compile
against it.

So, if you haven't found your problem, I would suggest adding CC=/home/openmpi-1.2.6/bin/mpicc,
CXX=/home/openmpi-1.2.6/bin/mpiCC, and F77=/home/openmpi-1.2.6/bin/mpif77 to your configure script.

Thanks,
Heidi


On 9/15/08 3:39 AM, "amjad ali" <amjad11 at gmail.com> wrote:

Hi,

I also ran
1) make  (It runs fine)
2) make  install (It runs fine)
3) make example  (it got stuck saying some problem related to MPI)

regards,
AA,

Please see following:
[root at localhost LINUX_MPI]# make examples
cd packages && make examples
make[1]: Entering directory
`/home/amjad/softwares/trilinos-8.0.8/LINUX_MPI/packages'
../../config/makeall make examples teuchos rtop kokkos epetra triutils
 epetraext thyra isorropia aztecoo galeri  amesos ifpack   belos
anasazi  ml moertel  stratimikos meros sacado nox rythmos  new_package
moocho  didasko  external

Making target examples in
/home/amjad/softwares/trilinos-8.0.8/LINUX_MPI/packages/teuchos

make[2]: Entering directory
`/home/amjad/softwares/trilinos-8.0.8/LINUX_MPI/packages/teuchos'

Now building teuchos examples.

cd ./example && make
make[3]: Entering directory
`/home/amjad/softwares/trilinos-8.0.8/LINUX_MPI/packages/teuchos/example'
Making all in BLAS
make[4]: Entering directory
`/home/amjad/softwares/trilinos-8.0.8/LINUX_MPI/packages/teuchos/example/BLAS'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/home/amjad/softwares/trilinos-8.0.8/LINUX_MPI/packages/teuchos/example/BLAS'
Making all in CommandLineProcessor
make[4]: Entering directory
`/home/amjad/softwares/trilinos-8.0.8/LINUX_MPI/packages/teuchos/example/CommandLineProcessor'
g++  -g -O2  -L/home/openmpi-1.2.6/lib -o CLP_example.exe cxx_main.o
-L/home/openmpi-1.2.6/lib
-L/home/amjad/softwares/trilinos-8.0.8/LINUX_MPI/packages/teuchos/src
-lteuchos -lmpi
/home/amjad/softwares/petsc-2.3.3-p11/externalpackages/fblaslapack/linux-gnu-openmpi/libflapack.a
/home/amjad/softwares/petsc-2.3.3-p11/externalpackages/fblaslapack/linux-gnu-openmpi/libfblas.a
 -L/home/openmpi-1.2.6/lib -L/usr/lib/gcc/i386-redhat-linux/4.1.2
-L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../.. -lmpi -lgfortranbegin
-lgfortran -lm
cxx_main.o: In function `MPI::Op::Init(void (*)(void const*, void*,
int, MPI::Datatype const&), bool)':
/home/openmpi-1.2.6/include/openmpi/ompi/mpi/cxx/op_inln.h:122:
undefined reference to `ompi_mpi_cxx_op_intercept'
cxx_main.o: In function `Intracomm':
/home/openmpi-1.2.6/include/openmpi/ompi/mpi/cxx/intracomm_inln.h:23:
undefined reference to `MPI::Comm::Comm()'
cxx_main.o: In function `Intracomm':
/home/openmpi-1.2.6/include/openmpi/ompi/mpi/cxx/intracomm.h:25:
undefined reference to `MPI::Comm::Comm()'
/home/openmpi-1.2.6/include/openmpi/ompi/mpi/cxx/intracomm.h:25:
undefined reference to `MPI::Comm::Comm()'
/home/openmpi-1.2.6/include/openmpi/ompi/mpi/cxx/intracomm.h:25:
undefined reference to `MPI::Comm::Comm()'
/home/openmpi-1.2.6/include/openmpi/ompi/mpi/cxx/intracomm.h:25:
undefined reference to `MPI::Comm::Comm()'
cxx_main.o:/home/openmpi-1.2.6/include/openmpi/ompi/mpi/cxx/intracomm.h:25:
more undefined references to `MPI::Comm::Comm()' follow
cxx_main.o:(.rodata._ZTVN3MPI3WinE[vtable for MPI::Win]+0x14):
undefined reference to `MPI::Win::Set_errhandler(MPI::Errhandler
const&)'
cxx_main.o:(.rodata._ZTVN3MPI3WinE[vtable for MPI::Win]+0x24):
undefined reference to `MPI::Win::Free()'
cxx_main.o:(.rodata._ZTVN3MPI9IntercommE[vtable for
MPI::Intercomm]+0xd4): undefined reference to
`MPI::Comm::Set_errhandler(MPI::Errhandler const&)'
cxx_main.o:(.rodata._ZTVN3MPI9GraphcommE[vtable for
MPI::Graphcomm]+0xd4): undefined reference to
`MPI::Comm::Set_errhandler(MPI::Errhandler const&)'
cxx_main.o:(.rodata._ZTVN3MPI8CartcommE[vtable for
MPI::Cartcomm]+0xd4): undefined reference to
`MPI::Comm::Set_errhandler(MPI::Errhandler const&)'
cxx_main.o:(.rodata._ZTVN3MPI9IntracommE[vtable for
MPI::Intracomm]+0xd4): undefined reference to
`MPI::Comm::Set_errhandler(MPI::Errhandler const&)'
cxx_main.o:(.rodata._ZTVN3MPI4CommE[vtable for MPI::Comm]+0xd4):
undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler
const&)'
cxx_main.o:(.rodata._ZTVN3MPI8DatatypeE[vtable for
MPI::Datatype]+0x3c): undefined reference to `MPI::Datatype::Free()'
collect2: ld returned 1 exit status
make[4]: *** [CLP_example.exe] Error 1
make[4]: Leaving directory
`/home/amjad/softwares/trilinos-8.0.8/LINUX_MPI/packages/teuchos/example/CommandLineProcessor'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/amjad/softwares/trilinos-8.0.8/LINUX_MPI/packages/teuchos/example'
make[2]: *** [examples] Error 2
make[2]: Leaving directory
`/home/amjad/softwares/trilinos-8.0.8/LINUX_MPI/packages/teuchos'
Error, the make of target examples failed for the package !
make[1]: *** [examples] Error 2
make[1]: Leaving directory
`/home/amjad/softwares/trilinos-8.0.8/LINUX_MPI/packages'
make: *** [examples] Error 2
[root at localhost LINUX_MPI]#

_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov
http://software.sandia.gov/mailman/listinfo/trilinos-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://software.sandia.gov/mailman/private/trilinos-users/attachments/20080915/5f7f0427/attachment.html 


More information about the Trilinos-Users mailing list