Use case
- Flutter Engine Build for embedded Linux
- Flutter Channel = Master
- Runtime=Debug
- GCC 11.2.0
| FAILED: obj/third_party/dart/runtime/vm/libdart_vm_jit.malloc_hooks_unsupported.o
| /__w/meta-flutter/rpi4-drm-honister-latest/raspberrypi4-64/tmp/work/cortexa72-poky-linux/flutter-engine/git-r0/src/buildtools/linux-x64/clang/bin/clang++ -MD -MF obj/third_party/dart/runtime/vm/libdart_vm_jit.malloc_hooks_unsupported.o.d --target=aarch64-unknown-linux-gnu --sysroot /__w/meta-flutter/rpi4-drm-honister-latest/raspberrypi4-64/tmp/work/cortexa72-poky-linux/flutter-engine/git-r0/recipe-sysroot -DUSE_OPENSSL=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DTARGET_ARCH_ARM64 -DDART_TARGET_OS_LINUX -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -I../../third_party/dart/runtime -I../.. -Igen -I../../third_party/libcxx/include -I../../third_party/libcxxabi/include -I../../third_party/dart/runtime/include -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -fno-strict-aliasing -fstack-protector --param=ssp-buffer-size=4 -fPIC -pipe -pthread --target=aarch64-linux-gnu -DBORINGSSL_CLANG_SUPPORTS_DOT_ARCH -fcolor-diagnostics -Wall -Wextra -Wendif-labels -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-deprecated-copy -Wno-psabi -Wno-non-c-typedef-for-linkage -Wno-range-loop-construct -fvisibility=hidden --sysroot=/__w/meta-flutter/rpi4-drm-honister-latest/raspberrypi4-64/tmp/work/cortexa72-poky-linux/flutter-engine/git-r0/recipe-sysroot -Wstring-conversion -Wnewline-eof -O2 -fno-ident -fdata-sections -ffunction-sections -g0 -Werror -Wall -Wextra -Wno-unused-parameter -Wno-unused-private-field -Wnon-virtual-dtor -Wvla -Woverloaded-virtual -Wno-comments -g3 -ggdb3 -fno-rtti -fno-exceptions -Wimplicit-fallthrough -O3 -fvisibility-inlines-hidden -std=c++17 -fno-rtti -nostdinc++ -nostdinc++ -fvisibility=hidden -fno-exceptions -c ../../third_party/dart/runtime/vm/malloc_hooks_unsupported.cc -o obj/third_party/dart/runtime/vm/libdart_vm_jit.malloc_hooks_unsupported.o
| ../../third_party/dart/runtime/vm/malloc_hooks_unsupported.cc:73:26: error: 'mallinfo' is deprecated [-Werror,-Wdeprecated-declarations]
| struct mallinfo info = mallinfo();
| ^
| /__w/meta-flutter/rpi4-drm-honister-latest/raspberrypi4-64/tmp/work/cortexa72-poky-linux/flutter-engine/git-r0/recipe-sysroot/usr/include/malloc.h:113:48: note: 'mallinfo' has been explicitly marked deprecated here
| extern struct mallinfo mallinfo (void) __THROW __MALLOC_DEPRECATED;
| /__w/meta-flutter/rpi4-drm-honister-latest/raspberrypi4-64/tmp/work/cortexa72-poky-linux/flutter-engine/git-r0/recipe-sysroot/usr/include/malloc.h:31:30: note: expanded from macro '__MALLOC_DEPRECATED'
| # define __MALLOC_DEPRECATED __attribute_deprecated__
| ^
| /__w/meta-flutter/rpi4-drm-honister-latest/raspberrypi4-64/tmp/work/cortexa72-poky-linux/flutter-engine/git-r0/recipe-sysroot/usr/include/sys/cdefs.h:281:51: note: expanded from macro '__attribute_deprecated__'
| # define __attribute_deprecated__ __attribute__ ((__deprecated__))
| ^
Building with GCC 11.2.0 Engine runtime=release is fine.
Proposal
Pick up Dart version that resolves this deprecation.
Use case
Building with GCC 11.2.0 Engine runtime=release is fine.
Proposal
Pick up Dart version that resolves this deprecation.