Closed ardera closed 3 years ago
/cc @mraleph can the work around introduced in https://github.com/dart-lang/sdk/commit/b089d4f0040c be removed.
@a-siva https://flutter.dev/docs/development/tools/sdk/release-notes/supported-platforms says Flutter supports API level >=19 which corresponds to Kit Kat or later Android versions which in turn corresponds to Kernel version 3.10. This probably means we have to keep this code around (even though it is unlikely that anybody is actually developing on a Kit Kat device). 3.18 kernel arrived in Marshmallow (API level 23).
I have made a CL that should fix the compilation error: https://dart-review.googlesource.com/c/sdk/+/209917
6d96e6063ed
(the most recently rolled dart version forflutter master
)I'm currently cross-compiling the flutter engine for arm (armv7a-linux-gnueabihf), and that worked more or less fine for the last 2 years, but now suddenly compiling the engine throws an error in a file of the dart SDK (actually a warning, but it's an error because of
-Werror
):The part of the file with the
asm volatile("nop; nop; nop; nop;")
didn't change for the last few years, and-Winline-asm
also exists since 2018 or so. Maybe the upgrade to clang 13 changed something andSP
is now a reserved register?Anyway, it's only a workaround for linux kernels < 3.18, so maybe it can be removed now that that kernel version is no longer supported by any maintained android version or linux distro?