-
Bug
-
Resolution: Fixed
-
P3
-
jfx24
-
b13
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8355402 | jfx24.0.2 | Kevin Rushforth | P3 | Resolved | Fixed | b02 |
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
- backported by
-
JDK-8355402 freetype.c: compilation error: 'incompatible pointer type' with gcc 14
-
- Resolved
-
- blocks
-
JDK-8354875 Update to GCC 14.2.0 on Linux
-
- Resolved
-
- relates to
-
JDK-8354336 gstclock.c: compilation error: 'incompatible pointer type' with gcc 14
-
- Resolved
-
- links to
-
Commit(master) openjdk/jfx24u/54bd8aaf
-
Commit(master) openjdk/jfx/5a897ab7
-
Review(master) openjdk/jfx24u/21
-
Review(master) openjdk/jfx/1771
(2 links to)