You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build hypre on macOS as a shared library with FEI. I'm getting some undefined symbol errors for some MPI C++ functions.
Undefined symbols for architecture arm64:
"__ZN3MPI3Win4FreeEv", referenced from:
__ZTVN3MPI3WinE in FEI_HYPRE_Impl.cxx.o
__ZTVN3MPI3WinE in LLNL_FEI_Impl.cxx.o
__ZTVN3MPI3WinE in LLNL_FEI_Fei.cxx.o
__ZTVN3MPI3WinE in LLNL_FEI_LSCore.cxx.o
__ZTVN3MPI3WinE in LLNL_FEI_Solver.cxx.o
__ZTVN3MPI3WinE in LLNL_FEI_Matrix.cxx.o
__ZTVN3MPI3WinE in HYPRE_LSC_aux.cxx.o
...
I was able to fix the issue by adding the following lines to src/CMakeLists.txt at the end of the "if (HYPRE_USING_FEI)" block between lines 553 and 570.
if (NOT HYPRE_SEQUENTIAL)
target_link_libraries(${PROJECT_NAME} PUBLIC MPI::MPI_CXX)
endif(NOT HYPRE_SEQUENTIAL)
The text was updated successfully, but these errors were encountered:
I'm trying to build hypre on macOS as a shared library with FEI. I'm getting some undefined symbol errors for some MPI C++ functions.
I was able to fix the issue by adding the following lines to src/CMakeLists.txt at the end of the "if (HYPRE_USING_FEI)" block between lines 553 and 570.
The text was updated successfully, but these errors were encountered: