Skip to content

configure.ac: refuse to build on 32 bit platforms #8575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,14 @@ opal_show_title "Compiler and preprocessor tests"

OPAL_SETUP_CC

# If we build on a windows environment with the windows compiler and linker
# then we need some translation functions from the opal/win32 directory.
AM_CONDITIONAL(OMPI_NEED_WINDOWS_REPLACEMENTS,
test "$opal_cv_c_compiler_vendor" = "microsoft" )
# Open MPI no longer supports 32 bit builds
AC_CHECK_SIZEOF(void *)
AC_MSG_CHECKING([if build environment is 32 bit])
AS_IF([test "$ac_cv_sizeof_void_p" = "4"],
[AC_MSG_RESULT([yes])
AC_MSG_WARN([Sorry, this version of Open MPI does not support building on 32-bit platforms.])
AC_MSG_ERROR([Cannot continue])])
AC_MSG_RESULT([no (good)])

# Do all Interix detections if necessary
OMPI_INTERIX
Expand Down Expand Up @@ -481,7 +485,6 @@ AC_CHECK_SIZEOF(float _Complex)
AC_CHECK_SIZEOF(double _Complex)
AC_CHECK_SIZEOF(long double _Complex)

AC_CHECK_SIZEOF(void *)
AC_CHECK_SIZEOF(size_t)
if test "$ac_cv_type_ssize_t" = yes ; then
AC_CHECK_SIZEOF(ssize_t)
Expand Down