From 5520ff12ec26dc2b490fb702101c3679a2af9a2d Mon Sep 17 00:00:00 2001 From: Magnus Ihse Bursie Date: Fri, 4 Apr 2025 13:44:16 +0000 Subject: [PATCH] 8340341: Abort in configure when using Xcode 16.0 or 16.1 Reviewed-by: jwaters, erikj --- make/autoconf/toolchain.m4 | 5 +++++ 1 file changed, 5 insertions(+) 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)