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

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 22 Dec 2025 11:30:20 UTC
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: java@FreeBSD.org
          Reporter: grembo@FreeBSD.org
             Flags: maintainer-feedback?(java@FreeBSD.org)
          Assignee: java@FreeBSD.org

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.