Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trilinos: Symbol(s) not found for architecture arm64 during Linking CXX shared library libteko.dylib #372

Closed
cgw0814 opened this issue Dec 5, 2023 · 2 comments

Comments

@cgw0814
Copy link

cgw0814 commented Dec 5, 2023

I'm using Apple-Silicon M2 to install tilinos

When I build trilinos-release-15.0.0 with setting from https://github.com/dealii/candi/blob/master/deal.II-toolchain/packages/trilinos.package

cmake \ -D TPL_ENABLE_MPI:BOOL=ON \ -D Trilinos_ENABLE_OpenMP:BOOL=OFF \ -D TPL_ENABLE_TBB:BOOL=OFF \ -D Trilinos_VERBOSE_CONFIGURE:BOOL=OFF \ -D Trilinos_ENABLE_EXPLICIT_INSTANTIATION=OFF \ -D Trilinos_ENABLE_Amesos:BOOL=ON \ -D Trilinos_ENABLE_Epetra:BOOL=ON \ -D Trilinos_ENABLE_EpetraExt:BOOL=ON \ -D Trilinos_ENABLE_Ifpack:BOOL=ON \ -D Trilinos_ENABLE_Ifpack2:BOOL=OFF \ -D Trilinos_ENABLE_Tpetra:BOOL=ON \ -D Trilinos_ENABLE_AztecOO:BOOL=ON \ -D Trilinos_ENABLE_Sacado:BOOL=ON \ -D Trilinos_ENABLE_Teuchos:BOOL=ON \ -D Teuchos_ENABLE_FLOAT:BOOL=ON \ -D Trilinos_ENABLE_MueLu:BOOL=ON \ -D Trilinos_ENABLE_ML:BOOL=ON \ -D Trilinos_ENABLE_NOX:BOOL=ON \ -D Trilinos_ENABLE_ROL:BOOL=ON \ -D Trilinos_ENABLE_Zoltan:BOOL=ON \ -D Trilinos_ENABLE_Stratimikos:BOOL=ON \ -D TPL_ENABLE_Boost:BOOL=OFF \ -D Trilinos_ENABLE_Belos:BOOL=ON \ -D Trilinos_ENABLE_Amesos2:BOOL=ON \ -D TPL_ENABLE_Matio=OFF \ -D CMAKE_BUILD_TYPE:STRING=RELEASE \ -D CMAKE_VERBOSE_MAKEFILE:BOOL=OFF \ -D BUILD_SHARED_LIBS:BOOL=ON \

and then make install

the errors appear during Linking CXX shared library libteko.dylib

[ 83%] Linking CXX shared library libteko.dylib Undefined symbols for architecture arm64: "__ZN11Stratimikos26LinearSolverBuilderHelpers17existingNameIndexEN7Teuchos9ArrayViewINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKS8_", referenced from: __ZNK11Stratimikos19LinearSolverBuilderIdE34getAndAssertExistingFactoryNameIdxERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7Teuchos9ArrayViewIS7_EES9_.isra.0 in Teko_InvLSCStrategy.cpp.o __ZNK11Stratimikos19LinearSolverBuilderIdE34getAndAssertExistingFactoryNameIdxERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7Teuchos9ArrayViewIS7_EES9_.isra.0 in Teko_InvModALStrategy.cpp.o __ZNK11Stratimikos19LinearSolverBuilderIdE34getAndAssertExistingFactoryNameIdxERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7Teuchos9ArrayViewIS7_EES9_.isra.0 in Teko_LSCPreconditionerFactory.cpp.o __ZNK11Stratimikos19LinearSolverBuilderIdE34getAndAssertExistingFactoryNameIdxERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7Teuchos9ArrayViewIS7_EES9_.isra.0 in Teko_LSCSIMPLECStrategy.cpp.o __ZNK11Stratimikos19LinearSolverBuilderIdE34getAndAssertExistingFactoryNameIdxERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7Teuchos9ArrayViewIS7_EES9_.isra.0 in Teko_ModALPreconditionerFactory.cpp.o __ZNK11Stratimikos19LinearSolverBuilderIdE34getAndAssertExistingFactoryNameIdxERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7Teuchos9ArrayViewIS7_EES9_.isra.0 in Teko_PCDStrategy.cpp.o __ZNK11Stratimikos19LinearSolverBuilderIdE34getAndAssertExistingFactoryNameIdxERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7Teuchos9ArrayViewIS7_EES9_.isra.0 in Teko_PresLaplaceLSCStrategy.cpp.o ... ld: symbol(s) not found for architecture arm64 collect2: error: ld returned 1 exit status make[2]: *** [packages/teko/src/libteko.15.1.dylib] Error 1 make[1]: *** [packages/teko/src/CMakeFiles/teko.dir/all] Error 2 make: *** [all] Error 2

How could I solve this problem?

@cgw0814 cgw0814 changed the title Symbol(s) not found for architecture arm64 during Linking CXX shared library libteko.dylib Trilinos: Symbol(s) not found for architecture arm64 during Linking CXX shared library libteko.dylib Dec 5, 2023
@bobmyhill
Copy link

As far as I can see in https://github.com/dealii/candi/blob/master/deal.II-toolchain/packages/trilinos.package, and https://dealii.org/developer/external-libs/trilinos.html, Trilinos 15.0.0 is not yet tested with deal.II.

Is there a reason you need the latest release of Trilinos?

@tjhei
Copy link
Member

tjhei commented May 28, 2024

This should be fixed with #350, at least I can compile on M1 without issues.

@tjhei tjhei closed this as completed May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants