Opened 8 hours ago

Last modified 5 hours ago

#70819 assigned defect

openjdk22 @22.0.2_0+release+server Does not build with Xcode 16, Sequoia (15)

Reported by: EvilJordan (Jordan Holberg) Owned by: breun (Nils Breunese)
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: sequoia, xcode Cc:
Port: openjdk22

Description

--->  Cleaning openjdk22
--->  Computing dependencies for openjdk22
--->  Fetching archive for openjdk22
--->  Attempting to fetch openjdk22-22.0.2_0+release+server.darwin_24.arm64.tbz2 from https://packages.macports.org/openjdk22
--->  Attempting to fetch openjdk22-22.0.2_0+release+server.darwin_24.arm64.tbz2 from http://mirror.fcix.net/macports/packages/openjdk22
--->  Attempting to fetch openjdk22-22.0.2_0+release+server.darwin_24.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/openjdk22
--->  Fetching distfiles for openjdk22
--->  Verifying checksums for openjdk22
--->  Extracting openjdk22
--->  Configuring openjdk22
--->  Building openjdk22                                 
Error: Failed to build openjdk22: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_openjdk22/openjdk22/main.log for details.

Later at the end of the install process...

- openjdk22 
       Failed: Unable to execute target 'activate' for port openjdk22 - see its log for details

Attachments (1)

main.log (140.6 KB) - added by EvilJordan (Jordan Holberg) 8 hours ago.

Download all attachments as: .zip

Change History (5)

Changed 8 hours ago by EvilJordan (Jordan Holberg)

Attachment: main.log added

comment:1 Changed 7 hours ago by jmroot (Joshua Root)

Owner: set to breun
Status: newassigned
Summary: Does not build with Xcode 16, Sequoia (15)openjdk22 @22.0.2_0+release+server Does not build with Xcode 16, Sequoia (15)
:info:build Exception in thread "main" java.lang.ClassFormatError: StackMapTable format error: bad verification type
:info:build     at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:64)
:info:build     at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:52)

comment:2 Changed 6 hours ago by breun (Nils Breunese)

According to this upstream OpenJDK bug this is caused by a bug in Xcode 16’s clang++ compiler: https://bugs.openjdk.org/browse/JDK-8340341

Last edited 5 hours ago by breun (Nils Breunese) (previous) (diff)

comment:3 in reply to:  1 Changed 6 hours ago by breun (Nils Breunese)

I just read UsingTheRightCompiler, but the world of C/C++ compilers is relatively foreign to me. Should I use compiler.blacklist to not use Apple’s clang on Xcode 16 somehow?

comment:4 Changed 5 hours ago by breun (Nils Breunese)

According to https://wiki.openjdk.org/display/Build/Supported+Build+Platforms Oracle’s build platform for JDK 22 uses clang 14.3.1 on macOS 13.

Note: See TracTickets for help on using tickets.