Fix build and boot with modern GCC#51
Open
tuckerwales wants to merge 7 commits intoiDroid-Project:masterfrom
Open
Fix build and boot with modern GCC#51tuckerwales wants to merge 7 commits intoiDroid-Project:masterfrom
tuckerwales wants to merge 7 commits intoiDroid-Project:masterfrom
Conversation
- Port SCons scripts from Python 2 to Python 3 - Switch cross-compiler prefix arm-elf- to arm-none-eabi- - Add -std=gnu11 (GCC 15 defaults to C23, breaking old C idioms) - Add -fcommon (GCC 10+ default fno-common breaks globals-in-headers) - Add per-platform -mcpu flags (assembler needs explicit ARM arch) - Remove --nostdlib and -Werror from build flags - Fix auto_store inline declaration in util.h - Use pre-built mk8900image binary on Darwin arm64 (Rosetta)
Member
|
Wow, I can't say I was expecting to ever see this build on a modern system! It'll take me some time to consume this properly, and I am already pondering how I test it - I don't have any of the appropriate devices anymore - maybe one of the other guys who originally worked on it will have a device stashed somewhere that can build and test properly. |
Author
|
I've only managed to test it on an iPhone 3G as I don't have the other devices either, but all works fine there! |
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.
Summary
openiBoot failed to build and boot when compiled with modern arm-none-eabi-gcc (GCC 15) on Apple Silicon. This PR:
LinkedList, TaskRegisterState, and TaskDescriptor (layout verified identical via _Static_assert).
Changes by area
Build system
Core fixes
Driver fixes
Menu
Documentation
Test plan