[Trilinos-Users] Compiling Trilinos 10.0.1 on Mac.

Ted Kord teddy.kord at googlemail.com
Fri Oct 23 13:06:01 MDT 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20091023/b53a11ac/attachment.html 


More information about the Trilinos-Users mailing list