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

JDK12 fails to build on s390x with gcc 7.3

    Details

    • Resolved In Build:
      b11
    • CPU:
      s390x
    • OS:
      linux

      Backports

        Description

        When compiling with gcc 7.3 on s390x the following error occurs:
        Compiling 5349 files for BUILD_DDR_CLASSES
        ../src/java.base/share/native/libfdlibm/k_rem_pio2.c: In function '__j__kernel_rem_pio2':
        ../src/java.base/share/native/libfdlibm/k_rem_pio2.c:255:27: error: array subscript is below array bounds [-Werror=array-bounds]
                         for(k=1;iq[jk-k]==0;k++); /* k = no. of terms needed */
                                 ~~^~~~~~
        cc1: all warnings being treated as errors
        gmake[3]: *** [/data/jenkins/workspace/openjdk11_openj9_build_s390x_linux/openjdk/build/linux-s390x-normal-server-release/support/native/java.base/libfdlibm/k_rem_pio2.o] Error 1

        Also a similar error in mlib_ImageLookUp_Bit.c due to left shifting a negative value.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  aleonard Andrew Leonard
                  Reporter:
                  aleonard Andrew Leonard
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: