[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/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291872

            Bug ID: 291872
           Summary: java/openjdk17: Fails to build on Apple silicon
                    (affects all JDKs)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: [email protected]
          Reporter: [email protected]
             Flags: maintainer-feedback?([email protected])
          Assignee: [email protected]

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.