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

Cross-compilation to different endianness fails after JDK-8318913

XMLWordPrintable

    • b14

      After JDK-8318913, trying to cross-compile to a different endian target than the build host is using, will cause the interim image generation to fail:

      [buildjdk] Creating interim jimage
      Error: specified --endian LITTLE_ENDIAN does not match endianness of target platform linux-s390
      java.io.IOException: specified --endian LITTLE_ENDIAN does not match endianness of target platform linux-s390
              at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImageProvider(JlinkTask.java:574)
              at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.createImage(JlinkTask.java:410)
              at jdk.jlink/jdk.tools.jlink.internal.JlinkTask.run(JlinkTask.java:285)
              at jdk.jlink/jdk.tools.jlink.internal.Main.run(Main.java:56)
              at jdk.jlink/jdk.tools.jlink.internal.Main.main(Main.java:34)
      InterimImage.gmk:47: recipe for target '/localhome/git/jdk-BAR/build/linux-s390x/support/interim-image/bin/java' failed

      This has only been spotted when cross-compiling from x64 to s390x, but it seems to be a general endianness problem.

            ihse Magnus Ihse Bursie
            ihse Magnus Ihse Bursie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: