Open Geker opened 2 months ago
it's a clang bug,which was report on openjdk bugs https://bugs.openjdk.org/browse/JDK-8340341
I did the update to macos 14.7 + xcode 16 too yesterday.
Here is the patch that worked yesterday (derived from jbs file):
git diff make/autoconf/flags-cflags.m4
diff --git a/make/autoconf/flags-cflags.m4 b/make/autoconf/flags-cflags.m4
index 992a0282c04..cefadaee012 100644
--- a/make/autoconf/flags-cflags.m4
+++ b/make/autoconf/flags-cflags.m4
@@ -337,9 +337,9 @@ AC_DEFUN([FLAGS_SETUP_OPTIMIZATION],
C_O_FLAG_HIGHEST="-O3 -finline-functions"
C_O_FLAG_HI="-O3 -finline-functions"
else
- C_O_FLAG_HIGHEST_JVM="-O3"
- C_O_FLAG_HIGHEST="-O3"
- C_O_FLAG_HI="-O3"
+ C_O_FLAG_HIGHEST_JVM="-O1"
+ C_O_FLAG_HIGHEST="-O1"
+ C_O_FLAG_HI="-O1"
fi
C_O_FLAG_NORM="-O2"
C_O_FLAG_DEBUG_JVM="-O0"
The error information is as follows
os: macos 14.7 xcode version: 16