Skip to content

Commit 8529eb8

Browse files
committed
configure.ac: disable 32-bit builds
Per #11248, have configure fail if we're building for a 32-bit environment. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
1 parent d61d384 commit 8529eb8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
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)

0 commit comments

Comments
 (0)