[Trilinos-Users] Compiling Trilinos 10.0.1 on Mac.

Bartlett, Roscoe A rabartl at sandia.gov
Wed Oct 28 07:12:15 MDT 2009


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





-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20091028/8add5adc/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: thyra_test_nonlinear_models_CMakeLists.txt.patch
Type: application/octet-stream
Size: 450 bytes
Desc: thyra_test_nonlinear_models_CMakeLists.txt.patch
Url : https://software.sandia.gov/pipermail/trilinos-users/attachments/20091028/8add5adc/attachment.obj 


More information about the Trilinos-Users mailing list