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

linux x86 build failure with libJNIPoint.c

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b23

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jvernee Jorn Vernee
                Reporter:
                coleenp Coleen Phillimore
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: