[Trilinos-Users] Compiling Trilinos 10.0.1 on Mac.

Luca Heltai luca.heltai at gmail.com
Fri Oct 23 11:04:46 MDT 2009


Chris,

I have Snow Leopard on a mac book pro which is 2 years old, with gcc  
compiler downloaded from the HPC on MAC website:

uname -a:
Darwin *myhostnamehere* 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:
Using built-in specs.
Target: x86_64-apple-darwin10
Configured with: ../gcc-4.5-20090910/configure --enable- 
languages=fortran,c++ --host=x86_64-apple-darwin10 --build=x86_64- 
apple-darwin10
Thread model: posix
gcc version 4.5.0 20090910 (experimental) (GCC)

I use the following command line:

cmake \
-D CMAKE_CXX_COMPILER:FILEPATH=/usr/local/bin/g++ \
-D CMAKE_C_COMPILER:FILEPATH=/usr/local/bin/gcc \
-D CMAKE_Fortran_COMPILER:FILEPATH=/usr/local/bin/gfortran \
-D Trilinos_ENABLE_ALL_PACKAGES:BOOL=ON \
-D Trilinos_ENABLE_TESTS:BOOL=ON \
-D CMAKE_INSTALL_PREFIX=/usr/local/trilinos-10.0.1/release \
-D CMAKE_BUILD_TYPE:STRING=RELEASE \
-D BUILD_SHARED_LIBS:BOOL=ON \
..

Hope this helps.

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 23/ott/2009, at 18.28, Chris Baker wrote:

> Luca,
>
> Would you please include the command that you use to invoke cmake,  
> as well as a more detailed description of your Mac (which OS  
> version, which compiler version) ?
>
> Thanks,
> Chris
>
> On Fri, Oct 23, 2009 at 12:25, Luca Heltai <luca.heltai at gmail.com>  
> wrote:
> I've been trying to upgrade my 9.0.3 version of Trilinos to the 10.0.1
> version that uses cmake, and I keep getting linking problems during
> the build of the library.
>
> I used the most standard options + shared libs, but I keep getting the
> following:
>
> 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
>
> Any idea what I could be doing wrong?
>
> L.
>
> --
> 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
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
>




More information about the Trilinos-Users mailing list