Skip to content

Commit 5dc2398

Browse files
authored
Merge pull request #11282 from jsquyres/pr/disable-32-bit-builds-in-configure
Have configure abort if building for 32 bit
2 parents 53e9fba + 48e557c commit 5dc2398

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

configure.ac

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# University of Stuttgart. All rights reserved.
1111
# Copyright (c) 2004-2005 The Regents of the University of California.
1212
# All rights reserved.
13-
# Copyright (c) 2006-2022 Cisco Systems, Inc. All rights reserved
13+
# Copyright (c) 2006-2023 Cisco Systems, Inc. All rights reserved.
1414
# Copyright (c) 2006-2008 Sun Microsystems, Inc. All rights reserved.
1515
# Copyright (c) 2006-2017 Los Alamos National Security, LLC. All rights
1616
# reserved.
@@ -458,6 +458,10 @@ AC_CHECK_SIZEOF(double _Complex)
458458
AC_CHECK_SIZEOF(long double _Complex)
459459

460460
AC_CHECK_SIZEOF(void *)
461+
AS_IF([test "$ac_cv_sizeof_void_p" -eq 4],
462+
[AC_MSG_WARN([Open MPI no longer supports 32 bit builds.])
463+
AC_MSG_WARN([Please use Open MPI v4.x or earlier if you need 32 bit support.])
464+
AC_MSG_ERROR([Cannot continue])])
461465
AC_CHECK_SIZEOF(size_t)
462466
if test "$ac_cv_type_ssize_t" = yes ; then
463467
AC_CHECK_SIZEOF(ssize_t)

docs/faq/supported-systems.rst

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -153,19 +153,6 @@ releases continually improve reliability and performance of
153153
multi-threaded MPI applications.
154154

155155

156-
/////////////////////////////////////////////////////////////////////////
157-
158-
Does Open MPI support 32 bit environments?
159-
------------------------------------------
160-
161-
As far as we know, yes. 64 bit architectures have effectively taken
162-
over the world, though, so 32-bit is not tested nearly as much as
163-
64-bit.
164-
165-
Specifically, most of the Open MPI developers only have 64-bit
166-
machines, and therefore only test 32-bit in emulation mode.
167-
168-
169156
/////////////////////////////////////////////////////////////////////////
170157

171158
Does Open MPI support 64 bit environments?

docs/release-notes/platform.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ Platform Notes
2222

2323
* Other systems have been lightly (but not fully) tested:
2424

25-
* Linux (various flavors/distros), 32 bit, with gcc
26-
* Cygwin 32 & 64 bit with gcc
25+
* Cygwin 64 bit with gcc
2726
* ARMv6, ARMv7, ARMv9
2827
* Other 64 bit platforms.
2928
* OpenBSD. Requires configure options ``--enable-mca-no-build=patcher``
@@ -32,6 +31,8 @@ Platform Notes
3231
using the clang-4.0 system compiler. A workaround is to build
3332
Open MPI using the GNU compiler.
3433

34+
.. note:: 32-bit environments are no longer supported.
35+
3536
* The run-time systems that are currently supported are:
3637

3738
* ssh / rsh

0 commit comments

Comments
 (0)