-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable -ffreestanding
by default
#5429
Comments
nfeske
added a commit
that referenced
this issue
Jan 21, 2025
Changed by b455139 |
nfeske
added a commit
to nfeske/genode
that referenced
this issue
Jan 21, 2025
nfeske
added a commit
to nfeske/genode
that referenced
this issue
Jan 23, 2025
cnuke
pushed a commit
to cnuke/genode
that referenced
this issue
Jan 23, 2025
cnuke
pushed a commit
to cnuke/genode
that referenced
this issue
Jan 28, 2025
cnuke
pushed a commit
to cnuke/genode
that referenced
this issue
Jan 28, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the context of issue #5428, I encountered the following compile error when including the
arm_neon.h
header:The included
stdint.h
contains the following distinction:__STDC_HOSTED__
is enabled by default. Hence, the code expects the presence ofstdint.h
supplied by a libc.Only if the compiler was invoked with the argument
-ffreestanding
, this assumption does not apply.Consequently, whenever including
arm_neon.h
for a native Genode component not using the libc, we would need to extend the component's target.mk with the following tweak for the corresponding compilation unit (e.g., main.cc):It goes without saying that this approach becomes impractical as soon as we embrace SIMD at more and more places.
Therefore, I propose to enable
-ffreestanding
by default, with the option to discharge the default for a given target.In particular, all components using the libc won't use
-ffreestanding
.The text was updated successfully, but these errors were encountered: