jwinarske / meta-flutter

Yocto meta layer for recipes related to using Google Flutter Engine
MIT License
45 stars 21 forks source link

example of running flutter application wayland #26

Closed embetrix closed 3 years ago

embetrix commented 3 years ago

I have built an image with the following setup added to my local.conf

DISTRO_FEATURES_append = " opengl wayland"
IMAGE_INSTALL_append = " flutter-gallery flutter-wayland-client flutter-wayland"

How do I run the flutter-gallery App ? I couldn't find a lead

the follwoing isn't working:

# flutter_wayland /usr/share/flutter-gallery/sony/data/flutter_assets/
LOG: /usr/src/debug/flutter-wayland/git-r0/git/src/main.cc:65: Arg: /usr/share/flutter-gallery/sony/data/flutter_assets/
terminate called after throwing an instance of 'std::runtime_error'
Bus error
jwinarske commented 3 years ago

flutter_wayland was my initial wayland POC, and I haven't looked at it in quite some time. I'll make some updates and add example steps in the readme.

embetrix commented 3 years ago

@jwinarske

I did look at the readme but it's not helpful:

# flutter_wayland 
   <Invalid Arguments>   
Flutter Wayland Embedder

========================
Usage: `flutter_wayland <asset_path> <flutter_flags>`

This utility runs an instance of a Flutter application and renders using
Wayland core protocols.

The Flutter tools can be obtained at https://flutter.io/

app_path:      This either points to asset bundle path, or
               an Ahead Of Time (AOT) shared library (.so).

asset_path:    The Flutter application code needs to be snapshotted using
               the Flutter tools and the assets packaged in the appropriate
               location. This can be done for any Flutter application by
               running `flutter build bundle` while in the directory of a
               valid Flutter project. This should package all the code and
               assets in the "build/flutter_assets" directory. Specify this
               directory as the first argument to this utility.

flutter_flags: Typically empty. These extra flags are passed directly to the
               Flutter engine. To see all supported flags, run
               `flutter_tester --help` using the test binary included in the
               Flutter tools.

and as readme suggest it does not work the follwing way:

# flutter_wayland /usr/share/flutter-gallery/sony/data/flutter_assets/
LOG: /usr/src/debug/flutter-wayland/git-r0/git/src/main.cc:65: Arg: /usr/share/flutter-gallery/sony/data/flutter_assets/
terminate called after throwing an instance of 'std::runtime_error'
Bus error

so my question is how to bringup flutter using this layer at all ?!

I must no use wayland.

You wrote in previous issue that flutter-drm-eglstream-backend is working only for NVIDIA ( doesn't build anyway).

I spent quite some times trying to figure out how it work but it's really very confusing.

Thanks anyway

jwinarske commented 3 years ago

Eglstream is for NVIDIA, drm-gbm is for Mesa. If you are not building an NVIDIA target image, you can't use it. You then use flutter-drm-gbm-backend. Standard embedded Linux graphics stuff.

Yes without prior experience embedded Flutter has a steep learning curve, and can/will be frustrating. I know as I learned it from scratch without any help.

jwinarske commented 3 years ago

Another bit of advice which will decrease frustration is to "bringup" the selected embedder on Linux desktop using an IDE such as CLion. This make understanding and resolving issues much faster. Once that all works, then move to the target. After that the only remaining items may be around install path and image symlink issues.

jwinarske commented 3 years ago

My flutter_wayland repo has been updated. I am able to run the Gallery app on Fedora 24 with FLUTTER_CHANNEL="dev". I also updated the flutter-wayland recipe to this commit.

Keep in mind when switching channels or handling channel rolls (weekly) you need to clear things via:

bitbake flutter-engine -c do_clean
bitbake flutter-sdk-native -c do_clean
bitbake flutter-gallery -c do_clean
bitbake flutter-gallery
bitbake flutter-drm-gbm-backend

Unless you're running pipeline builds that don't persist state.

embetrix commented 3 years ago

@jwinarske : ticket was closed too early :-)

bitbake flutter-drm-gbm-backend is not building at all with FLUTTER_CHANNEL="master"

| [7/39] /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-clang++  -DDISPLAY_BACKEND_TYPE_DRM_GBM -DRAPIDJSON_HAS_CXX11_NOEXCEPT -DRAPIDJSON_HAS_CXX11_RANGE_FOR -DRAPIDJSON_HAS_CXX11_RVALUE_REFS -DRAPIDJSON_HAS_CXX11_TYPETRAITS -DRAPIDJSON_HAS_STDSTRING -D__GBM__ -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/third_party -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/libdrm -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include/flutter -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/public/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/examples/flutter-drm-gbm-backend -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot=                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native=   -fvisibility-inlines-hidden -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot -g   -DLINUX -DWL_EGL_PLATFORM -pthread -std=gnu++17 -MD -MT CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/common/engine_switches.cc.o -MF CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/common/engine_switches.cc.o.d -o CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/common/engine_switches.cc.o -c /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/engine_switches.cc
| [8/39] /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-clang++  -DDISPLAY_BACKEND_TYPE_DRM_GBM -DRAPIDJSON_HAS_CXX11_NOEXCEPT -DRAPIDJSON_HAS_CXX11_RANGE_FOR -DRAPIDJSON_HAS_CXX11_RVALUE_REFS -DRAPIDJSON_HAS_CXX11_TYPETRAITS -DRAPIDJSON_HAS_STDSTRING -D__GBM__ -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/third_party -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/libdrm -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include/flutter -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/public/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/examples/flutter-drm-gbm-backend -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot=                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native=   -fvisibility-inlines-hidden -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot -g   -DLINUX -DWL_EGL_PLATFORM -pthread -std=gnu++17 -MD -MT CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc.o -MF CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc.o.d -o CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc.o -c /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc
| FAILED: CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc.o
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-clang++  -DDISPLAY_BACKEND_TYPE_DRM_GBM -DRAPIDJSON_HAS_CXX11_NOEXCEPT -DRAPIDJSON_HAS_CXX11_RANGE_FOR -DRAPIDJSON_HAS_CXX11_RVALUE_REFS -DRAPIDJSON_HAS_CXX11_TYPETRAITS -DRAPIDJSON_HAS_STDSTRING -D__GBM__ -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/third_party -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/libdrm -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include/flutter -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/public/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/examples/flutter-drm-gbm-backend -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot=                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native=   -fvisibility-inlines-hidden -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot -g   -DLINUX -DWL_EGL_PLATFORM -pthread -std=gnu++17 -MD -MT CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc.o -MF CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc.o.d -o CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc.o -c /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc:65:32: error: static_cast from 'EGLNativeWindowType' (aka 'wl_egl_window *') to 'gbm_surface *', which are not related by inheritance, is not allowed
|     gbm_surface_release_buffer(static_cast<gbm_surface*>(window_),
|                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/gbm.h:47:8: note: 'gbm_surface' is incomplete
| struct gbm_surface;
|        ^
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:96:16: note: 'wl_egl_window' is incomplete
| typedef struct wl_egl_window  *EGLNativeWindowType;
|                ^
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc:67:25: error: static_cast from 'EGLNativeWindowType' (aka 'wl_egl_window *') to 'gbm_surface *', which are not related by inheritance, is not allowed
|     gbm_surface_destroy(static_cast<gbm_surface*>(window_));
|                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/gbm.h:47:8: note: 'gbm_surface' is incomplete
| struct gbm_surface;
|        ^
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:96:16: note: 'wl_egl_window' is incomplete
| typedef struct wl_egl_window  *EGLNativeWindowType;
|                ^
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc:70:25: error: static_cast from 'EGLNativeWindowType' (aka 'wl_egl_window *') to 'gbm_surface *', which are not related by inheritance, is not allowed
|     gbm_surface_destroy(static_cast<gbm_surface*>(window_offscreen_));
|                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/gbm.h:47:8: note: 'gbm_surface' is incomplete
| struct gbm_surface;
|        ^
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:96:16: note: 'wl_egl_window' is incomplete
| typedef struct wl_egl_window  *EGLNativeWindowType;
|                ^
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc:153:30: error: static_cast from 'EGLNativeWindowType' (aka 'wl_egl_window *') to 'gbm_surface *', which are not related by inheritance, is not allowed
|   gbm_surface_release_buffer(static_cast<gbm_surface*>(window_),
|                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/gbm.h:47:8: note: 'gbm_surface' is incomplete
| struct gbm_surface;
|        ^
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:96:16: note: 'wl_egl_window' is incomplete
| typedef struct wl_egl_window  *EGLNativeWindowType;
|                ^
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc:157:23: error: static_cast from 'EGLNativeWindowType' (aka 'wl_egl_window *') to 'gbm_surface *', which are not related by inheritance, is not allowed
|   gbm_surface_destroy(static_cast<gbm_surface*>(window_));
|                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/gbm.h:47:8: note: 'gbm_surface' is incomplete
| struct gbm_surface;
|        ^
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:96:16: note: 'wl_egl_window' is incomplete
| typedef struct wl_egl_window  *EGLNativeWindowType;
|                ^
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc:165:44: error: static_cast from 'EGLNativeWindowType' (aka 'wl_egl_window *') to 'gbm_surface *', which are not related by inheritance, is not allowed
|   auto* bo = gbm_surface_lock_front_buffer(static_cast<gbm_surface*>(window_));
|                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/gbm.h:47:8: note: 'gbm_surface' is incomplete
| struct gbm_surface;
|        ^
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:96:16: note: 'wl_egl_window' is incomplete
| typedef struct wl_egl_window  *EGLNativeWindowType;
|                ^
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc:184:32: error: static_cast from 'EGLNativeWindowType' (aka 'wl_egl_window *') to 'gbm_surface *', which are not related by inheritance, is not allowed
|     gbm_surface_release_buffer(static_cast<gbm_surface*>(window_),
|                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/gbm.h:47:8: note: 'gbm_surface' is incomplete
| struct gbm_surface;
|        ^
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:96:16: note: 'wl_egl_window' is incomplete
| typedef struct wl_egl_window  *EGLNativeWindowType;
|                ^
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc:192:13: error: assigning to 'EGLNativeWindowType' (aka 'wl_egl_window *') from incompatible type 'struct gbm_surface *'
|   window_ = gbm_surface_create(gbm_device_, drm_mode_info_.hdisplay,
|             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc:201:23: error: assigning to 'EGLNativeWindowType' (aka 'wl_egl_window *') from incompatible type 'struct gbm_surface *'
|   window_offscreen_ = gbm_surface_create(gbm_device_, 1, 1, GBM_FORMAT_ARGB8888,
|                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| In file included from /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc:5:
| In file included from /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.h:14:
| In file included from /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/window/native_window_drm.h:12:
| In file included from /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/surface/linuxes_surface_gl.h:8:
| In file included from /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/lib//aarch64-poky-linux/9.3.0/../../../include/c++/9.3.0/memory:80:
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/lib//aarch64-poky-linux/9.3.0/../../../include/c++/9.3.0/bits/unique_ptr.h:857:34: error: no matching constructor for initialization of 'flutter::EnvironmentEgl'
|     { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
|                                  ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/window/native_window_drm_gbm.cc:132:12: note: in instantiation of function template specialization 'std::make_unique<flutter::EnvironmentEgl, gbm_device *&>' requested here
|       std::make_unique<EnvironmentEgl>(gbm_device_)));
|            ^
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/surface/environment_egl.h:15:7: note: candidate constructor (the implicit copy constructor) not viable: cannot convert argument of incomplete type 'gbm_device *' to 'const flutter::EnvironmentEgl' for 1st argument
| class EnvironmentEgl {
|       ^
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/surface/environment_egl.h:17:3: note: candidate constructor not viable: cannot convert argument of incomplete type 'gbm_device *' to 'EGLNativeDisplayType' (aka 'wl_display *') for 1st argument
|   EnvironmentEgl(EGLNativeDisplayType platform_display)
|   ^
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/surface/environment_egl.h:29:3: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
|   EnvironmentEgl() : display_(EGL_NO_DISPLAY), valid_(false) {}
|   ^
| 10 errors generated.
| [9/39] /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-clang++  -DDISPLAY_BACKEND_TYPE_DRM_GBM -DRAPIDJSON_HAS_CXX11_NOEXCEPT -DRAPIDJSON_HAS_CXX11_RANGE_FOR -DRAPIDJSON_HAS_CXX11_RVALUE_REFS -DRAPIDJSON_HAS_CXX11_TYPETRAITS -DRAPIDJSON_HAS_STDSTRING -D__GBM__ -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/third_party -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/libdrm -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include/flutter -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/public/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/examples/flutter-drm-gbm-backend -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot=                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native=   -fvisibility-inlines-hidden -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot -g   -DLINUX -DWL_EGL_PLATFORM -pthread -std=gnu++17 -MD -MT CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/surface/linuxes_surface.cc.o -MF CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/surface/linuxes_surface.cc.o.d -o CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/surface/linuxes_surface.cc.o -c /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/surface/linuxes_surface.cc
| [10/39] /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-clang++  -DDISPLAY_BACKEND_TYPE_DRM_GBM -DRAPIDJSON_HAS_CXX11_NOEXCEPT -DRAPIDJSON_HAS_CXX11_RANGE_FOR -DRAPIDJSON_HAS_CXX11_RVALUE_REFS -DRAPIDJSON_HAS_CXX11_TYPETRAITS -DRAPIDJSON_HAS_STDSTRING -D__GBM__ -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/third_party -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/libdrm -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include/flutter -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/public/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/examples/flutter-drm-gbm-backend -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot=                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native=   -fvisibility-inlines-hidden -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot -g   -DLINUX -DWL_EGL_PLATFORM -pthread -std=gnu++17 -MD -MT CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/surface/egl_utils.cc.o -MF CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/surface/egl_utils.cc.o.d -o CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/surface/egl_utils.cc.o -c /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/surface/egl_utils.cc
| [11/39] /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-clang++  -DDISPLAY_BACKEND_TYPE_DRM_GBM -DRAPIDJSON_HAS_CXX11_NOEXCEPT -DRAPIDJSON_HAS_CXX11_RANGE_FOR -DRAPIDJSON_HAS_CXX11_RVALUE_REFS -DRAPIDJSON_HAS_CXX11_TYPETRAITS -DRAPIDJSON_HAS_STDSTRING -D__GBM__ -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/third_party -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/libdrm -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include/flutter -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/public/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/examples/flutter-drm-gbm-backend -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot=                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native=   -fvisibility-inlines-hidden -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot -g   -DLINUX -DWL_EGL_PLATFORM -pthread -std=gnu++17 -MD -MT CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/surface/linuxes_surface_gl.cc.o -MF CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/surface/linuxes_surface_gl.cc.o.d -o CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/surface/linuxes_surface_gl.cc.o -c /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/surface/linuxes_surface_gl.cc
| [12/39] /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-clang++  -DDISPLAY_BACKEND_TYPE_DRM_GBM -DRAPIDJSON_HAS_CXX11_NOEXCEPT -DRAPIDJSON_HAS_CXX11_RANGE_FOR -DRAPIDJSON_HAS_CXX11_RVALUE_REFS -DRAPIDJSON_HAS_CXX11_TYPETRAITS -DRAPIDJSON_HAS_STDSTRING -D__GBM__ -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/third_party -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/libdrm -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include/flutter -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/public/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/examples/flutter-drm-gbm-backend -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot=                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native=   -fvisibility-inlines-hidden -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot -g   -DLINUX -DWL_EGL_PLATFORM -pthread -std=gnu++17 -MD -MT CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/system_utils.cc.o -MF CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/system_utils.cc.o.d -o CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/system_utils.cc.o -c /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/system_utils.cc
| [13/39] /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-clang++  -DDISPLAY_BACKEND_TYPE_DRM_GBM -DRAPIDJSON_HAS_CXX11_NOEXCEPT -DRAPIDJSON_HAS_CXX11_RANGE_FOR -DRAPIDJSON_HAS_CXX11_RVALUE_REFS -DRAPIDJSON_HAS_CXX11_TYPETRAITS -DRAPIDJSON_HAS_STDSTRING -D__GBM__ -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/third_party -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/libdrm -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include/flutter -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/public/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/examples/flutter-drm-gbm-backend -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot=                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native=   -fvisibility-inlines-hidden -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot -g   -DLINUX -DWL_EGL_PLATFORM -pthread -std=gnu++17 -MD -MT CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/surface/context_egl.cc.o -MF CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/surface/context_egl.cc.o.d -o CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/surface/context_egl.cc.o -c /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/surface/context_egl.cc
| [14/39] /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-clang++  -DDISPLAY_BACKEND_TYPE_DRM_GBM -DRAPIDJSON_HAS_CXX11_NOEXCEPT -DRAPIDJSON_HAS_CXX11_RANGE_FOR -DRAPIDJSON_HAS_CXX11_RVALUE_REFS -DRAPIDJSON_HAS_CXX11_TYPETRAITS -DRAPIDJSON_HAS_STDSTRING -D__GBM__ -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/third_party -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/libdrm -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include/flutter -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/public/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/examples/flutter-drm-gbm-backend -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot=                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native=   -fvisibility-inlines-hidden -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot -g   -DLINUX -DWL_EGL_PLATFORM -pthread -std=gnu++17 -MD -MT CMakeFiles/flutter-drm-gbm-backend.dir/src/client_wrapper/flutter_view_controller.cc.o -MF CMakeFiles/flutter-drm-gbm-backend.dir/src/client_wrapper/flutter_view_controller.cc.o.d -o CMakeFiles/flutter-drm-gbm-backend.dir/src/client_wrapper/flutter_view_controller.cc.o -c /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/client_wrapper/flutter_view_controller.cc
| [15/39] /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-clang++  -DDISPLAY_BACKEND_TYPE_DRM_GBM -DRAPIDJSON_HAS_CXX11_NOEXCEPT -DRAPIDJSON_HAS_CXX11_RANGE_FOR -DRAPIDJSON_HAS_CXX11_RVALUE_REFS -DRAPIDJSON_HAS_CXX11_TYPETRAITS -DRAPIDJSON_HAS_STDSTRING -D__GBM__ -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/third_party -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/libdrm -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include/flutter -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/public/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/examples/flutter-drm-gbm-backend -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot=                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native=   -fvisibility-inlines-hidden -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot -g   -DLINUX -DWL_EGL_PLATFORM -pthread -std=gnu++17 -MD -MT CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/common/client_wrapper/engine_method_result.cc.o -MF CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/common/client_wrapper/engine_method_result.cc.o.d -o CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/common/client_wrapper/engine_method_result.cc.o -c /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/engine_method_result.cc
| [16/39] /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-clang++  -DDISPLAY_BACKEND_TYPE_DRM_GBM -DRAPIDJSON_HAS_CXX11_NOEXCEPT -DRAPIDJSON_HAS_CXX11_RANGE_FOR -DRAPIDJSON_HAS_CXX11_RVALUE_REFS -DRAPIDJSON_HAS_CXX11_TYPETRAITS -DRAPIDJSON_HAS_STDSTRING -D__GBM__ -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/third_party -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/libdrm -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include/flutter -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/public/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/examples/flutter-drm-gbm-backend -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot=                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native=   -fvisibility-inlines-hidden -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot -g   -DLINUX -DWL_EGL_PLATFORM -pthread -std=gnu++17 -MD -MT CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/common/incoming_message_dispatcher.cc.o -MF CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/common/incoming_message_dispatcher.cc.o.d -o CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/common/incoming_message_dispatcher.cc.o -c /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/incoming_message_dispatcher.cc
| [17/39] /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-clang++  -DDISPLAY_BACKEND_TYPE_DRM_GBM -DRAPIDJSON_HAS_CXX11_NOEXCEPT -DRAPIDJSON_HAS_CXX11_RANGE_FOR -DRAPIDJSON_HAS_CXX11_RVALUE_REFS -DRAPIDJSON_HAS_CXX11_TYPETRAITS -DRAPIDJSON_HAS_STDSTRING -D__GBM__ -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/third_party -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot/usr/include/libdrm -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/client_wrapper/include/flutter -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/common/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/public -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/public/include -I/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/examples/flutter-drm-gbm-backend -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0=/usr/src/debug/flutter-drm-gbm-backend/git-r0                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot=                      -fdebug-prefix-map=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot-native=   -fvisibility-inlines-hidden -target aarch64-poky-linux  -march=armv8-a+crc+crypto    -mlittle-endian -mtune=cortex-a53 -Qunused-arguments -fstack-protector-strong  -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security  --sysroot=/var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/recipe-sysroot -g   -DLINUX -DWL_EGL_PLATFORM -pthread -std=gnu++17 -MD -MT CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/flutter_project_bundle.cc.o -MF CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/flutter_project_bundle.cc.o.d -o CMakeFiles/flutter-drm-gbm-backend.dir/src/flutter/shell/platform/linux_embedded/flutter_project_bundle.cc.o -c /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/flutter_project_bundle.cc
| /var/data/flutter/flutter-build/build/tmp/work/aarch64-mx8-poky-linux/flutter-drm-gbm-backend/git-r0/git/src/flutter/shell/platform/linux_embedded/flutter_project_bundle.cc:94:3: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
|   readlink("/proc/self/exe", buf, sizeof(buf) - 1);
|   ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 1 warning generated.

So in summary this layer seems to be working only for NVIDIA :-(

embetrix commented 3 years ago

built the with new flutter-wayland that was recently commited and used as suggested FLUTTER_CHANNEL="dev"

I have the same error as before:

# /usr/bin/flutter_wayland /usr/share/flutter-gallery/sony/data/flutter_assets/
LOG: /usr/src/debug/flutter-wayland/git-r0/git/src/main.cc:65: Arg: /usr/share/flutter-gallery/sony/data/flutter_assets/
terminate called after throwing an instance of 'std::runtime_error'
Bus error

Note: I'm always building from scratch

jwinarske commented 3 years ago

I closed it, as I addressed the filed issue. See the flutter_wayland repo for example.

Stringing issues together doesn't help others.

Given gallery currently builds with "dev", "master" is not something one normally targets unless you're generating PRs for the engine. "Beta" is recommended for flutter app development. At one point "master" was required for the gallery app, which is not always the case.

The Sony recipes are currently autorev, as they are still in flux. If you want stability either find a commit you want to lock to and patch, try flutter-pi (drm-gbm), or write your own. All of the current public embedders are not a complete commercial solution. Mostly a best effort, or POC (flutter_wayland). I implemented/own the embedder Toyota is using, and it is far more sophisticated than any of these. This layer is a starting point for many.

What SoC are you targeting? What OS and version is your container running?

There are many companies using this layer including my own.