[Trilinos-Users] makefile

Alireza Nejadmalayeri Alireza.Nejadmalayeri at Colorado.EDU
Fri Nov 19 23:52:36 MST 2010


Hello,

I am trying to build a small code with the attached makefile but I am getting the following errors.

It seems none of the packages are identified. To my understanding,  include $(MYAPP_TRILINOS_DIR)/include/Makefile.export.Trilinos  should make all the installed packages accessible?!

Any thoughts/suggestions?

Thank you,
alireza



make
make: Warning: File `makefile' has modification time 1.1e+03 s in the future
\nFound Trilinos!  Here are the details:
   Trilinos_VERSION = 10.6.1
   Trilinos_PACKAGE_LIST = AztecOO Tpetra Triutils Epetra Kokkos ThreadPool Teuchos
   Trilinos_LIBRARIES = -laztecoo -ltpetrainout -ltpetra -ltriutils -lepetra -lkokkoslinalg -lkokkosnodeapi -lkokkos -ltpi -lteuchos
   Trilinos_INCLUDE_DIRS = -I/usr/local/trilinos-10.6.1__Install_mpi_wrapper_debug/include
   Trilinos_LIBRARY_DIRS = -L/usr/local/trilinos-10.6.1__Install_mpi_wrapper_debug/lib
   Trilinos_TPL_LIST = LAPACK BLAS MPI
   Trilinos_TPL_INCLUDE_DIRS =
   Trilinos_TPL_LIBRARIES = /usr/lib64/liblapack.so /usr/lib64/libblas.so
   Trilinos_TPL_LIBRARY_DIRS =
   Trilinos_BUILD_SHARED_LIBS = OFF
End of Trilinos details\n
/usr/local/lam-7.1.4/bin/mpic++ -c -g -O0 -g -O0  -I/usr/local/trilinos-10.6.1__Install_mpi_wrapper_debug/include  -DMYAPP_EPETRA main.cpp
/usr/bin/ar cr libmyappLib.a main.o
/usr/local/lam-7.1.4/bin/mpic++ -g -O0 -g -O0  /usr/lib64/libm.so -I/usr/local/trilinos-10.6.1__Install_mpi_wrapper_debug/include  -DMYAPP_EPETRA -L/usr/local/trilinos-10.6.1__Install_mpi_wrapper_debug/lib  -laztecoo -ltpetrainout -ltpetra -ltriutils -lepetra -lkokkoslinalg -lkokkosnodeapi -lkokkos -ltpi -lteuchos /usr/lib64/liblapack.so /usr/lib64/libblas.so libmyappLib.a -o MyApp.exe
libmyappLib.a(main.o)(.text+0x18c): In function `main':
/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:299: undefined reference to `Epetra_MpiComm::Epetra_MpiComm(_comm*)'
libmyappLib.a(main.o)(.text+0x1ac):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:315: undefined reference to `Epetra_Map::Epetra_Map(int, int, Epetra_Comm const&)'
libmyappLib.a(main.o)(.text+0x1db):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:324: undefined reference to `Epetra_BlockMap::MyGlobalElements(int*) const'
libmyappLib.a(main.o)(.text+0x223):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:366: undefined reference to `Epetra_Vector::Epetra_Vector(Epetra_BlockMap const&, bool)'
libmyappLib.a(main.o)(.text+0x238):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:367: undefined reference to `Epetra_Vector::Epetra_Vector(Epetra_BlockMap const&, bool)'
libmyappLib.a(main.o)(.text+0x25d):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:369: undefined reference to `Epetra_MultiVector::PutScalar(double)'
libmyappLib.a(main.o)(.text+0x2c3):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:372: undefined reference to `Epetra_MultiVector::Random()'
libmyappLib.a(main.o)(.text+0x341):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:395: undefined reference to `Epetra_LinearProblem::Epetra_LinearProblem(Epetra_Operator*, Epetra_MultiVector*, Epetra_MultiVector*)'
libmyappLib.a(main.o)(.text+0x363):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:400: undefined reference to `AztecOO::AztecOO(Epetra_LinearProblem const&)'
libmyappLib.a(main.o)(.text+0x3c1):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:432: undefined reference to `AztecOO::Iterate(int, double)'
libmyappLib.a(main.o)(.text+0x4a6):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:469: undefined reference to `AztecOO::~AztecOO()'
libmyappLib.a(main.o)(.text+0x4b2):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:469: undefined reference to `Epetra_LinearProblem::~Epetra_LinearProblem()'
libmyappLib.a(main.o)(.text+0x4be):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:469: undefined reference to `Epetra_Vector::~Epetra_Vector()'
libmyappLib.a(main.o)(.text+0x4ca):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:469: undefined reference to `Epetra_Vector::~Epetra_Vector()'
libmyappLib.a(main.o)(.text+0x4df):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:469: undefined reference to `Epetra_Map::~Epetra_Map()'
libmyappLib.a(main.o)(.text+0x4e8):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:469: undefined reference to `Epetra_MpiComm::~Epetra_MpiComm()'
libmyappLib.a(main.o)(.text+0x511):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:469: undefined reference to `AztecOO::~AztecOO()'
libmyappLib.a(main.o)(.text+0x534):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:469: undefined reference to `Epetra_LinearProblem::~Epetra_LinearProblem()'
libmyappLib.a(main.o)(.text+0x557):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:469: undefined reference to `Epetra_Vector::~Epetra_Vector()'
libmyappLib.a(main.o)(.text+0x57a):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:469: undefined reference to `Epetra_Vector::~Epetra_Vector()'
libmyappLib.a(main.o)(.text+0x5bd):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:469: undefined reference to `Epetra_Map::~Epetra_Map()'
libmyappLib.a(main.o)(.text+0x5dd):/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:469: undefined reference to `Epetra_MpiComm::~Epetra_MpiComm()'
libmyappLib.a(main.o)(.gnu.linkonce.t._ZN20MyTestLinearOperatorD1Ev+0x26): In function `MyTestLinearOperator::~MyTestLinearOperator()':
/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:336: undefined reference to `Epetra_Map::~Epetra_Map()'
libmyappLib.a(main.o)(.gnu.linkonce.t._ZN20MyTestLinearOperatorC1EdRK10Epetra_Map+0x3c): In function `MyTestLinearOperator::MyTestLinearOperator(double, Epetra_Map const&)':
/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:56: undefined reference to `Epetra_Map::Epetra_Map(Epetra_Map const&)'
libmyappLib.a(main.o)(.gnu.linkonce.t._ZNK20MyTestLinearOperator5ApplyERK18Epetra_MultiVectorRS0_+0x3c): In function `MyTestLinearOperator::Apply(Epetra_MultiVector const&, Epetra_MultiVector&) const':
/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:180: undefined reference to `Epetra_BlockMap::GID(int) const'
libmyappLib.a(main.o)(.gnu.linkonce.t._ZN20MyTestLinearOperatorD0Ev+0x26): In function `MyTestLinearOperator::~MyTestLinearOperator()':
/home/alireza/The_Trilions_Project/Trilinos_Users/TrilinosUsers__EpetraOperatorAztecOO__makefile/serial/main.cpp:336: undefined reference to `Epetra_Map::~Epetra_Map()'
collect2: ld returned 1 exit status
/usr/local/lam-7.1.4/bin/mpic++: No such file or directory
make: *** [MyApp.exe] Error 1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20101119/808c3285/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makefile.dat
Type: application/octet-stream
Size: 2690 bytes
Desc: not available
Url : https://software.sandia.gov/pipermail/trilinos-users/attachments/20101119/808c3285/attachment-0001.obj 


More information about the Trilinos-Users mailing list