I had the following error while trying to install a open-mpi version:
ld: warning: ignoring file /opt/homebrew/Cellar/open-mpi/4.1.1_2/lib/libmpi.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Undefined symbols for architecture x86_64:
"_MPI_Finalize", referenced from:
_main in _configtest.o
"_MPI_Init", referenced from:
_main in _configtest.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
failure.
removing: _configtest.c _configtest.o
error: Cannot link MPI programs. Check your configuration!!!
make[2]: *** [AmberTools/src/mpi4py-3.0.3/CMakeFiles/mpi4py-build/mpi4py-build.stamp] Error 1
make[1]: *** [AmberTools/src/mpi4py-3.0.3/CMakeFiles/mpi4py.dir/all] Error 2
make: *** [all] Error 2
I am using macOS (M1) BigSur.
Thank you in advance for any help,
Rodrigo
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Fri Aug 13 2021 - 15:30:02 PDT