Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8236920

32-bit build failures in libNativeAccess.c

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 14, 15
    • core-libs


      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);

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: