JDK-8284732 : FFI_GO_CLOSURES macro not defined but required for zero build on Mac OS X
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: aarch64
  • Submitted: 2022-04-12
  • Updated: 2022-10-06
  • Resolved: 2022-04-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 19
17.0.6Fixed 19 b18Fixed
Description
Building the zero variant of the JVM causes the compiler to emit warnings as the `FFI_GO_CLOSURES` macro is not defined:
```
In file included from ..../cpu/zero/globalDefinitions_zero.hpp:37:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/ffi/ffi.h:483:20: error: expected value in expression
#if FFI_GO_CLOSURES
```
This only happens for the zero variant, as other variants do not use the ffi header.
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1374 Date: 2022-09-27 14:23:36 +0000
27-09-2022

Fix Request (11u): Fixes the zero build. Applies clean and does not show the FFI_GO_CLOSURES related warnings on Mac OS X (which is the test for this PR).
27-09-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/741 Date: 2022-09-27 14:06:27 +0000
27-09-2022

Fix Request (17u): Fixes the zero build. Applies clean and does not show the FFI_GO_CLOSURES related warnings on Mac OS X (which is the test for this PR).
27-09-2022

Changeset: cafde7fe Author: Johannes Bechberger <johannes.bechberger@sap.com> Committer: David Holmes <dholmes@openjdk.org> Date: 2022-04-12 23:20:12 +0000 URL: https://git.openjdk.java.net/jdk/commit/cafde7fe0025cb648d27c8070689a073e49eabb0
12-04-2022

This is not a build issue but a hotspot issue.
12-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8195 Date: 2022-04-12 07:53:32 +0000
12-04-2022