I usually build OpenMPI using these flags

   --enable-mpi-cxx --enable-mpi-cxx-seek --enable-cxx-exceptions

but get this error for the 4.1.0 source

   checking for compiler exception flags... -fexceptions
   checking to see if C compiler likes the exception flags... no
   configure: WARNING: C++ exception flags are different between the C
   and C++ compilers; this configure script cannot currently handle
   this scenario.  Either disable C++ exception support or send mail to
   the Open MPI users list.
   configure: error: *** Cannot continue

with both the GCC 10.2.0 & PGI 21.1 compilers.
The problem goes away by removing the --enable-cxx-exceptions flag, but (a) is there a solution that doesn't involve removing capabilities, and (b) is this a bug that needs to be fixed in the source?

Reply via email to