Skip to content

Engine build failure targeting armv6 #55439

Closed
@jwinarske

Description

@jwinarske

Has armv6 been deprecated? The target is Raspberry Pi 0-W ($10) w/LCD hat.

In file included from ../../third_party/dart/runtime/vm/thread_interrupter_linux.cc:12:
In file included from ../../third_party/dart/runtime/vm/profiler.h:19:
In file included from ../../third_party/dart/runtime/vm/thread_interrupter.h:10:
../../third_party/dart/runtime/vm/signal_handler.h:99:18: error: inline asm clobber list contains reserved registers: R11, SP [-Werror,-Winline-asm]
    asm volatile("nop; nop; nop; nop;"
                 ^
<inline asm>:1:1: note: instantiated into assembly here
        nop; nop; nop; nop;
^
../../third_party/dart/runtime/vm/signal_handler.h:99:18: note: Reserved registers on the clobber list may not be preserved across the asm statement, and clobbering them may lead to undefined behaviour.
    asm volatile("nop; nop; nop; nop;"
                 ^
<inline asm>:1:1: note: instantiated into assembly here
        nop; nop; nop; nop;
^
1 error generated.

Steps to Reproduce

Clang8 Toolchain with default triple of arm-linux-gnueabi

./flutter/tools/gn --runtime-mode debug --embedder-for-target --full-dart-sdk --enable-fontconfig --target-os linux --linux-cpu arm --arm-float-abi hard --target-triple arm-linux-gnueabihf --target-sysroot /media/joel/SolidState/rpi/rpi0w/tmp/work/arm1176jzfshf-vfp-poky-linux-gnueabi/flutter-engine/git-r0/recipe-sysroot --target-toolchain /media/joel/SolidState/LLVM8.0

Post Config:

append to args file

arm_float_abi = "hard"
arm_tune = "arm1176jzf-s"

Then

diff --git a/build/config/arm.gni b/build/config/arm.gni
index 7a293e6..1ce6f39 100644
--- a/build/config/arm.gni
+++ b/build/config/arm.gni
@@ -7,7 +7,7 @@ if (current_cpu == "arm" || current_cpu == "arm64") {
     # Version of the ARM processor when compiling on ARM. Ignored on non-ARM
     # platforms.
     if (current_cpu == "arm") {
-      arm_version = 7
+      arm_version = 6
     } else if(current_cpu == "arm64") {
       arm_version = 8
     } else {
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 294843d..8310bab 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -635,14 +635,14 @@ if (is_win) {
 
   if (!use_xcode) {
     default_warning_flags += [
-      "-Wno-implicit-int-float-conversion",
-      "-Wno-c99-designator",
+#      "-Wno-implicit-int-float-conversion",
+#      "-Wno-c99-designator",
     ]
     if (!is_fuchsia) {
       default_warning_flags += [
-        "-Wno-non-c-typedef-for-linkage",
-        "-Wno-deprecated-copy",
-        "-Wno-range-loop-construct",
+#        "-Wno-non-c-typedef-for-linkage",
+#        "-Wno-deprecated-copy",
+#        "-Wno-range-loop-construct",
       ]
     }
   }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions