[Trilinos-Users] compile error: stratimikos

Joshi, Amit amitj at bcm.tmc.edu
Sat Oct 24 08:55:53 MDT 2009


Hello Folks,
  I get the following error when linking stratimikos. All other configured packages compile and link without error.

Built target stratimikosaztecoo
Linking CXX shared library libstratimikos.dylib
Undefined symbols:
  "Thyra::MLPreconditionerFactory::MLPreconditionerFactory()", referenced from:
      Teuchos::AbstractFactoryStd<Thyra::PreconditionerFactoryBase<double, double>, Thyra::MLPreconditionerFactory, Teuchos::PostModNothing<Thyra::MLPreconditionerFactory>, Teuchos::AllocatorNew<Thyra::MLPreconditionerFactory> >::create() constin Stratimikos_DefaultLinearSolverBuilder.cpp.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [packages/stratimikos/src/libstratimikos.dylib] Error 1
make[1]: *** [packages/stratimikos/src/CMakeFiles/stratimikos.dir/all] Error 2
make: *** [all] Error 2


The do-configure file I am using is:
********************************************

EXTRA_ARGS=$@
        
        cmake \
          -D CMAKE_BUILD_TYPE:STRING=RELEASE \
          -D Trilinos_ENABLE_belos:BOOL=ON \
	  -D Trilinos_ENABLE_thyra:BOOL=ON \
	  -D Trilinos_ENABLE_rtop:BOOL=ON \
	  -D Trilinos_ENABLE_teuchos:BOOL=ON \
	  -D Trilinos_ENABLE_sacado:BOOL=ON \
	  -D Trilinos_ENABLE_ml:BOOL=ON \
	  -D Trilinos_ENABLE_ifpack:BOOL=ON \
	  -D Trilinos_ENABLE_epetra:BOOL=ON \
	  -D Trilinos_ENABLE_aztecoo:BOOL=ON \
	  -D Trilinos_ENABLE_amesos:BOOL=ON \
	  -D Trilinos_ENABLE_stratimikos:BOOL=ON \
          -D Trilinos_ENABLE_TESTS:BOOL=OFF \
	  -D BUILD_SHARED_LIBS:BOOL=ON \
	  -D CMAKE_OSX_DEPLOYMENT_TARGET=10.4 \
	  -D CMAKE_INSTALL_PREFIX:PATH=$TRILINOS_HOME/install \
          $EXTRA_ARGS \
          ${TRILINOS_HOME}
******************************************************



Thanks
Amit

Amit Joshi, Ph.D.
Asst. Professor,
Division of Molecular Imaging,
Department of Radiology,
Baylor College of Medicine,
phone: 713 798 9191
fax:   713 798 2749
email: amitj at bcm.edu
mail:  BCM 360, 
       One Baylor Plaza,
       Houston, TX 77030



-----Original Message-----
From: trilinos-users-bounces at software.sandia.gov on behalf of Amit Joshi
Sent: Fri 10/23/2009 4:32 PM
To: trilinos-users at software.sandia.gov
Subject: [Trilinos-Users] Mac install problem
 
Hello Folks,
  I am trying to install trilinos on an apple macbook pro running leopard (10.5.8). I have gcc 4.2 and gfortran 4.2 installed and working correctly for other programs.
When call the do-configure script, I get the following error:
*********************************************
    Linking CXX executable VerifyFortranC
    "/Applications/CMake 2.8-0.app/Contents/bin/cmake" -E cmake_link_script CMakeFiles/VerifyFortranC.dir/link.txt --verbose=1
    /usr/bin/g++    -mmacosx-version-min=10.5 -Wl,-search_paths_first -headerpad_max_install_names  CMakeFiles/VerifyFortranC.dir/main.c.o CMakeFiles/VerifyFortranC.dir/VerifyC.c.o CMakeFiles/VerifyFortranC.dir/VerifyFortran.f.o CMakeFiles/VerifyFortranC.dir/VerifyCXX.cxx.o  -o VerifyFortranC  -L/usr/local/lib/gcc/i686-apple-darwin8/4.2.3 -L/usr/local/lib -lcrt1.o -lgfortranbegin -lgfortran 
    ld: duplicate symbol start in /usr/lib/crt1.o and /usr/lib/crt1.10.5.o
   collect2: ld returned 1 exit status
    make[2]: *** [VerifyFortranC] Error 1
    make[1]: *** [CMakeFiles/VerifyFortranC.dir/all] Error 2
    make: *** [all] Error 2
    
Call Stack (most recent call first):
  cmake/TrilinosFortranMangling.cmake:11 (FortranCInterface_VERIFY)
  cmake/TrilinosProbeEnv.cmake:60 (INCLUDE)
  CMakeLists.txt:336 (INCLUDE)
**********************************************************
Maybe other mac users would have encountered a similar problem. Any help will be much appreciated.
Thanks
Amit
-- 




-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20091024/3b0bb748/attachment.html 


More information about the Trilinos-Users mailing list