Skip to content

Commit e913ef4

Browse files
committed
configury: explicitly disable gcc < v4.8.1
NOTE: The default GCC that ships in RHEL is v4.8.5. Cisco regularly tests GCC v4.8.1, and it works fine. We know that PRTE and PMIX do not compile with RHEL 6's default GCC (v4.4.7). We know that v4.8.x works and 4.4.7 doesn't, so set the lower bound support for 4.8.1. Specifically: abort configure if the compiler is GCC and the version is < v4.8.1. Signed-off-by: Jeff Squyres <[email protected]>
1 parent 48b52c3 commit e913ef4

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ Master (not on release branches yet)
7575
* launcher.
7676
**********************************************************************
7777

78+
- Explicitly disable support for GNU gcc < v4.8.1 (note: the default
79+
gcc compiler that is included in RHEL 7 is v4.8.5).
7880
- Fix rank-by algorithms to properly rank by object and span
7981
- Do not build Open SHMEM layer when there are no SPMLs available.
8082
Currently, this means the Open SHMEM layer will only build if

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ base as of this writing (April 2020):
203203

204204
* On platforms other than x86-64, AArch64 (64-bit ARM), and PPC64,
205205
Open MPI requires a compiler that either supports C11 atomics or
206-
the GCC `__atomic` atomics (e.g., GCC >= v4.7.2).
206+
the GCC `__atomic` atomics (e.g., GCC >= v4.8.1).
207207

208208
* 32-bit platforms are only supported with a recent compiler that
209209
supports C11 atomics. This includes gcc 4.9.x+ (gcc 6.x or newer

configure.ac

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,22 @@ opal_show_subtitle "Compiler characteristics"
600600
OPAL_CHECK_ATTRIBUTES
601601
OPAL_CHECK_COMPILER_VERSION_ID
602602

603+
# Open MPI only supports GCC >=v4.8.1. Notes:
604+
#
605+
# 1. The default compiler that comes with RHEL 7 is v4.8.5 (version ID
606+
# 264197).
607+
# 2. We regularly test with GCC v4.8.1 (version ID 264193).
608+
# 3. GCC 4.8.0 probably also works; we just haven't tested it.
609+
#
610+
# Since we regularly test with 4.8.1, that's what we check for.
611+
AS_IF([test "$opal_cv_compiler_FAMILYNAME" == "GNU" && \
612+
test "$opal_cv_compiler_VERSION" -lt 264193],
613+
[AC_MSG_WARN([Open MPI no longer supports versions of the GNU compiler suite])
614+
AC_MSG_WARN([less than v4.8.1.])
615+
AC_MSG_WARN([Please upgrade your GNU compiler suite, or use])
616+
AC_MSG_WARN([a different compiler to build Open MPI.])
617+
AC_MSG_ERROR([Cannot continue])
618+
])
603619

604620
##################################
605621
# Java MPI Binding request

0 commit comments

Comments
 (0)