maintainer-feedback requested: [Bug 291872] java/openjdk17: Fails to build on Apple silicon (affects all JDKs)

[email protected] Mon, 22 Dec 2025 11:30:20 +0000
Newsgroups gmane.os.freebsd.devel.java
Message-ID <[email protected]/bugzilla/>
Bugzilla Automation <[email protected]> has asked freebsd-java (Nobody)
<[email protected]> for maintainer-feedback:
Bug 291872: java/openjdk17: Fails to build on Apple silicon (affects all JDKs)
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291872



--- Description ---
The problem in JDK on aarch64 was generally patched, but the bootstrap JDKs do
not contain these patches, therefore building Java crashes.

See also bug #265284

The workaround is to boot FreeBSD in qemu without Hypervisor support before
building java, but this is very slow and tedious. The built package then run
without issues on aarch64 with Hypervisor though.

Not sure if there a way to get patches into bootstrap JDKs or if there other
workarounds available.