fix: some cases where the correct stdint.h header file may not be found#87
Merged
gmarull merged 1 commit intopebble-dev:mainfrom Mar 17, 2025
Merged
fix: some cases where the correct stdint.h header file may not be found#87gmarull merged 1 commit intopebble-dev:mainfrom
gmarull merged 1 commit intopebble-dev:mainfrom
Conversation
Collaborator
|
can you adjust commit like "tools/generate_native_sdk: add missing -ffreestanding", and explain details in the commit message? Thanks! I guess this will allow to compile using e.g. brew arm gcc |
Author
|
Sure, how do you feel now |
In some environments, the parse_file function in the tools/generate_native_sdk/parse_c_decl.py script does not add the -ffreestanding parameter to the gcc call, which causes the __STDC_HOSTED__ macro to be incorrectly set to 1. If we add -ffreestanding, then this compiler predefined macro will be set to 0 Signed-off-by: HaoranJiang <halfsweet@halfsweet.cn>
gmarull
approved these changes
Mar 17, 2025
Collaborator
|
Does this actually fix the build with brew ARM GCC? Last time I started trying to get it to build with that I ran into more problems than just this. |
Hexxeh
approved these changes
Mar 17, 2025
Collaborator
hmm doesn't look like, we miss some libc headers like assert.h, sys/types.h... |
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.
In some environments, the parse_file function in the
tools/generate_native_sdk/parse_c_decl.pyscript does not add the-ffreestandingparameter to the call to gcc, which results in the wrong header file being used by gcc