icedtea7-native: fix build regressions with GCC 14#63
Open
mattbrocklehurst wants to merge 1 commit intometa-java:scarthgapfrom
Open
icedtea7-native: fix build regressions with GCC 14#63mattbrocklehurst wants to merge 1 commit intometa-java:scarthgapfrom
mattbrocklehurst wants to merge 1 commit intometa-java:scarthgapfrom
Conversation
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 <[email protected]>
Author
|
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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.