[jdk17u-dev] RFR: 8324243: Compilation failures in java.desktop module with gcc 14

Martin Doerr mdoerr at openjdk.org
Wed May 15 13:13:11 UTC 2024


On Tue, 14 May 2024 05:15:33 GMT, Jan Kratochvil <jkratochvil at openjdk.org> wrote:

> It is needed to build OpenJDK-17 on Fedora 40 x86_64 (gcc-14.1.1-1.fc40.x86_64).
> It needs all of [JDK-8328997](https://bugs.openjdk.org/browse/JDK-8328997) ([backport](https://github.com/openjdk/jdk17u-dev/pull/2466)), [JDK-8331352](https://bugs.openjdk.org/browse/JDK-8331352) ([backport](https://github.com/openjdk/jdk17u-dev/pull/2467)) and [JDK-8324243](https://bugs.openjdk.org/browse/JDK-8324243) (this [backport](https://github.com/openjdk/jdk17u-dev/pull/2468)).
> Git cherry-pick was not clean but it was easy to apply.

make/modules/java.desktop/lib/Awt2dLibraries.gmk line 473:

> 471:    HARFBUZZ_DISABLED_WARNINGS_CXX_gcc := reorder delete-non-virtual-dtor strict-overflow \
> 472:         maybe-uninitialized class-memaccess unused-result extra use-after-free noexcept-type \
> 473:         expansion-to-defined dangling-reference calloc-transposed-args

Can you include https://github.com/openjdk/jdk/commit/ec79ab4b3cd89c2c0a9c8550cd62433bd6d45266, please, such that the code looks like the upstream version?
And consider using "/issue add JDK-8319268". GCC8 should still be supported.

-------------

PR Review Comment: https://git.openjdk.org/jdk17u-dev/pull/2468#discussion_r1601617775


More information about the jdk-updates-dev mailing list