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

Foreign benchmarks fail to build on some platforms

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 22
    • 22
    • core-libs

    Description

      Trying to run benchmarks on ARM32 fails during build with:

      ```
      Compiling libToCString.c (for libToCString.so)
      Compiling libToJavaString.c (for libToJavaString.so)
      /home/pi/shipilev-jdk/test/micro/org/openjdk/bench/java/lang/foreign/libToCString.c: In function 'Java_org_openjdk_bench_java_lang_foreign_ToCStringTest_writeString':
      /home/pi/shipilev-jdk/test/micro/org/openjdk/bench/java/lang/foreign/libToCString.c:30:18: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
         30 | jlong addr = (jlong)(void*)str;
            | ^
      cc1: all warnings being treated as errors
      gmake[3]: *** [test/BuildMicrobenchmark.gmk:156: /home/pi/shipilev-jdk/build/linux-arm-server-fastdebug/support/test/micro/native/support/libToCString/libToCString.o] Error 1
      gmake[2]: *** [make/Main.gmk:781: build-microbenchmark] Error 2
      gmake[2]: *** Waiting for unfinished jobs....

      ```

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: