[Trilinos-Users] Trilinos doesn't compile on OS X; Tried everything I know

Krishnaswamy,Sriram sriram.krish at ufl.edu
Thu Mar 19 20:35:45 MDT 2015


Hi Ramesh,

Thanks a lot for the reply. This did push the compilation forward but fell through again.

Can you tell me how you got openmpi on your system? Whether it was through Homebrew or if any other source. Same with BLAS and LAPACK. I think that would be clarify a few things.

Regards,
Sriram Krishnaswamy

On Mar 19, 2015, at 10:10 PM, Balakrishnan, Ramesh <bramesh at alcf.anl.gov<mailto:bramesh at alcf.anl.gov>> wrote:

Here is a configure file that I have used on my MacBook Pro that also runs 10.10.2.

=========================================================================
#!/bin/sh
TRILINOS_PATH=/Path/To/trilinos-11.12.1-Source
OPENMPI=/usr/apps/mpi/openmpi-1.8.3/gcc-4.9.2/
EXTRA_ARGS=$@

rm -f CMakeCache.txt

cmake \
  -D CMAKE_BUILD_TYPE:STRING=RELEASE \
  -D TPL_ENABLE_MPI:BOOL=ON \
  -D MPI_BASE_DIR:PATH="$OPENMPI"\
  -D MPI_BIN_DIR:PATH="$OPENMPI/bin"\
  -D MPI_INCLUDE_PATH:PATH="$OPENMPI/include" \
  -D MPI_USE_COMPILER_WRAPPERS:BOOL=ON \
  -D MPI_Fortran_COMPILER:FILEPATH="$OPENMPI/bin/mpif90" \
  -D MPI_CXX_COMPILER:FILEPATH="$OPENMPI/bin/mpicxx" \
  -D CMAKE_CXX_FLAGS:STRING="-g -O3" \
  -D MPI_C_COMPILER:FILEPATH="$OPENMPI/bin/mpicc" \
  -D TPL_ENABLE_BLAS:STRING=ON \
  -D BLAS_LIBRARY_DIRS:FILEPATH="/usr/apps/math/lapack-3.5.0/gcc-4.9.2/lib" \
  -D BLAS_LIBRARY_NAMES:STRING="libblas.a" \
  -D TPL_ENABLE_LAPACK:STRING=ON \
  -D LAPACK_LIBRARY_DIRS:FILEPATH="/usr/apps/math/lapack-3.5.0/gcc-4.9.2/lib" \
  -D LAPACK_LIBRARY_NAMES:STRING="liblapack.a" \
  -D Trilinos_ENABLE_Zoltan:BOOL=ON \
  -D TPL_ENABLE_Scotch:BOOL=ON \
  -D Scotch_INCLUDE_DIRS:FILEPATH="/usr/apps/tools/scotch-6.0.3/openmpi-1.8.3/gcc-4.9.2/include" \
  -D Scotch_LIBRARY_DIRS:FILEPATH="/usr/apps/tools/scotch-6.0.3/openmpi-1.8.3/gcc-4.9.2/lib" \
  -D TPL_ENABLE_PARMETIS:STRING=ON \
  -D PARMETIS_LIBRARY_DIRS:FILEPATH="/usr/apps/tools/parmetis-4.0.3/openmpi-1.8.3/gcc-4.9.2/lib" \
  -D PARMETIS_INCLUDE_DIRS:FILEPATH="/usr/apps/tools/parmetis-4.0.3/openmpi-1.8.3/gcc-4.9.2/include" \
  -D CMAKE_INSTALL_PREFIX="/usr/apps/tools/trilinos-11.12.1+ml+zoltan/openmpi-1.8.3/gcc-4.9.2" \
  -D HAVE_GCC_ABI_DEMANGLE:BOOL=ON \
  -D Trilinos_WARNINGS_AS_ERRORS_FLAGS:STRING="" \
  -D Trilinos_ENABLE_DEFAULT_PACKAGES:BOOL=ON \
  -D DART_TESTING_TIMEOUT:STRING=600 \
  -D CMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \
  -D Trilinos_ENABLE_CTrilinos:BOOL=ON\
  -D Trilinos_ENABLE_ForTrilinos:BOOL=ON\
  -D ForTrilinos_ENABLE_TESTS:BOOL=ON \
  -D ForTrilinos_ENABLE_OBJECT_ORIENTED:BOOL=ON \
  -D ForTrilinos_DISABLE_DEFERRED_LENGTH_CHARACTERS:BOOL=ON \
  -D ForTrilinos_DISABLE_FINAL_SUBROUTINES:BOOL=ON \
  -D ForTrilinos_ENABLE_EXAMPLES:BOOL=ON \
  -D Trilinos_ENABLE_ALL_PACKAGES:BOOL=OFF \
  -D Trilinos_ENABLE_ML:BOOL=ON \
  -D Trilinos_ENABLE_TESTS:BOOL=ON \
  -D Trilinos_ENABLE_EXAMPLES:BOOL=ON \
$EXTRA_ARGS \
$TRILINOS_PATH
=========================================================================

Hope this helps.

RB

On Mar 19, 2015, at 6:48 PM, Krishnaswamy,Sriram <sriram.krish at ufl.edu<mailto:sriram.krish at ufl.edu>> wrote:

Hello,

I represent the Stochastic Systems Lab<http://web.mae.ufl.edu/~mrinalkumar/Research/research.html> at the University of Florida. I am currently working on parallelizing the numerical method developed by my colleague to solve high dimensional Fokker-Planck Equation and I plan on using Trilinos and MPI for that.

I am facing a problem with getting Trilinos 11.12.1 to work on my MacBook Pro with OS X 10.10.2. I receive an architecture error - “Undefined symbols for architecture x86_64" - when I try to run Trilinos after compilation.

I posted an initial version of the question on Stack Exchange but have made some progress since then. I had initially tried to change the BLAS and LAPACK libraries but to no avail. I figured the compilation was a problem with the Fortran library in Mac and hence, after initially failing when trying to disable it, I added CXX flags and specified both Fortran libraries - from Homebrew and native - and after that it compiled. But the same architecture error keeps coming up when I try to run it.

Also, I tried compiling individual package by package and have figured out that the problem is with the Teuchos, and everything that directly depends on it, which seems to compile but invokes the architecture error when tried to run. I tried compiling it with Homebrew, based on the discussion in issue #887,  and it resulted in the same error when tried to run, although it did compile.

I have also tried compiling the entire package on a brand new Mac Pro with no change in result.

My configure file<https://gist.github.com/sriramkswamy/403db0748cc5af51cd86>
My CMakeError.log<https://gist.github.com/sriramkswamy/35cfc234958835d1982c> (when it didn’t compile initially and is due to the same architecture error)
My original stack exchange post<http://scicomp.stackexchange.com/questions/19156/trilinos-on-osx-fails-to-compile-from-source-and-compiles-from-homebrew-but-fail>
The Homebrew issue discussion<https://github.com/Homebrew/homebrew-science/issues/887>
My brew config<https://gist.github.com/sriramkswamy/7dd362441100e12ec1fd>
The test code I’m trying to run<https://gist.github.com/sriramkswamy/09583bc374ba2ddeffb4>
My mpic++ log when tried to run<https://gist.github.com/sriramkswamy/978a04058ccd13ff2edb> - this is the same with both Homebrew and manual compilation.

Any help regarding this would be great! Thank you for your time.

Regards,
Sriram Krishnaswamy

PS: I had sent the mail before confirming my account for the mailing list and it was put on hold. I deeply apologize if the mail has been sent twice.
_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov<mailto:Trilinos-Users at software.sandia.gov>
https://software.sandia.gov/mailman/listinfo/trilinos-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20150320/e4585195/attachment-0001.html>


More information about the Trilinos-Users mailing list