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

32-bit build failures in libNativeAccess.c

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 14, 15
    • Fix Version/s: None
    • Component/s: core-libs

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: