Obscure build failure
Jaikiran Pai
jai.forums2013 at gmail.com
Wed Oct 16 01:47:00 UTC 2024
Hello Jon,
This issue is discussed at https://bugs.openjdk.org/browse/JDK-8340341.
It's a bug in the clang++ compiler shipped with Xcode 16.
-Jaikiran
On 16/10/24 6:33 am, Jonathan Gibbons wrote:
> I am trying to build a fresh new unmodified copy of OpenJDK, and have
> run into the following obscure error. I’m using JDK 23.0.1 as the
> boot JDK.
> The significant line is:
> Exception in thread "main" java.lang.ClassFormatError:
> StackMapTable format error: bad verification type
>
> This is on a Mac, with latest Sonoma OS, and latest Xcode, although
> the failure is more in the Java/JDK parts of the system. Could it be
> related to the new classfile library?
>
> — Jon
>
> Creating support/modules_cmds/jdk.jdeps/jdeprscan from 1 file(s)
> Creating support/modules_cmds/jdk.jdi/jdb from 1 file(s)
> Creating support/modules_cmds/jdk.jfr/jfr from 1 file(s)
> Creating support/modules_cmds/jdk.jlink/jimage from 1 file(s)
> Creating
> jdk/modules/jdk.jpackage/jdk/jpackage/internal/resources/jpackageapplauncher
> from 16 file(s)
> Creating support/modules_cmds/jdk.jlink/jlink from 1 file(s)
> Creating support/modules_cmds/jdk.jlink/jmod from 1 file(s)
> Creating support/modules_cmds/jdk.jpackage/jpackage from 1 file(s)
> Creating support/modules_cmds/jdk.jshell/jshell from 1 file(s)
> Creating support/modules_libs/jdk.net/libextnet.dylib
> <http://jdk.net/libextnet.dylib> from 1 file(s)
> Creating support/modules_cmds/jdk.jstatd/jstatd from 1 file(s)
> Creating support/modules_libs/jdk.security.auth/libjaas.dylib from 1
> file(s)
> Compiling up to 4 files for COMPILE_CREATE_SYMBOLS
> Compiling up to 70 files for COMPILE_CREATE_SYMBOLS
> 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)
> make[3]: ***
> [/Users/jsqrdg/OpenJDK/jdk/jdk.ref/build/macosx-aarch64-server-release/buildtools/create_symbols_javac/_the.COMPILE_CREATE_SYMBOLS_batch]
> Error 1
> make[2]: *** [jdk.compiler-gendata] Error 2
> make[2]: *** Waiting for unfinished jobs....
>
> ERROR: Build failed for target 'jdk-image' in configuration
> 'macosx-aarch64-server-release' (exit code 2)
> Stopping javac server
>
> === Output from failing command(s) repeated here ===
> * 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)
>
> * All command lines available in
> /Users/jsqrdg/OpenJDK/jdk/jdk.ref/build/macosx-aarch64-server-release/make-support/failure-logs.
> === End of repeated output ===
>
> No indication of failed target found.
> HELP: Try searching the build log for '] Error'.
> HELP: Run 'make doctor' to diagnose build problems.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20241016/a43d7c8a/attachment.htm>
More information about the compiler-dev
mailing list