-
Type:
Bug
-
Status: Resolved
-
Priority:
P2
-
Resolution: Fixed
-
Affects Version/s: 16
-
Fix Version/s: 16
-
Component/s: client-libs
-
Labels:
-
Subcomponent:
-
Resolved In Build:b08
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
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
-
- relates to
-
JDK-8249821 Separate libharfbuzz from libfontmanager
-
- Resolved
-