-
Bug
-
Resolution: Fixed
-
P2
-
16
-
b08
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8277563 | 15.0.6 | Dmitry Cherepanov | P2 | Resolved | Fixed | b03 |
JDK-8278546 | 13.0.10 | Olga Mikhaltcova | P2 | Resolved | Fixed | b04 |
JDK-8253703 | 11.0.10 | Aleksey Shipilev | P2 | Resolved | Fixed | b01 |
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
/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
- backported by
-
JDK-8253703 Linux x86_32 builds fail after JDK-8249821
- Resolved
-
JDK-8277563 Linux x86_32 builds fail after JDK-8249821
- Resolved
-
JDK-8278546 Linux x86_32 builds fail after JDK-8249821
- Resolved
- relates to
-
JDK-8249821 Separate libharfbuzz from libfontmanager
- Resolved
- links to
-
Commit openjdk/jdk13u-dev/2149624e
-
Commit openjdk/jdk15u-dev/e6d8cfc8
-
Review openjdk/jdk13u-dev/302
-
Review openjdk/jdk15u-dev/139
(3 links to)