diff --git a/make/autoconf/toolchain.m4 b/make/autoconf/toolchain.m4 index 9013f9cf922..b7a01074686 100644 --- a/make/autoconf/toolchain.m4 +++ b/make/autoconf/toolchain.m4 @@ -291,6 +291,11 @@ AC_DEFUN_ONCE([TOOLCHAIN_PRE_DETECTION], # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '` TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode $TOOLCHAIN_VERSION" + if test "x$TOOLCHAIN_VERSION" = "x16" || test "x$TOOLCHAIN_VERSION" = "x16.1" ; then + AC_MSG_NOTICE([Xcode $TOOLCHAIN_VERSION has a compiler bug that causes the build to fail.]) + AC_MSG_NOTICE([Please use Xcode 16.2 or later, or a version prior to 16.]) + AC_MSG_ERROR([Compiler version is not supported.]) + fi fi fi AC_SUBST(TOOLCHAIN_VERSION)