Skip to content

Commit defc260

Browse files
authored
Merge pull request #9398 from jsquyres/pr/compiler-updates-and-misc-updates
Disable support for GCC < v4.8.1
2 parents 009c94a + 12cef1f commit defc260

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ Master (not on release branches yet)
7777

7878
v5.0.0rc1 -- September, 2021
7979
--------------------
80+
8081
- ORTE, the underlying OMPI launcher has been removed, and replaced
8182
with PRTE.
8283
- Reworked how Open MPI integrates with 3rd party packages.
@@ -94,6 +95,8 @@ v5.0.0rc1 -- September, 2021
9495
- Various ROMIO v3.4.1 updates.
9596
- Use Pandoc to generate manpages
9697
- 32 bit atomics are now only supported via C11 compliant compilers.
98+
- Explicitly disable support for GNU gcc < v4.8.1 (note: the default
99+
gcc compiler that is included in RHEL 7 is v4.8.5).
97100
- Do not build Open SHMEM layer when there are no SPMLs available.
98101
Currently, this means the Open SHMEM layer will only build if
99102
the UCX library is found.

README.md

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

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

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

config/opal_setup_cc.m4

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,6 @@ AC_DEFUN([OPAL_SETUP_CC],[
416416

417417
AC_DEFUN([_OPAL_START_SETUP_CC],[
418418
opal_show_subtitle "C compiler and preprocessor"
419-
420-
# $%@#!@#% AIX!! This has to be called before anything invokes the C
421-
# compiler.
422-
dnl AC_AIX
423419
])
424420

425421

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)