[Trilinos-Users] linking problems
James Willenbring
jmwille at sandia.gov
Wed Oct 1 11:07:47 MDT 2008
Wilbert,
Try adding -lmpichcxx to your --with-mpi-libs value, to the right or the
left of -lmpich, which ever is appropriate. Also, are the libraries in the
/home/wilbert/Libraries/MPICH/mpich2-1.0.7/linux_gfortran directory, or is
this the base of your mpich installation?
You could also try brute force with
--ldflags="-L/path/to/mpi-libs -lmpichcxx -lmpich"
(or put -lmpichcxx to the right of -lmpich, if appropriate)
Jim
-----Original Message-----
From: trilinos-users-bounces at software.sandia.gov
[mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of Wilbert
Weijer
Sent: Wednesday, October 01, 2008 11:52 AM
To: trilinos-users at software.sandia.gov
Subject: [Trilinos-Users] linking problems
Hi,
I'm having a hopefully trivial problem, which nonetheless has been
bugging me for days now:
In the configure phase of the package ml, the linker 'ld' isn't able to
find the library -lmpichcxx. This is despite the fact that I directly
point to the directory with the --with-mpi directive. I even have the
environmental variable LD_LIBRARY_PATH set to point to this directory.
When I don't include the ml package, configure and make go well, but now
'make tests' gives me trouble: again the linker 'ld' cannot find the
library -lmpich (when making tests of sacado).
Any suggestions are greatly appreciated!
Thanks,
-Wilbert.
My configure script:
../configure --
prefix=/home/wilbert/Libraries/TRILINOS/trilinos-9.0.0/linuxgfortran_mpi
\
--with-blas=/home/wilbert/Libraries/LAPACK/lapack-3.1.1/blas_gfortran.a
\
--with-
lapack=/home/wilbert/Libraries/LAPACK/lapack-3.1.1/lapack_gfortran.a \
--with-mpi-compilers F77=mpif77 F90=mpif90 CC=mpicc CXX=mpicxx
CPPFLAGS=-DMPICH_IGNORE_CXX_SEEK \
--with-mpi=/home/wilbert/Libraries/MPICH/mpich2-1.0.7/linux_gfortran \
--with-mpi-libs="-lmpich" \
--enable-nox --enable-belos --enable-ifpack --disable-ml \
--enable-teuchos --enable-teuchos-complex --enable-teuchos-extended \
--enable-sacado --enable-nox-lapack --enable-epetraext \
--enable-nox-epetra --enable-anasazi --enable-epetra \
--enable-nox-epetra-examples --enable-loca \
--enable-export-makefiles
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wilbert Weijer Phone: (505) 667 7469
CCS-2, MS B296 Fax: (505) 667 5921
Los Alamos National Laboratory E-mail: wilbert at lanl.gov
Los Alamos, NM 87545 URL: http://public.lanl.gov/wilbert
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov
http://software.sandia.gov/mailman/listinfo/trilinos-users
More information about the Trilinos-Users
mailing list