JDK-8236920 : 32-bit build failures in libNativeAccess.c
  • Type: Bug
  • Component: core-libs
  • Affected Version: 14,15
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2020-01-10
  • Updated: 2020-01-13
  • Resolved: 2020-01-13
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Default build fails on x86_32 and arm32:

* For target support_test_jdk_jtreg_native_support_libNativeAccess_libNativeAccess.o:
/home/buildbot/worker/jdk14-linux/build/test/jdk/java/foreign/libNativeAccess.c: In function 'Java_TestNative_getByteRaw':
/home/buildbot/worker/jdk14-linux/build/test/jdk/java/foreign/libNativeAccess.c:30:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
     jbyte *arr = (jbyte*)addr;
                  ^
/home/buildbot/worker/jdk14-linux/build/test/jdk/java/foreign/libNativeAccess.c: In function 'Java_TestNative_getByteBuffer':
/home/buildbot/worker/jdk14-linux/build/test/jdk/java/foreign/libNativeAccess.c:36:18: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
     jlong addr = (jlong)(*env)->GetDirectBufferAddress(env, buf);
Comments
Indeed it does. My mailer confused me by sorting that RFR to panama-dev, no core-libs-dev. I'll leave this thing open until the original issue is resolved.
12-01-2020

Probably a dup of JDK-8236634, already under review here: https://mail.openjdk.java.net/pipermail/core-libs-dev/2020-January/064218.html
12-01-2020

RFR: https://mail.openjdk.java.net/pipermail/core-libs-dev/2020-January/064304.html
12-01-2020

Suggested fix: http://cr.openjdk.java.net/~shade/8236920/webrev.01/
10-01-2020