-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[Android] fseeko and ftello not supported on arm32 & x86 below API level 24 without disabling _FILE_OFFSET_BITS=64 #111665
Comments
Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger |
Tagging subscribers to this area: @hoyosjs |
Where are these functions used? I can't seem to find any in the runtime. |
It starts here
I haven't looked deeply into if we'll be able to sidestep it somehow. |
you mean just including fstream causes these functions to be used somehow? |
Yeah, apparently. But we can't get rid of it because fstream types are used later on in the host PAL. Here's an example of the build error you'll get:
|
These failures cause a lot of complications in our infrastructure today (see all checks around We can likely skip defining |
We might be able to rewrite the host pal to not use fstream - the pal is pretty simple, so if we can find other ways to do it... the only limitation is that we don't want to make the host larger, so ideally use something which already exists in it. |
This change adds build support for the arm64 and x64 CoreCLR runtimes for Android. Initial infrastructure to run a simple sample was also added (src/mono/sample/Android) and we plan to do more in a follow up. The arm32 and x86 builds are blocked by #111665 since our min API level target is 21. Both will be fixed at a later time. Contributes to #111491 --------- Co-authored-by: Steve Pfister <[email protected]> Co-authored-by: Jan Vorlicek <[email protected]> Co-authored-by: Ivan Povazan <[email protected]> Co-authored-by: Milos Kotlar <[email protected]>
That seems pretty doable: main...filipnavara:runtime:host-remove-fstream I didn't update the test code but that only reads whole file into memory, essentially the same thing as done in |
From https://android.googlesource.com/platform/bionic/+/master/docs/32-bit-abi.md
An easy solution would be to bump the min API level to 24, but that is not solely a technical decision.
The text was updated successfully, but these errors were encountered: