[Trilinos-Users] Error while building : Teuchos_GlobalMPISession.cpp
Bartlett, Roscoe A.
bartlettra at ornl.gov
Mon Dec 9 17:11:28 MST 2013
$ make VERBOSE=1
and it will show the actual link line. If you are not lining with mpicxx (or mpic++, etc.), then you are not going to find MPI libraries. You can also do a raw compiler build and specify the libraries manually but you really have to know what you are doing if you try that. Other than that 'make VERBOSE=1' will show you exactly what is happening.
> -----Original Message-----
> From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos-users-
> bounces at software.sandia.gov] On Behalf Of Hoemmen, Mark
> Sent: Monday, December 09, 2013 11:05 AM
> To: <trilinos-users at software.sandia.gov>
> Subject: Re: [Trilinos-Users] Error while building :
> On Dec 7, 2013, at 12:00 PM, <trilinos-users-request at software.sandia.gov>
> <trilinos-users-request at software.sandia.gov> wrote:
> > Message: 1
> > Date: Fri, 6 Dec 2013 13:07:17 -0600
> > From: "vsweta @iastate.edu" <vsweta at iastate.edu>
> > Subject: [Trilinos-Users] Error while building :
> > Teuchos_GlobalMPISession.cpp
> > To: trilinos-users at software.sandia.gov
> > Message-ID:
> > Content-Type: text/plain; charset="iso-8859-1"
> > Hi
> > I am trying to install trilinos on a cluster. I have it installed on my
> > computer and it is up and running. However when trying to install it on the
> > cluster using the same config file (with the paths changed appropriately),
> > once the configuration is done, when i try to build it using "make"
> > I get the following error (after generating a few obj files) :
> > *Linking CXX static library libteuchoscore.a[ 2%] Built target
> > teuchoscore[ 2%] Building CXX object
> > Warning: File `packages/teuchos/core/src/libteuchoscore.a' has
> > time 6.9e+02 s in the futureLinking CXX executable
> > In function `Teuchos::GlobalMPISession::initialize(std::basic_ostream<char,
> > std::char_traits<char> >*)':Teuchos_GlobalMPISession.cpp:(.text+0x264):
> > undefined reference to
> > `MPI_Initialized'
> This suggests that somehow Trilinos was unable to find your MPI library at
> the location indicated in your configuration. Note that all the "undefined
> reference" errors refer either to MPI functions or to OpenMPI's
> implementation of MPI functions (e.g., "ompi_mpi_comm_world"). Are you
> able to build a simple MPI program on the cluster that does not use Trilinos?
> If not, then your configuration probably isn't pointing to the right location for
> MPI. If so, then please come back to us with the Makefile that works for the
> non-Trilinos MPI program, and your MPI configuration for Trilinos, and we'll
> try to help out :-)
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
More information about the Trilinos-Users