Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8340341

JDK build fails on macosx when using XCode 16

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • infrastructure
    • None
    • os_x

      The JDK mainline build when using XCode 16 fails with:

      * For target buildtools_create_symbols_javac__the.COMPILE_CREATE_SYMBOLS_batch:
      Exception in thread "main" java.lang.ClassFormatError: StackMapTable format error: bad verification type
              at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:64)
              at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:52)

      XCode 16 is not an officially supported toolchain version in the JDK, but the way the build fails is unexpected.

      This failure is consistently reproducible and so far has been reproduced on macosx aarch64 instances. We haven't yet tested this against a macosx x64 instance. For reference, the clang++ version shipped in this XCode 16 is:

      clang++ --version
      Apple clang version 16.0.0 (clang-1600.0.26.3)
      Target: arm64-apple-darwin23.6.0
      Thread model: posix
      InstalledDir: /xcode-16/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

            jjg Jonathan Gibbons
            jpai Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated: