scons problem

Asked by Zeljka Tutek

Hi there!
What might cause the following message ?

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
mpic++ -o demo main.o -L/usr/local/lib -L/usr/lib/atlas -L/usr/lib/slepcdir/3.0.0/linux-gnu-c-opt/lib -L/usr/lib/petscdir/3.0.0/linux-gnu-c-opt/lib -ldolfin -lboost_program_options-mt -lboost_filesystem-mt -lxml2 -lCGAL -lCGAL_Core -ltrilinos_ml -ltrilinos_ifpack -ltrilinos_amesos -ltrilinos_aztecoo -ltrilinos_teuchos -ltrilinos_epetra -ltrilinos_epetraext -ltrilinos_galeri -lumfpack -lcholmod -lamd -lcamd -lcolamd -lccolamd -lparmetis -lmetis -llapack -lblas -lslepc -lparpack -larpack -lz -lpetscts -lpetscsnes -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lX11
main.o: In function `has_type<dolfin::EpetraMatrix>':
/usr/local/include/dolfin/la/GenericTensor.h:95: undefined reference to `typeinfo for dolfin::EpetraMatrix'
main.o: In function `dolfin::LUSolver::solve(dolfin::GenericMatrix const&, dolfin::GenericVector&, dolfin::GenericVector const&)':
/usr/local/include/dolfin/la/LUSolver.h:79: undefined reference to `dolfin::EpetraLUSolver::EpetraLUSolver()'
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libtrilinos_teuchos.so: undefined reference to `XML_SetUserData'
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libtrilinos_teuchos.so: undefined reference to `XML_ParserCreate'
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libtrilinos_teuchos.so: undefined reference to `XML_Parse'
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libtrilinos_epetraext.so: undefined reference to `Trilinos_Util_ReadMatrixMarket2Epetra(char*, Epetra_Comm const&, Epetra_Map*&, Epetra_CrsMatrix*&, Epetra_Vector*&, Epetra_Vector*&, Epetra_Vector*&)'
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libtrilinos_teuchos.so: undefined reference to `XML_SetElementHandler'
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libtrilinos_epetraext.so: undefined reference to `Trilinos_Util_ReadTriples2Epetra(char*, bool, Epetra_Comm const&, Epetra_Map*&, Epetra_CrsMatrix*&, Epetra_Vector*&, Epetra_Vector*&, Epetra_Vector*&, bool, bool, bool)'
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libtrilinos_teuchos.so: undefined reference to `XML_SetCharacterDataHandler'
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/../../../../lib/libtrilinos_epetraext.so: undefined reference to `Trilinos_Util_ReadHb2Epetra(char*, Epetra_Comm const&, Epetra_Map*&, Epetra_CrsMatrix*&, Epetra_Vector*&, Epetra_Vector*&, Epetra_Vector*&)'
collect2: ld returned 1 exit status
scons: *** [demo] Error 1
scons: building terminated because of errors.

Regards,
Zeljka

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Johannes Ring
Solved:
Last query:
Last reply:
Revision history for this message
Best Johannes Ring (johannr) said :
#1

Hi Zeljka,

Sorry for the late reply. Did you figure this one out? If not, are you sure you need Trilinos? You can disable it in DOLFIN by running

  scons configure enableTrilinos=no

If you do need to build DOLFIN with Trilinos, please let us know and we will try to work things out.

Revision history for this message
Zeljka Tutek (zeljkat) said :
#2

Thanks Johannes Ring, that solved my question.