JDK-8255128 : linux x86 build failure with libJNIPoint.c
  • Type: Enhancement
  • Component: tools
  • Sub-Component: jextract
  • Affected Version: 16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-10-21
  • Updated: 2020-11-10
  • Resolved: 2020-11-04
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 16
16 b23Fixed
Related Reports
Relates :  
Description
Oracle doesn't support 32 bit x86 linux, but we often have to modify platform dependent code as a courtesy to the OpenJDK contributors who do support it.  Being able to test 32 bit x86 in mach5 is really helpful.   There's a new compilation failure (was just trying to fix the other one in JDK-8254270).

[2020-10-21T12:46:24,440Z] test/micro/org/openjdk/bench/jdk/incubator/foreign/points/support/libJNIPoint.c:31:12: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
[2020-10-21T12:46:24,440Z]    31 |     return (jlong) p;
[2020-10-21T12:46:24,440Z]       |            ^

open/test/micro/org/openjdk/bench/jdk/incubator/foreign/points/support/libJNIPoint.c:36:10: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
[2020-10-21T12:46:24,440Z]    36 |     free((Point*) thisPoint);
[2020-10-21T12:46:24,440Z]       |          ^

test/micro/org/openjdk/bench/jdk/incubator/foreign/points/support/libJNIPoint.c:41:20: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
[2020-10-21T12:46:24,440Z]    41 |     Point* point = (Point*) thisPoint;
[2020-10-21T12:46:24,440Z]       |   

(and a bunch more like this).  I hope this is the correct category/subcategory.
Comments
Changeset: 804bd725 Author: Jorn Vernee <jvernee@openjdk.org> Date: 2020-11-04 18:10:49 +0000 URL: https://github.com/openjdk/jdk/commit/804bd725
04-11-2020

I have a fix for these downstream errors once you check yours in.
30-10-2020