-
Bug
-
Resolution: Fixed
-
P3
-
jfx24
-
master
-
linux
To reproduce, use gcc 14 to build JavaFX on Linux. It produces the following error:
modules/javafx.graphics/src/main/native-font/freetype.c: In function 'checkSize':
modules/javafx.graphics/src/main/native-font/freetype.c:523:33: error: initialization of 'jbyte *' {aka 'signed char *'} from incompatible pointer type 'jfloat *' {aka 'float *'} [-Wincompatible-pointer-types]
523 | jbyte* newPointCoords = (jfloat*)realloc(info->pointCoords, info->lenCoords * sizeof(jfloat));
| ^
modules/javafx.graphics/src/main/native-font/freetype.c:525:27: error: assignment to 'jfloat *' {aka 'float *'} from incompatible pointer type 'jbyte *' {aka 'signed char *'} [-Wincompatible-pointer-types]
525 | info->pointCoords = newPointCoords;
| ^
> Task :graphics:ccLinuxFontFreetype FAILED
modules/javafx.graphics/src/main/native-font/freetype.c: In function 'checkSize':
modules/javafx.graphics/src/main/native-font/freetype.c:523:33: error: initialization of 'jbyte *' {aka 'signed char *'} from incompatible pointer type 'jfloat *' {aka 'float *'} [-Wincompatible-pointer-types]
523 | jbyte* newPointCoords = (jfloat*)realloc(info->pointCoords, info->lenCoords * sizeof(jfloat));
| ^
modules/javafx.graphics/src/main/native-font/freetype.c:525:27: error: assignment to 'jfloat *' {aka 'float *'} from incompatible pointer type 'jbyte *' {aka 'signed char *'} [-Wincompatible-pointer-types]
525 | info->pointCoords = newPointCoords;
| ^
> Task :graphics:ccLinuxFontFreetype FAILED
- relates to
-
JDK-8354336 gstclock.c: compilation error: 'incompatible pointer type' with gcc 14
-
- Open
-
- links to
-
Commit(master) openjdk/jfx/5a897ab7
-
Review(master) openjdk/jfx24u/21
-
Review(master) openjdk/jfx/1771