Skip to content

Conversation

@mattbrocklehurst
Copy link

Modern compilers (GCC 14+) promote several C warnings to errors by default, specifically -Wimplicit-function-declaration and -Wincompatible-pointer-types. This prevents IcedTea 2.1.3 from building on modern host distributions.

Backport fixes to add missing includes and explicit casts in Hotspot and JDK native code.

Modern compilers (GCC 14+) promote several C warnings to errors by
default, specifically -Wimplicit-function-declaration and
-Wincompatible-pointer-types. This prevents IcedTea 2.1.3 from
building on modern host distributions.

Backport fixes to add missing includes and explicit casts in
Hotspot and JDK native code.

Signed-off-by: Matt Brocklehurst <matt@mattbrocklehurst.co.uk>
@mattbrocklehurst
Copy link
Author

mattbrocklehurst commented Jan 11, 2026

I've been testing these GCC 14 fixes for IcedTea7 locally and they work great for the bootstrap phase.

However, for those building the full OpenJDK 8 target, you will likely encounter additional regressions in the AWT and JPEG subsystems due to stricter pointer casting in GCC 14. I've consolidated those Phase 2 fixes and the necessary .bbappends into a compatibility layer here for anyone who needs to get the full build working immediately: https://github.com/mattbrocklehurst/meta-matt/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant