kraj/meta-clang

dunfell-clang12

jwinarske opened this issue · 12 comments

Describe the bug

bitbake compiler-rt-native
ERROR: Nothing PROVIDES 'clang-native-x86_64' (but virtual:native:/mnt/raid10/github-ci/_work/sax155p_yocto/sa81x5agl/src/apps/apps_proc/meta-clang/recipes-devtools/clang/compiler-rt_git.bb DEPENDS on or otherwise requires it). Close matches:
  clang-native
  slang-native
ERROR: Required build target 'compiler-rt-native' has no buildable providers.
Missing or unbuildable dependency chain was: ['compiler-rt-native', 'clang-native-x86_64']

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version 16

Additional context
Something unique in this BSP that causes this. I don't see this problem with plain vanilla poky/oe builds.

Unclear why it's adding x86_64. Any ideas?

Turns out I was just on dunfell. It works as expected on dunfell-clang12

It's set in both branches (dunfell and dunfell-clang12). Problem only shows up using dunfell.

This is the recipe triggering the issue:
https://github.com/jwinarske/meta-vulkan/blob/dunfell-no-mesa/recipes-graphics/filament/filament_1.27.1.bb

DEBUG: Target list: ['filament-native']
DEBUG: providers for filament-native are: ['filament-native']
DEBUG: sorted providers for filament-native are: ['virtual:native:/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/meta-vulkan/recipes-graphics/filament/filament_1.27.1.bb']
NOTE: Resolving any missing task queue dependencies
DEBUG: providers for compiler-rt-native are: ['compiler-rt-native']
DEBUG: sorted providers for compiler-rt-native are: ['virtual:native:/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/meta-clang/recipes-devtools/clang/compiler-rt_git.bb']
DEBUG: providers for libcxx-native are: ['libcxx-native']
DEBUG: sorted providers for libcxx-native are: ['virtual:native:/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/meta-clang/recipes-devtools/clang/libcxx_git.bb']
DEBUG: providers for ninja-native are: ['ninja-native']
DEBUG: sorted providers for ninja-native are: ['virtual:native:/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/meta/recipes-devtools/ninja/ninja_1.10.0.bb']
DEBUG: providers for quilt-native are: ['quilt-native']
DEBUG: sorted providers for quilt-native are: ['/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/meta/recipes-devtools/quilt/quilt-native_0.66.bb']
DEBUG: providers for cmake-native are: ['cmake-native']
DEBUG: sorted providers for cmake-native are: ['/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/meta-vulkan/recipes-devtools/cmake/cmake-native_3.22.3.bb']
DEBUG: providers for pkgconfig-native are: ['pkgconf-native', 'pkgconfig-native']
NOTE: selecting pkgconfig-native to satisfy pkgconfig-native due to PREFERRED_PROVIDERS
DEBUG: sorted providers for pkgconfig-native are: ['virtual:native:/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb', 'virtual:native:/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/meta/recipes-devtools/pkgconf/pkgconf_1.6.3.bb']
DEBUG: Resolved 6 extra dependencies
DEBUG: providers for zstd-native are: ['zstd-native']
DEBUG: sorted providers for zstd-native are: ['virtual:native:/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/meta-openembedded/meta-oe/recipes-extended/zstd/zstd_1.4.5.bb']
DEBUG: providers for bzip2-replacement-native are: ['bzip2-native']
DEBUG: sorted providers for bzip2-replacement-native are: ['virtual:native:/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/meta/recipes-extended/bzip2/bzip2_1.0.8.bb']
ERROR: Nothing PROVIDES 'virtual/compilerlibs-native' (but virtual:native:/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/meta-clang/recipes-devtools/clang/compiler-rt_git.bb DEPENDS on or otherwise requires it). Close matches:
  virtual/libsdl-native
  virtual/libusb0-native
  virtual/mesa-native
NOTE: Target 'virtual/compilerlibs-native' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['virtual/compilerlibs-native']
DEBUG: File 'virtual:native:/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/meta-clang/recipes-devtools/clang/compiler-rt_git.bb' is unbuildable, removing...
NOTE: Target 'compiler-rt-native' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['compiler-rt-native', 'virtual/compilerlibs-native']
ERROR: Required build target 'filament-native' has no buildable providers.
Missing or unbuildable dependency chain was: ['filament-native', 'libcxx-native', 'compiler-rt-native', 'virtual/compilerlibs-native']
DEBUG: File 'virtual:native:/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/meta-clang/recipes-devtools/clang/libcxx_git.bb' is unbuildable, removing...
NOTE: Target 'libcxx-native' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['libcxx-native', 'compiler-rt-native', 'virtual/compilerlibs-native']
DEBUG: File 'virtual:native:/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/meta-vulkan/recipes-graphics/filament/filament_1.27.1.bb' is unbuildable, removing...
NOTE: Target 'filament-native' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['filament-native', 'libcxx-native', 'compiler-rt-native', 'virtual/compilerlibs-native']
kraj commented

yeah dunfell_clang12 is practically what we should use with dunfell these days, we did not have clang-native fully functional in original dunfell release.

I see. Makes sense. Yeah I agree, as I always use dunfell-clang12 by default.

I am hitting this compile error on dunfell-clang12. Have you seen this?

[4790/5323] /__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/hosttools/g++ -DHAVE_ROUND -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/build/tools/lldb/source/Plugins/Process/Linux -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/build/tools/lldb/source -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/include -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/build/tools/lldb/include -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/build/include -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/llvm/include -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/recipe-sysroot-native/usr/include/python3.8 -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/llvm/../clang/include -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/build/tools/lldb/../clang/include -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/recipe-sysroot-native/usr/include/libxml2 -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/. -isystem/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/recipe-sysroot-native/usr/include -O2 -pipe   -fPIC -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -isystem/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/recipe-sysroot-native/usr/include -O2 -pipe   -DNDEBUG -g0 -std=c++14 -MD -MT tools/lldb/source/Plugins/Process/Linux/CMakeFiles/lldbPluginProcessLinux.dir/NativeRegisterContextLinux_x86_64.cpp.o -MF tools/lldb/source/Plugins/Process/Linux/CMakeFiles/lldbPluginProcessLinux.dir/NativeRegisterContextLinux_x86_64.cpp.o.d -o tools/lldb/source/Plugins/Process/Linux/CMakeFiles/lldbPluginProcessLinux.dir/NativeRegisterContextLinux_x86_64.cpp.o -c /__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp
FAILED: tools/lldb/source/Plugins/Process/Linux/CMakeFiles/lldbPluginProcessLinux.dir/NativeRegisterContextLinux_x86_64.cpp.o 
/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/hosttools/g++ -DHAVE_ROUND -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/build/tools/lldb/source/Plugins/Process/Linux -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/build/tools/lldb/source -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/include -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/build/tools/lldb/include -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/build/include -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/llvm/include -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/recipe-sysroot-native/usr/include/python3.8 -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/llvm/../clang/include -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/build/tools/lldb/../clang/include -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/recipe-sysroot-native/usr/include/libxml2 -I/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/. -isystem/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/recipe-sysroot-native/usr/include -O2 -pipe   -fPIC -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -isystem/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/clang-native/12.0.0-r0/recipe-sysroot-native/usr/include -O2 -pipe   -DNDEBUG -g0 -std=c++14 -MD -MT tools/lldb/source/Plugins/Process/Linux/CMakeFiles/lldbPluginProcessLinux.dir/NativeRegisterContextLinux_x86_64.cpp.o -MF tools/lldb/source/Plugins/Process/Linux/CMakeFiles/lldbPluginProcessLinux.dir/NativeRegisterContextLinux_x86_64.cpp.o.d -o tools/lldb/source/Plugins/Process/Linux/CMakeFiles/lldbPluginProcessLinux.dir/NativeRegisterContextLinux_x86_64.cpp.o -c /__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp
/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp: In constructor ‘lldb_private::process_linux::NativeRegisterContextLinux_x86_64::NativeRegisterContextLinux_x86_64(const lldb_private::ArchSpec&, lldb_private::NativeThreadProtocol&)’:
/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp:296:34: error: use of deleted function ‘lldb_private::process_linux::NativeRegisterContextLinux::NativeRegisterContextLinux()’
       m_reg_info(), m_gpr_x86_64() {
                                  ^
In file included from /__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.h:14:0,
                 from /__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp:11:
/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/./Plugins/Process/Linux/NativeRegisterContextLinux.h:18:7: note: ‘lldb_private::process_linux::NativeRegisterContextLinux::NativeRegisterContextLinux()’ is implicitly deleted because the default definition would be ill-formed:
 class NativeRegisterContextLinux
       ^
/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/./Plugins/Process/Linux/NativeRegisterContextLinux.h:18:7: error: no matching function for call to ‘lldb_private::NativeRegisterContextRegisterInfo::NativeRegisterContextRegisterInfo()’
In file included from /__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/./Plugins/Process/Linux/NativeRegisterContextLinux.h:12:0,
                 from /__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.h:14,
                 from /__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp:11:
/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/./Plugins/Process/Utility/NativeRegisterContextRegisterInfo.h:24:3: note: candidate: lldb_private::NativeRegisterContextRegisterInfo::NativeRegisterContextRegisterInfo(lldb_private::NativeThreadProtocol&, lldb_private::RegisterInfoInterface*)
   NativeRegisterContextRegisterInfo(
   ^
/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/./Plugins/Process/Utility/NativeRegisterContextRegisterInfo.h:24:3: note:   candidate expects 2 arguments, 0 provided
/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp:296:34: error: use of deleted function ‘lldb_private::NativeRegisterContextWatchpoint_x86::NativeRegisterContextWatchpoint_x86()’
       m_reg_info(), m_gpr_x86_64() {
                                  ^
In file included from /__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.h:15:0,
                 from /__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp:11:
/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/./Plugins/Process/Utility/NativeRegisterContextWatchpoint_x86.h:16:7: note: ‘lldb_private::NativeRegisterContextWatchpoint_x86::NativeRegisterContextWatchpoint_x86()’ is implicitly deleted because the default definition would be ill-formed:
 class NativeRegisterContextWatchpoint_x86
       ^
/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/./Plugins/Process/Utility/NativeRegisterContextWatchpoint_x86.h:16:7: error: no matching function for call to ‘lldb_private::NativeRegisterContextRegisterInfo::NativeRegisterContextRegisterInfo()’
In file included from /__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/./Plugins/Process/Linux/NativeRegisterContextLinux.h:12:0,
                 from /__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.h:14,
                 from /__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp:11:
/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/./Plugins/Process/Utility/NativeRegisterContextRegisterInfo.h:24:3: note: candidate: lldb_private::NativeRegisterContextRegisterInfo::NativeRegisterContextRegisterInfo(lldb_private::NativeThreadProtocol&, lldb_private::RegisterInfoInterface*)
   NativeRegisterContextRegisterInfo(
   ^
/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/./Plugins/Process/Utility/NativeRegisterContextRegisterInfo.h:24:3: note:   candidate expects 2 arguments, 0 provided
/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp: In member function ‘virtual llvm::Optional<lldb_private::process_linux::NativeRegisterContextLinux::SyscallData> lldb_private::process_linux::NativeRegisterContextLinux_x86_64::GetSyscallData()’:
/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp:1043:50: error: could not convert ‘(const uint8_t*)(& Int80)’ from ‘const uint8_t* {aka const unsigned char*}’ to ‘llvm::ArrayRef<unsigned char>’
     return SyscallData{Int80, Args, lldb_eax_i386};
                                                  ^
/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp:1043:50: error: could not convert ‘(const uint32_t*)(& Args)’ from ‘const uint32_t* {aka const unsigned int*}’ to ‘llvm::ArrayRef<unsigned int>’
/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp:1050:54: error: could not convert ‘(const uint8_t*)(& Syscall)’ from ‘const uint8_t* {aka const unsigned char*}’ to ‘llvm::ArrayRef<unsigned char>’
     return SyscallData{Syscall, Args, lldb_rax_x86_64};
                                                      ^
/__w/sax155p_yocto/sa81x5agl/src/apps/apps_proc/poky/build/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp:1050:54: error: could not convert ‘(const uint32_t*)(& Args)’ from ‘const uint32_t* {aka const unsigned int*}’ to ‘llvm::ArrayRef<unsigned int>’
$ g++ --version
g++ (GCC) 11.3.1 20220421 (Red Hat 11.3.1-2)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
kraj commented

maybe you need to disable lto while compiling

Where's the flag for that?

kraj commented

there is a bug which is similar see https://bugs.llvm.org/show_bug.cgi?id=50479
maybe you can disable building lldb for now if you do not use it. Just set
LLDB = "" in clang_git.bb

clang-native builds with LLDB = "" set.

This is what I'm using:
meta-flutter@4ea6666

It won't build in a Ubuntu 16 container. Works in Ubuntu 18 container, or on native Fedora 34.