I built Openmpi with ifort successfully.
I am trying to use Openmpi with ifort but got the following error,
Undefined symbols for architecture x86_64:
"_ompi_buffer_detach_f08", referenced from:
System: macOS Catalina
$ ./configure --prefix=/usr/local/share/
$ make all install
Any idea about how to fix this?
you might need to read the OpenMPI configure options. I believe you need to set the Fortran compiler to Intel. Default is normally gfortran FC=ifort for example.
Or search for how to build OpenMPI for Intel Fortran.
It was configured with ifort because GCC was not installed in the macOS,
that is why I didn't specify the FC in the configuration file.
This was identified to be an issue of Intel Fortran as can be seen from the following discussion.
I don't know if this issue has been reported to Intel Fortran development team.
I had the same problem and here's how I made openmpi work for macOS 10.15.7, Xcode 11.7, intel parallel studio xe 220.127.116.111 and openMPI 4.0.5. Configure openmpi 4.0.5:
./configure --prefix=/opt/openmpi CC=icc CXX=icc F77=ifort FC=ifort lt_prog_compiler_wl_FC=-Wl,
# Additional compiler flags for building library objects. pic_flag=" -fno-common -fPIC" # How to pass a linker flag through the compiler. wl="-Wl,"
Then make and install openmpi:
sudo make all install
And then another tedious compiler and system upgrade day comes to a close...