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

Linux x86_32 builds fail after JDK-8249821

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b08

      Backports

        Description

        x86_32:

        /home/buildbot/worker/build-jdkX-linux/build/src/java.desktop/share/native/libfontmanager/DrawGlyphList.c: In function 'setupBlitVector':
        /home/buildbot/worker/build-jdkX-linux/build/src/java.desktop/share/native/libfontmanager/DrawGlyphList.c:108:21: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
                     ginfo = (GlyphInfo*)imagePtrs[g];
                             ^
        /home/buildbot/worker/build-jdkX-linux/build/src/java.desktop/share/native/libfontmanager/DrawGlyphList.c:121:21: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
                     ginfo = (GlyphInfo*)imagePtrs[g];
                             ^
        /home/buildbot/worker/build-jdkX-linux/build/src/java.desktop/share/native/libfontmanager/DrawGlyphList.c: In function 'setupLCDBlitVector':
        /home/buildbot/worker/build-jdkX-linux/build/src/java.desktop/share/native/libfontmanager/DrawGlyphList.c:534:17: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
                 ginfo = (GlyphInfo*)imagePtrs[0];
                         ^
        /home/buildbot/worker/build-jdkX-linux/build/src/java.desktop/share/native/libfontmanager/DrawGlyphList.c:569:21: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
                     ginfo = (GlyphInfo*)imagePtrs[g];
                             ^
        /home/buildbot/worker/build-jdkX-linux/build/src/java.desktop/share/native/libfontmanager/DrawGlyphList.c:650:21: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
           ... (rest of output omitted)
        * For target support_native_java.desktop_libfontmanager_X11FontScaler.o:
        /home/buildbot/worker/build-jdkX-linux/build/src/java.desktop/unix/native/libfontmanager/X11FontScaler.c: In function 'Java_sun_font_NativeStrikeDisposer_freeNativeScalerContext':
        /home/buildbot/worker/build-jdkX-linux/build/src/java.desktop/unix/native/libfontmanager/X11FontScaler.c:53:36: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
             NativeScalerContext *context = (NativeScalerContext*)pScalerContext;
                                            ^
        /home/buildbot/worker/build-jdkX-linux/build/src/java.desktop/unix/native/libfontmanager/X11FontScaler.c: In function 'Java_sun_font_NativeFont_countGlyphs':
        /home/buildbot/worker/build-jdkX-linux/build/src/java.desktop/unix/native/libfontmanager/X11FontScaler.c:212:36: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
             NativeScalerContext *context = (NativeScalerContext*)
                                            ^
        /home/buildbot/worker/build-jdkX-linux/build/src/java.desktop/unix/native/libfontmanager/X11FontScaler.c: In function 'Java_sun_font_NativeStrike_getMaxGlyph':
        /home/buildbot/worker/build-jdkX-linux/build/src/java.desktop/unix/native/libfontmanager/X11FontScaler.c:230:36: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
             NativeScalerContext *context = (NativeScalerContext*)pScalerContext;
                                            ^
        /home/buildbot/worker/build-jdkX-linux/build/src/java.desktop/unix/native/libfontmanager/X11FontScaler.c: In function 'Java_sun_font_NativeFont_getGlyphAdvance':
        /home/buildbot/worker/build-jdkX-linux/build/src/java.desktop/unix/native/libfontmanager/X11FontScaler.c:245:36: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
             NativeScalerContext *context = (NativeScalerContext*)pScalerContext;
           ... (rest of output omitted)

        It seems to happen because int-to-pointer-cast warning used to be disabled for this code:
         https://hg.openjdk.java.net/jdk/jdk/rev/cda47533b1ee#l1.107

        ...and it is not disabled anymore:
          https://hg.openjdk.java.net/jdk/jdk/rev/cda47533b1ee#l1.116

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: