[Trilinos-Users] Compiling Trilinos 10.0.1 on Mac.

Luca Heltai luca.heltai at gmail.com
Wed Oct 28 09:42:57 MDT 2009


It went a bit further, but I still get the same errors in linking  
stratimikos:

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()  
const in 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

Do I need to make clean? (I wouldn't think so...).

I applied the patch, ran again cmake, and then make...

Luca.

--
Luca Heltai <luca.heltai at gmail.com>
http://people.sissa.it/~heltai/
Scuola Internazionale Superiore di Studi Avanzati
Phone:  +39 040 3787 449, Office: 255
--
There are no answers, only cross references

On 28/ott/2009, at 14.12, Bartlett, Roscoe A wrote:

> Hello Ted and Luca,
>
> I could not reproduce the problem on my Linux machine but Chris  
> Baker could on his Mac and pointed out the problem (which is a real  
> problem).
>
> For now, please just apply the attached patch to the file:
>
>    packages/thyra/test/nonlinear/models/CMakeLists.txt
>
> Chris said that this fixes the problem and it is the right thing to  
> do anyway.  I am not sure how this worked on other platforms in the  
> first place.
>
> This patch will be in the next minor release of Trilinos 10.
>
> Thanks,
>
> - Ross
>
>
> --------------------------------------------------------------------------------------
> Dr. Roscoe A. Bartlett
> Sandia National Laboratories
> Member of the Technical Staff
> Trilinos Software Engineering Technologies and Integration Lead
> (505) 844-5097
> rabartl at sandia.gov
>
>
>
>
> From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos- 
> users-bounces at software.sandia.gov] On Behalf Of Ted Kord
> Sent: Friday, October 23, 2009 1:06 PM
> To: Luca Heltai
> Cc: trilinos-users at software.sandia.gov
> Subject: Re: [Trilinos-Users] Compiling Trilinos 10.0.1 on Mac.
>
> I also have linking problems when building Trilinos 10.0.1 on my Mac  
> Book Pro (3 days old). I get:
>
> Linking CXX shared library libthyra_nonlinear_test_models.dylib
> Undefined symbols:
> "Teuchos::PrintActiveRCPNodes::PrintActiveRCPNodes()", referenced  
> from:
> __static_initialization_and_destruction_0(int, int) in  
> Simple2DModelEvaluator.cpp.o
> "Teuchos::PrintActiveRCPNodes::~PrintActiveRCPNodes()", referenced  
> from:
> __static_initialization_and_destruction_0(int, int) in  
> Simple2DModelEvaluator.cpp.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[2]: *** [packages/thyra/test/nonlinear/models/ 
> libthyra_nonlinear_test_models.dylib] Error 1
> make[1]: *** [packages/thyra/test/nonlinear/models/CMakeFiles/ 
> thyra_nonlinear_test_models.dir/all] Error 2
>
> My system: Mac OS X 10.6 Snow Leopard
> Darwin *MyHostName* 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31  
> 22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386
>
> ==
> gcc -v:
> Target: x86_64-apple-darwin10
> Configured with: ../gcc-4.3.4/configure --prefix=/opt/local -- 
> build=x86_64-apple-darwin10 --enable-languages=c,c++,objc,obj-c+ 
> +,java,fortran --libdir=/opt/local/lib/gcc43 --includedir=/opt/local/ 
> include/gcc43 --infodir=/opt/local/share/info --mandir=/opt/local/ 
> share/man --with-local-prefix=/opt/local --with-system-zlib -- 
> disable-nls --program-suffix=-mp-4.3 --with-gxx-include-dir=/opt/ 
> local/include/gcc43/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local
> Thread model: posix
> gcc version 4.3.4 (GCC)
>
> ==
> My configure script:
>
> cmake \
> -D CMAKE_CXX_COMPILER:FILEPATH=/opt/local/bin/g++-mp-4.3 \
> -D CMAKE_C_COMPILER:FILEPATH=/opt/local/bin/gcc-mp-4.3 \
> -D CMAKE_Fortran_COMPILER:FILEPATH=/opt/local/bin/gfortran-mp-4.3 \
> -D CMAKE_BUILD_TYPE:STRING=DEBUG \
> -D BUILD_SHARED_LIBS:BOOL=ON \
> -D Trilinos_ENABLE_ALL_PACKAGES:BOOL=ON \
> -D Trilinos_ENABLE_SECONDARY_STABLE_CODE:BOOL=ON \
> -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
> -D Trilinos_ENABLE_PyTrilinos:BOOL=OFF \
> -D Trilinos_ENABLE_TESTS:BOOL=ON \
> -D Trilinos_ENABLE_Sundance:BOOL=ON \
> -D Sundance_ENABLE_BROKEN_CODE:BOOL=OFF \
> -D DART_TESTING_TIMEOUT:STRING=600 \
> -D Trilinos_ENABLE_Fortran:BOOL=OFF \
> -D TPL_ENABLE_MPI:BOOL=OFF \
> -D MPI_BASE_DIR:PATH=“/opt/local” \
> -D MPI_BIN_DIR:PATH="/opt/local/bin" \
> -D TPL_Boost_INCLUDE_DIRS:PATH=/opt/local/include/boost \
> -D Boost_INCLUDE_DIRS:PATH="/opt/local/include/boost" \
> -D Boost_LIBRARY_DIRS:PATH=/opt/local/lib \
> $EXTRA_ARGS \
> ${HOME}/trilinos-10.0.1-Source
>
>
> I had to turn fortran and mpi off as I was getting loads of errors  
> with them on.
>
> Regards
>
> Ted
>
>
>
>
>
> <thyra_test_nonlinear_models_CMakeLists.txt.patch>





More information about the Trilinos-Users mailing list