rive-app / rive-flutter

Flutter runtime for Rive
https://rive.app
MIT License
1.16k stars 180 forks source link

Flutter app does not compile with latest Rive and results in an error coming from `rive_common` package. #323

Closed deezee30 closed 10 months ago

deezee30 commented 1 year ago

Description

Flutter app does not compile with latest Rive and results in an error coming from rive_common package. The following is the build log outputted by Flutter, with the error:

Signing app using key.properties file with /home/deniss/.android/appkey.jks.
Font asset "CupertinoIcons.ttf" was tree-shaken, reducing it from 283452 to 996 bytes (99.6% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Font asset "fa-brands-400.ttf" was tree-shaken, reducing it from 181344 to 2248 bytes (98.8% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Font asset "fa-regular-400.ttf" was tree-shaken, reducing it from 982412 to 11896 bytes (98.8% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Font asset "fa-solid-900.ttf" was tree-shaken, reducing it from 870948 to 20144 bytes (97.7% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 4016 bytes (99.8% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':rive_common:buildCMakeRelWithDebInfo[arm64-v8a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/android/.cxx/RelWithDebInfo/29m572g6/arm64-v8a'
  [1/65] Building CXX object CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/rive_counter.cpp.o
  FAILED: CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/rive_counter.cpp.o 
  /home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -O2 -g -DNDEBUG -fPIC -MD -MT CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/rive_counter.cpp.o -MF CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/rive_counter.cpp.o.d -o CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/rive_counter.cpp.o -c /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/rive_counter.cpp
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/rive_counter.cpp:5:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_counter.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_types.hpp:12:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.
  [2/65] Building CXX object CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/math/raw_path.cpp.o
  FAILED: CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/math/raw_path.cpp.o 
  /home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -O2 -g -DNDEBUG -fPIC -MD -MT CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/math/raw_path.cpp.o -MF CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/math/raw_path.cpp.o.d -o CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/math/raw_path.cpp.o -c /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/math/raw_path.cpp
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/math/raw_path.cpp:5:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/raw_path.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/span.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_types.hpp:12:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.
  [3/65] Building CXX object CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/math/mat2d.cpp.o
  FAILED: CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/math/mat2d.cpp.o 
  /home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -O2 -g -DNDEBUG -fPIC -MD -MT CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/math/mat2d.cpp.o -MF CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/math/mat2d.cpp.o.d -o CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/math/mat2d.cpp.o -c /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/math/mat2d.cpp
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/math/mat2d.cpp:1:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/mat2d.hpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/vec2d.hpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_types.hpp:12:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.
  [4/65] Building CXX object CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/text_engine.cpp.o
  FAILED: CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/text_engine.cpp.o 
  /home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -O2 -g -DNDEBUG -fPIC -MD -MT CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/text_engine.cpp.o -MF CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/text_engine.cpp.o.d -o CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/text_engine.cpp.o -c /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/text_engine.cpp
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/text_engine.cpp:2:
  In file included from ../../../../../ios/rive-cpp/include/rive/text_engine.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/raw_path.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/span.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_types.hpp:12:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/text_engine.cpp:2:
  In file included from ../../../../../ios/rive-cpp/include/rive/text_engine.hpp:11:
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned short, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned short>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned int, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned int>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<float, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<float>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  4 errors generated.
  [5/65] Building CXX object CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive_text/rive_text.cpp.o
  FAILED: CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive_text/rive_text.cpp.o 
  /home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -O2 -g -DNDEBUG -fPIC -MD -MT CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive_text/rive_text.cpp.o -MF CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive_text/rive_text.cpp.o.d -o CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive_text/rive_text.cpp.o -c /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive_text/rive_text.cpp
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive_text/rive_text.cpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/text/font_hb.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/factory.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/renderer.hpp:9:
  In file included from ../../../../../ios/rive-cpp/include/rive/command_path.hpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/mat2d.hpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/vec2d.hpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_types.hpp:12:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive_text/rive_text.cpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/text/font_hb.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/factory.hpp:9:
  In file included from ../../../../../ios/rive-cpp/include/rive/text_engine.hpp:11:
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned short, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned short>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned int, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned int>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<float, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<float>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  4 errors generated.
  [6/65] Building CXX object CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/font_hb.cpp.o
  FAILED: CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/font_hb.cpp.o 
  /home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -O2 -g -DNDEBUG -fPIC -MD -MT CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/font_hb.cpp.o -MF CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/font_hb.cpp.o.d -o CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/font_hb.cpp.o -c /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/font_hb.cpp
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/font_hb.cpp:5:
  In file included from ../../../../../ios/rive-cpp/include/rive/text_engine.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/raw_path.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/span.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_types.hpp:12:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/font_hb.cpp:350:46: error: non-constant-expression cannot be narrowed from type 'size_t' (aka 'unsigned long') to 'SBUInteger' (aka 'unsigned int') in initializer list [-Wc++11-narrowing]
                                               text.size()};
                                               ^~~~~~~~~~~
  /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/font_hb.cpp:350:46: note: insert an explicit cast to silence this issue
                                               text.size()};
                                               ^~~~~~~~~~~
                                               static_cast<SBUInteger>( )
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/font_hb.cpp:5:
  In file included from ../../../../../ios/rive-cpp/include/rive/text_engine.hpp:11:
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned short, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned short>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned int, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned int>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<float, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<float>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  5 errors generated.
  [7/65] Building CXX object CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/line_breaker.cpp.o
  FAILED: CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/line_breaker.cpp.o 
  /home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -O2 -g -DNDEBUG -fPIC -MD -MT CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/line_breaker.cpp.o -MF CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/line_breaker.cpp.o.d -o CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/line_breaker.cpp.o -c /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/line_breaker.cpp
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/line_breaker.cpp:5:
  In file included from ../../../../../ios/rive-cpp/include/rive/text_engine.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/raw_path.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/span.hpp:8:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_types.hpp:12:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/text/line_breaker.cpp:5:
  In file included from ../../../../../ios/rive-cpp/include/rive/text_engine.hpp:11:
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned short, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned short>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned int, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned int>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<float, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<float>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  4 errors generated.
  [8/65] Building CXX object CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/renderer.cpp.o
  FAILED: CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/renderer.cpp.o 
  /home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -O2 -g -DNDEBUG -fPIC -MD -MT CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/renderer.cpp.o -MF CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/renderer.cpp.o.d -o CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/renderer.cpp.o -c /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/renderer.cpp
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/renderer.cpp:1:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/mat2d.hpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/math/vec2d.hpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/rive_types.hpp:12:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/rive-cpp/src/renderer.cpp:4:
  In file included from ../../../../../ios/rive-cpp/include/rive/text_engine.hpp:11:
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned short, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned short>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<unsigned int, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<unsigned int>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:60:28: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
          memcpy(ptr, first, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(first));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<float, true>::CopyConstructArray' requested here
          SimpleArrayHelper<T>::CopyConstructArray(ptr, ptr + size, m_ptr);
                                ^
  ../../../../../ios/rive-cpp/include/rive/simple_array.hpp:114:43: note: in instantiation of member function 'rive::SimpleArray<float>::SimpleArray' requested here
      constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
                                            ^
  4 errors generated.
  [9/65] Building CXX object CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-map.cc.o
  FAILED: CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-map.cc.o 
  /home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -O2 -g -DNDEBUG -fPIC -MD -MT CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-map.cc.o -MF CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-map.cc.o.d -o CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-map.cc.o -c /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-map.cc
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-map.cc:29:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:190:
  In file included from /snap/flutter/current/usr/include/c++/9/cmath:47:
  In file included from /snap/flutter/current/usr/include/c++/9/bits/std_abs.h:38:
  In file included from /snap/flutter/current/usr/include/stdlib.h:1017:
  /snap/flutter/current/usr/include/bits/stdlib.h:90:3: error: "Assumed value of MB_LEN_MAX wrong"
  # error "Assumed value of MB_LEN_MAX wrong"
    ^
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-map.cc:29:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:474:
  In file included from ../../../../../ios/harfbuzz/src/hb-cplusplus.hh:35:
  In file included from /snap/flutter/current/usr/include/c++/9/functional:54:
  In file included from /snap/flutter/current/usr/include/c++/9/tuple:39:
  In file included from /snap/flutter/current/usr/include/c++/9/array:39:
  In file included from /snap/flutter/current/usr/include/c++/9/stdexcept:39:
  In file included from /snap/flutter/current/usr/include/c++/9/string:40:
  In file included from /snap/flutter/current/usr/include/c++/9/bits/char_traits.h:40:
  In file included from /snap/flutter/current/usr/include/c++/9/bits/postypes.h:40:
  In file included from /snap/flutter/current/usr/include/c++/9/cwchar:44:
  In file included from /snap/flutter/current/usr/include/wchar.h:849:
  /snap/flutter/current/usr/include/bits/wchar2.h:448:3: error: "Assumed value of MB_LEN_MAX wrong"
  # error "Assumed value of MB_LEN_MAX wrong"
    ^
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-map.cc:29:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:475:
  In file included from ../../../../../ios/harfbuzz/src/hb-meta.hh:32:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3 errors generated.
  [10/65] Building CXX object CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-layout.cc.o
  FAILED: CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-layout.cc.o 
  /home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/deniss/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -O2 -g -DNDEBUG -fPIC -MD -MT CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-layout.cc.o -MF CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-layout.cc.o.d -o CMakeFiles/rive_text.dir/home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-layout.cc.o -c /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-layout.cc
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-layout.cc:28:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:190:
  In file included from /snap/flutter/current/usr/include/c++/9/cmath:47:
  In file included from /snap/flutter/current/usr/include/c++/9/bits/std_abs.h:38:
  In file included from /snap/flutter/current/usr/include/stdlib.h:1017:
  /snap/flutter/current/usr/include/bits/stdlib.h:90:3: error: "Assumed value of MB_LEN_MAX wrong"
  # error "Assumed value of MB_LEN_MAX wrong"
    ^
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-layout.cc:28:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:474:
  In file included from ../../../../../ios/harfbuzz/src/hb-cplusplus.hh:35:
  In file included from /snap/flutter/current/usr/include/c++/9/functional:54:
  In file included from /snap/flutter/current/usr/include/c++/9/tuple:39:
  In file included from /snap/flutter/current/usr/include/c++/9/array:39:
  In file included from /snap/flutter/current/usr/include/c++/9/stdexcept:39:
  In file included from /snap/flutter/current/usr/include/c++/9/string:40:
  In file included from /snap/flutter/current/usr/include/c++/9/bits/char_traits.h:40:
  In file included from /snap/flutter/current/usr/include/c++/9/bits/postypes.h:40:
  In file included from /snap/flutter/current/usr/include/c++/9/cwchar:44:
  In file included from /snap/flutter/current/usr/include/wchar.h:849:
  /snap/flutter/current/usr/include/bits/wchar2.h:448:3: error: "Assumed value of MB_LEN_MAX wrong"
  # error "Assumed value of MB_LEN_MAX wrong"
    ^
  In file included from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/ios/harfbuzz/src/hb-aat-layout.cc:28:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:475:
  In file included from ../../../../../ios/harfbuzz/src/hb-meta.hh:32:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3 errors generated.
  ninja: build stopped: subcommand failed.

  C++ build system [build] failed while executing:
      /home/deniss/Android/Sdk/cmake/3.18.1/bin/ninja \
        -C \
        /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/android/.cxx/RelWithDebInfo/29m572g6/arm64-v8a \
        rive_text
    from /home/deniss/.pub-cache/hosted/pub.dev/rive_common-0.0.9/android

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 48s
Running Gradle task 'bundleRelease'...                            109.0s
Gradle task bundleRelease failed with exit code 1

Steps To Reproduce

Call the following command:

flutter build appbundle --release --tree-shake-icons --split-debug-info='build/app/outputs/symbols' --build-name=0.1.3+2 --build-number=764

Source .riv/.rev file

This issue is not caused by any specific Rive asset.

Expected behavior

App launches as expected.

Screenshots

Not required.

Device & Versions (please complete the following information)

Additional context

Not required.

HayesGordon commented 1 year ago

Hi @deezee30, what OS are you running? Are you only experiencing this when bundling or with normal flutter run for Android as well?

Could you also give me the output for clang --version

deezee30 commented 1 year ago

@HayesGordon Thanks for looking into this.

I'm running Ubuntu 23.04, but this was also tested on Ubuntu 22.04. Yes, flutter run also causes an error. I'm not sure if it's the exact same but it does not compile and references rive_common.

clang --version output:

Ubuntu clang version 15.0.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
HayesGordon commented 1 year ago

There may be something in this issue thread of help, see here: https://github.com/rive-app/rive-flutter/issues/291#issuecomment-1541877204

Updating your gradle dependency might be what is needed. What is it currently set to?

Could you confirm if this problem occurs in a new Flutter project as well, after running flutter create and then adding Rive.

Though it seems like your Cmake and Clang are up to date.

You could also try running: flutter clean

And open the Android folder in Android Studio and go to Build -> Clean Project

deezee30 commented 1 year ago

My Gradle version is 7.3.1, so it should be okay. I tried updating it to 8.0.0 (latest stable release) but it's not fully supported by some of the tools I use yet so I wasn't able to test out if it works with 8.0.0. Nonetheless, 7.3.1 is higher than what that fix requires.

I've tried cleaning Android project and running flutter clean with no success.

I've also tried this on a fresh project as got a similar compilation error but not quite the same. Here is the comparison between the two errors for clarity: https://www.diffchecker.com/skFLGGdb/ Left side is the original error, right side is the fresh error.

traue commented 1 year ago

Same error here Flutter 3.10.1 Rive 0.11.2

Spiderbezno commented 1 year ago

Same error here Flutter 3.10.5 Rive 0.11.3

CompileC /Users/runner/Library/Developer/Xcode/DerivedData/Runner-bomutmstgikhmkcxiajovabpilhs/Build/Intermediates.noindex/Pods.build/Release-iphoneos/rive_common.build/Objects-normal/arm64/font_hb.o /Users/runner/.pub-cache/hosted/pub.dev/rive_common-0.0.10/ios/rive-cpp/src/text/font_hb.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'rive_common' from project 'Pods')

absalam48 commented 1 year ago

Same error here Flutter 3.10.5

C:....\windows\flutter\ephemeral.plugin_symlinks\rive_common\windows..\ios\rive-cpp\include\rive/math/mat2 d.hpp(17,5): error : definition of implicit copy assignment operator for 'Mat2D' is deprecated because it has a user-decl ared copy constructor [-Werror,-Wdeprecated-copy] [C:....\build\windows\plugins\rive_common\rive_common_plug in.vcxproj]

umaraqueli commented 1 year ago

I'm facing the same issue. Any solution so far? Flutter 3.10.5 Gradle 7.3.3 NDK: 25.1.8937393

forYouDevelop commented 1 year ago

I have the same issue Flutter 3.10.5 Gradle 7.3.3 Rive 0.11.3

LipJ01 commented 1 year ago

I've got the same issue. Ubuntu 22.04 Rive 0.11.3 Bump

eb-so commented 1 year ago

Any workaround??

MaoHolden commented 12 months ago

same problem

MaoHolden commented 12 months ago

@deezee30 managed to fixed it, I'm not sure what was the exact problem but I noticed that you also have flutter installed by snap, I uninstalled flutter and installed it manually, along with its dependencies and it worked ok.

luigi-rosso commented 11 months ago

Flutter installed via snap has issues building native plugins. See other reports here:

https://github.com/flutter/flutter/issues/106102 https://github.com/canonical/flutter-snap/issues/83

The solution, like @MaoHolden suggested, is to not install Flutter via Snap but to install it manually (clone from GitHub and add to Path). More instructions here: https://docs.flutter.dev/get-started/install/linux#install-flutter-manually

luigi-rosso commented 11 months ago

Same error here Flutter 3.10.5

C:....\windows\flutter\ephemeral.plugin_symlinks\rive_common\windows..\ios\rive-cpp\include\rive/math/mat2 d.hpp(17,5): error : definition of implicit copy assignment operator for 'Mat2D' is deprecated because it has a user-decl ared copy constructor [-Werror,-Wdeprecated-copy] [C:....\build\windows\plugins\rive_common\rive_common_plug in.vcxproj]

This looks like a different issue @absalam48. Could you open a separate issue with details regarding Windows version for this one?

NeroThroN commented 11 months ago

I had the error for a week, impossible to go to Gradle 8 because of other packages. I was blocked not to be able to build my application for Android.

Flutter installed via snap has issues building native plugins. See other reports here:

flutter/flutter#106102 canonical/flutter-snap#83

The solution, like @MaoHolden suggested, is to not install Flutter via Snap but to install it manually (clone from GitHub and add to Path). More instructions here: https://docs.flutter.dev/get-started/install/linux#install-flutter-manually

By following the answer there, I uninstall the version of Flutter installed via Snap and now it works! Thanks @luigi-rosso !!

eb-so commented 11 months ago

Any workaround??

This error was solved magically the next day, I don't know what cause it or how it got fixed I suspect something around the fvm cause that's the only thing that change over the week but I couldn't reproduce it anymore

I'm on macOS version: 13.4.1 (22F82) flutter version: 3.10.2 rive version: 0.11.5

PiotrFLEURY commented 11 months ago

Same error on my Ubuntu laptop.

I also installed Flutter using snap.

Few details

Builds well for

Build failed for Android. The build error message also contain some IOS references.

I already tried to clear pub cache using flutter pub cache clean or change flutter version. Unfortunatelly, nothing works.

Same kind of error message than in the original comment of @deezee30

  1 error generated.
  [10/64] Building CXX object CMakeFiles/rive_text.dir/home/piotr/.pub-cache/hosted/pub.dev/rive_common-0.2.3/ios/harfbuzz/src/hb-aat-layout.cc.o
  FAILED: CMakeFiles/rive_text.dir/home/piotr/.pub-cache/hosted/pub.dev/rive_common-0.2.3/ios/harfbuzz/src/hb-aat-layout.cc.o 
  /home/piotr/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/piotr/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I../../../../../ios/harfbuzz/src -I../../../../../ios/rive-cpp/skia/renderer/include -I../../../../../ios/rive-cpp/include -I../../../../../ios/SheenBidi/Headers -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -fno-limit-debug-info  -fPIC -MD -MT CMakeFiles/rive_text.dir/home/piotr/.pub-cache/hosted/pub.dev/rive_common-0.2.3/ios/harfbuzz/src/hb-aat-layout.cc.o -MF CMakeFiles/rive_text.dir/home/piotr/.pub-cache/hosted/pub.dev/rive_common-0.2.3/ios/harfbuzz/src/hb-aat-layout.cc.o.d -o CMakeFiles/rive_text.dir/home/piotr/.pub-cache/hosted/pub.dev/rive_common-0.2.3/ios/harfbuzz/src/hb-aat-layout.cc.o -c /home/piotr/.pub-cache/hosted/pub.dev/rive_common-0.2.3/ios/harfbuzz/src/hb-aat-layout.cc
  In file included from /home/piotr/.pub-cache/hosted/pub.dev/rive_common-0.2.3/ios/harfbuzz/src/hb-aat-layout.cc:28:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:475:
  In file included from ../../../../../ios/harfbuzz/src/hb-meta.hh:32:
  /snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
    const auto __intptr = reinterpret_cast<uintptr_t>(__ptr);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error generated.
  ninja: build stopped: subcommand failed.

  C++ build system [build] failed while executing:
      /home/piotr/Android/Sdk/cmake/3.18.1/bin/ninja \
        -C \
        /home/piotr/.pub-cache/hosted/pub.dev/rive_common-0.2.3/android/.cxx/Debug/c4d5u2p3/arm64-v8a \
        rive_text
    from /home/piotr/.pub-cache/hosted/pub.dev/rive_common-0.2.3/android

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s
deezee30 commented 11 months ago

For anyone still stuck on this, uninstalling Flutter via snap and then installing it organically fixed my issue, as others have pointed out.

amoyastudio commented 10 months ago

and if we use windows ? how to uninstall it ? is this the only solution ?

HayesGordon commented 10 months ago

The windows issues mentioned here seem to be the same as this: https://github.com/rive-app/rive-flutter/issues/340

Which is as a result of using the latest version of Clang

luigi-rosso commented 10 months ago

Closing this issue as the resolution for this specific problem is to make sure you install Flutter via git and not via snap.

AhmedEzio47 commented 7 months ago

Just a confirmation that the cause was that I installed Flutter with snap.

HayesGordon commented 7 months ago

Thanks for confirming @AhmedEzio47

silexcorp commented 6 months ago

Just a confirmation that the cause was that I installed Flutter with snap.

Same here, confirming x)

doughywilson commented 2 months ago

For anyone still stuck on this, uninstalling Flutter via snap and then installing it organically fixed my issue, as others have pointed out.

Thank you. After a miserable time trying to debug, this finally helped me solve it.

diegog-sf commented 2 months ago

Hello @luigi-rosso , we cannot stop using a snap version of flutter due to company policies, do you think there is something that we could do on this side to fix the issue?