Error compiling Trilinos with CSparse
Created by: dpo
I'm trying to build Trilinos with CSparse support in hopes of having a more complete Homebrew formula for automated installation on OSX. I'm using SuiteSparse 4.5.3. The error is as follows:
Undefined symbols for architecture x86_64:
"Amesos_CSparse::Amesos_CSparse(Epetra_LinearProblem const&)", referenced from:
Amesos::Create(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1:: allocator<char> >, Epetra_LinearProblem const&) in Amesos.cpp.o
ld: symbol(s) not found for architecture x86_64
Here's a build log: https://gist.github.com/2b4287cec9ae769a27e9ca72421ef964
The CMake invocation is (a bit long):
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/trilinos/12-6 -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DTPL_ENABLE_BLAS=ON -DTPL_ENABLE_LAPACK=ON -DTPL_ENABLE_Zlib:BOOL=ON -DTrilinos_ENABLE_ALL_PACKAGES=ON -DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES=ON -DTrilinos_ENABLE_EXAMPLES:BOOL=ON -DTrilinos_VERBOSE_CONFIGURE:BOOL=OFF -DTrilinos_WARNINGS_AS_ERRORS_FLAGS="" -DTrilinos_ENABLE_EXPLICIT_INSTANTIATION:BOOL=ON -DTrilinos_ENABLE_TESTS:BOOL=OFF -DEpetra_ENABLE_TESTS=ON -DCMAKE_PREFIX_PATH=/usr/local -DMPI_BASE_DIR:PATH=/usr/local -DTPL_ENABLE_MPI:BOOL=ON -DTrilinos_ENABLE_OpenMP:BOOL=OFF -DTrilinos_ENABLE_CXX11:BOOL=ON -DTrilinos_ENABLE_ShyLU:BOOL=ON -DTrilinos_ENABLE_Teko:BOOL=ON -DTrilinos_ENABLE_FEI=OFF -DTrilinos_ENABLE_Pike=OFF -DTrilinos_ENABLE_Piro=OFF -DTrilinos_ENABLE_SEACAS=OFF -DTrilinos_ENABLE_STK=OFF -DTrilinos_ENABLE_Stokhos=OFF -DTrilinos_ENABLE_Zoltan2=OFF -DTrilinos_ENABLE_Amesos2=OFF -DTeuchos_ENABLE_COMPLEX:BOOL=OFF -DKokkosTSQR_ENABLE_Complex:BOOL=OFF -DIntrepid_ENABLE_TESTS=OFF -DSacado_ENABLE_TESTS=OFF -DEpetraExt_ENABLE_TESTS=OFF -DMesquite_ENABLE_TESTS=OFF -DIfpack2_ENABLE_TESTS=OFF -DTPL_ENABLE_Boost:BOOL=ON -DTPL_ENABLE_Scotch:BOOL=ON -DTPL_ENABLE_Netcdf:BOOL=OFF -DTPL_ENABLE_ADOLC:BOOL=ON -DTPL_ENABLE_AMD:BOOL=ON -DTPL_ENABLE_Matio:BOOL=ON -DTPL_ENABLE_yaml-cpp:BOOL=ON -DTPL_ENABLE_CSparse:BOOL=ON -DCSparse_LIBRARY_NAMES=cxsparse;amd;colamd;suitesparseconfig -DTPL_ENABLE_Cholmod:BOOL=ON -DTPL_ENABLE_UMFPACK:BOOL=ON -DUMFPACK_LIBRARY_NAMES=umfpack;amd;colamd;cholmod;suitesparseconfig -DTPL_ENABLE_CppUnit:BOOL=ON -DCppUnit_LIBRARY_DIRS=/usr/local/opt/cppunit/lib -DTPL_ENABLE_Eigen:BOOL=ON -DEigen_INCLUDE_DIRS=/usr/local/opt/eigen/include/eigen3 -DTPL_ENABLE_GLPK:BOOL=ON -DTPL_ENABLE_HWLOC:BOOL=ON -DTPL_ENABLE_HYPRE:BOOL=ON -DTPL_ENABLE_METIS:BOOL=ON -DMETIS_LIBRARY_DIRS=/usr/local/opt/metis/lib -DMETIS_LIBRARY_NAMES=metis -DTPL_METIS_INCLUDE_DIRS=/usr/local/opt/metis/include -DTPL_ENABLE_MUMPS:BOOL=ON -DMUMPS_LIBRARY_DIRS=/usr/local/opt/mumps/lib -DMUMPS_LIBRARY_NAMES=dmumps;mumps_common;pord -DTPL_ENABLE_PETSC:BOOL=OFF -DTPL_ENABLE_HDF5:BOOL=OFF -DTPL_ENABLE_ParMETIS:BOOL=ON -DParMETIS_LIBRARY_DIRS=/usr/local/opt/parmetis/lib;/usr/local/opt/metis/lib -DParMETIS_LIBRARY_NAMES=parmetis;metis -DTPL_ParMETIS_INCLUDE_DIRS=/usr/local/opt/parmetis/include -DTPL_ENABLE_SCALAPACK:BOOL=ON -DTPL_ENABLE_SuperLU:BOOL=OFF -DHAVE_SUPERLUDIST_LUSTRUCTINIT_2ARG:BOOL=ON -DTPL_ENABLE_SuperLUDist:BOOL=ON -DSuperLUDist_INCLUDE_DIRS=/usr/local/opt/superlu_dist/include/superlu_dist -DTPL_ENABLE_QD:BOOL=OFF -DTPL_ENABLE_Lemon:BOOL=OFF -DTPL_ENABLE_GLM:BOOL=ON -DTPL_ENABLE_CASK:BOOL=OFF -DTPL_ENABLE_BinUtils:BOOL=OFF -DTPL_ENABLE_TBB:BOOL=ON -DTPL_ENABLE_X11:BOOL=ON -DTrilinos_ENABLE_Fortran=ON -DTrilinos_ENABLE_PyTrilinos:BOOL=ON -DPyTrilinos_INSTALL_PREFIX:PATH=/usr/local/Cellar/trilinos/12-6
Is there a user error that jumps out?
Thanks in advance!