Skip to content

[Android] Build fails with 'cast from pointer to smaller type 'uintptr_t' loses information' on arm64-v8a #531

@juanTorrenegra

Description

@juanTorrenegra

Build Failure on Android (arm64-v8a)

Description

I'm trying to integrate Rive animations into a Flame game. However, when I add the rive dependency to a brand new Flutter project and run it on an Android device, the build fails during the compilation of the native rive_common library with multiple cast from pointer to smaller type 'uintptr_t' loses information errors. Then i just followed a simple tutorial to integrate rive in flutter and the same error appears.

Steps to Reproduce

  1. Create a new Flutter project: flutter create rive_test
  2. Add rive: ^1.0.15 to pubspec.yaml.
  3. Run flutter pub get.
  4. Run flutter run.

Expected Behavior

The app should compile and run, displaying a blank screen (since no Rive asset is used yet).

Actual Behavior

The build fails with a CMake/Ninja error during the :rive_common:buildCMakeDebug[arm64-v8a] task. (See logs below).

Logs

╰─$ flutter run
Launching lib/main.dart on M2012K11AG in debug mode...

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':rive_common:buildCMakeDebug[arm64-v8a]'.

com.android.ide.common.process.ProcessException: ninja: Entering directory `/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/.cxx/Debug/4x5n252a/arm64-v8a'
[1/64] Building CXX object CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/rive_counter.cpp.o
FAILED: CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/rive_counter.cpp.o
/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/skia/renderer/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/rive_counter.cpp.o -MF CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/rive_counter.cpp.o.d -o CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/rive_counter.cpp.o -c /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/rive_counter.cpp
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/rive_counter.cpp:5:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/rive_counter.hpp:8:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/64] Building CXX object CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/renderer.cpp.o
FAILED: CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/renderer.cpp.o
/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/skia/renderer/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/renderer.cpp.o -MF CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/renderer.cpp.o.d -o CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/renderer.cpp.o -c /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/renderer.cpp
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/renderer.cpp:1:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/math/mat2d.hpp:4:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/math/vec2d.hpp:4:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/renderer.cpp:4:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/text_engine.hpp:11:
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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::CopyConstructArray(ptr, ptr + size, m_ptr);
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/simple_array.hpp:116:43: note: in instantiation of member function 'rive::SimpleArray::SimpleArray' requested here
constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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::CopyConstructArray(ptr, ptr + size, m_ptr);
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/simple_array.hpp:116:43: note: in instantiation of member function 'rive::SimpleArray::SimpleArray' requested here
constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<float, true>::CopyConstructArray' requested here
SimpleArrayHelper::CopyConstructArray(ptr, ptr + size, m_ptr);
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/simple_array.hpp:116:43: note: in instantiation of member function 'rive::SimpleArray::SimpleArray' requested here
constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
^
4 errors generated.
[3/64] Building CXX object CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-blob.cc.o
FAILED: CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-blob.cc.o
/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/skia/renderer/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-blob.cc.o -MF CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-blob.cc.o.d -o CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-blob.cc.o -c /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-blob.cc
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-blob.cc:28:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src/hb.hh:475:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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.
[4/64] Building CXX object CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/math/mat2d.cpp.o
FAILED: CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/math/mat2d.cpp.o
/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/skia/renderer/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/math/mat2d.cpp.o -MF CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/math/mat2d.cpp.o.d -o CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/math/mat2d.cpp.o -c /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/math/mat2d.cpp
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/math/mat2d.cpp:1:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/math/mat2d.hpp:4:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/math/vec2d.hpp:4:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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.
[5/64] Building CXX object CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive_text/rive_text.cpp.o
FAILED: CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive_text/rive_text.cpp.o
/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/skia/renderer/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive_text/rive_text.cpp.o -MF CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive_text/rive_text.cpp.o.d -o CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive_text/rive_text.cpp.o -c /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive_text/rive_text.cpp
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive_text/rive_text.cpp:4:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/text/font_hb.hpp:4:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/factory.hpp:8:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/renderer.hpp:10:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/command_path.hpp:4:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/math/mat2d.hpp:4:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/math/vec2d.hpp:4:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive_text/rive_text.cpp:4:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/text/font_hb.hpp:4:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/factory.hpp:9:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/text_engine.hpp:11:
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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::CopyConstructArray(ptr, ptr + size, m_ptr);
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/simple_array.hpp:116:43: note: in instantiation of member function 'rive::SimpleArray::SimpleArray' requested here
constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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::CopyConstructArray(ptr, ptr + size, m_ptr);
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/simple_array.hpp:116:43: note: in instantiation of member function 'rive::SimpleArray::SimpleArray' requested here
constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<float, true>::CopyConstructArray' requested here
SimpleArrayHelper::CopyConstructArray(ptr, ptr + size, m_ptr);
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/simple_array.hpp:116:43: note: in instantiation of member function 'rive::SimpleArray::SimpleArray' requested here
constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
^
4 errors generated.
[6/64] Building CXX object CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer-serialize.cc.o
FAILED: CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer-serialize.cc.o
/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/skia/renderer/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer-serialize.cc.o -MF CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer-serialize.cc.o.d -o CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer-serialize.cc.o -c /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer-serialize.cc
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer-serialize.cc:27:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src/hb.hh:475:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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.
[7/64] Building CXX object CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/line_breaker.cpp.o
FAILED: CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/line_breaker.cpp.o
/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/skia/renderer/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/line_breaker.cpp.o -MF CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/line_breaker.cpp.o.d -o CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/line_breaker.cpp.o -c /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/line_breaker.cpp
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/line_breaker.cpp:5:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/text_engine.hpp:8:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/math/raw_path.hpp:8:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/span.hpp:8:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/line_breaker.cpp:5:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/text_engine.hpp:11:
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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::CopyConstructArray(ptr, ptr + size, m_ptr);
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/simple_array.hpp:116:43: note: in instantiation of member function 'rive::SimpleArray::SimpleArray' requested here
constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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::CopyConstructArray(ptr, ptr + size, m_ptr);
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/simple_array.hpp:116:43: note: in instantiation of member function 'rive::SimpleArray::SimpleArray' requested here
constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<float, true>::CopyConstructArray' requested here
SimpleArrayHelper::CopyConstructArray(ptr, ptr + size, m_ptr);
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/simple_array.hpp:116:43: note: in instantiation of member function 'rive::SimpleArray::SimpleArray' requested here
constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
^
4 errors generated.
[8/64] Building CXX object CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/math/raw_path.cpp.o
FAILED: CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/math/raw_path.cpp.o
/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/skia/renderer/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/math/raw_path.cpp.o -MF CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/math/raw_path.cpp.o.d -o CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/math/raw_path.cpp.o -c /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/math/raw_path.cpp
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/math/raw_path.cpp:5:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/math/raw_path.hpp:8:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/span.hpp:8:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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.
[9/64] Building CXX object CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-common.cc.o
FAILED: CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-common.cc.o
/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/skia/renderer/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-common.cc.o -MF CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-common.cc.o.d -o CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-common.cc.o -c /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-common.cc
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-common.cc:29:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src/hb.hh:475:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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.
[10/64] Building CXX object CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-aat-map.cc.o
FAILED: CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-aat-map.cc.o
/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/skia/renderer/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-aat-map.cc.o -MF CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-aat-map.cc.o.d -o CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-aat-map.cc.o -c /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-aat-map.cc
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-aat-map.cc:29:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src/hb.hh:475:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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.
[11/64] Building CXX object CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer-verify.cc.o
FAILED: CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer-verify.cc.o
/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/skia/renderer/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer-verify.cc.o -MF CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer-verify.cc.o.d -o CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer-verify.cc.o -c /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer-verify.cc
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer-verify.cc:27:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src/hb.hh:475:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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.
[12/64] Building CXX object CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/font_hb.cpp.o
FAILED: CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/font_hb.cpp.o
/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/skia/renderer/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/font_hb.cpp.o -MF CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/font_hb.cpp.o.d -o CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/font_hb.cpp.o -c /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/font_hb.cpp
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/font_hb.cpp:5:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/text_engine.hpp:8:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/math/raw_path.hpp:8:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/span.hpp:8:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/font_hb.cpp:442: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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/font_hb.cpp:442:46: note: insert an explicit cast to silence this issue
text.size()};
^~~~~~~~~~~
static_cast( )
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/rive-cpp/src/text/font_hb.cpp:5:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/text_engine.hpp:11:
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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::CopyConstructArray(ptr, ptr + size, m_ptr);
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/simple_array.hpp:116:43: note: in instantiation of member function 'rive::SimpleArray::SimpleArray' requested here
constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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::CopyConstructArray(ptr, ptr + size, m_ptr);
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/simple_array.hpp:116:43: note: in instantiation of member function 'rive::SimpleArray::SimpleArray' requested here
constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/simple_array.hpp:87:31: note: in instantiation of member function 'rive::SimpleArrayHelper<float, true>::CopyConstructArray' requested here
SimpleArrayHelper::CopyConstructArray(ptr, ptr + size, m_ptr);
^
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include/rive/simple_array.hpp:116:43: note: in instantiation of member function 'rive::SimpleArray::SimpleArray' requested here
constexpr SimpleArray(Container& c) : SimpleArray(c.data(), c.size())
^
5 errors generated.
[13/64] Building CXX object CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer.cc.o
FAILED: CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer.cc.o
/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/skia/renderer/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer.cc.o -MF CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer.cc.o.d -o CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer.cc.o -c /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer.cc
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer.cc:30:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src/hb-buffer.hh:33:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src/hb.hh:475:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer.cc:86:3: error: cast from pointer to smaller type 'intptr_t' (aka 'int') loses information
(intptr_t) (p->language);
^~~~~~~~~~~~~~~~~~~~~~~~
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-buffer.cc:250:11: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
assert ((uintptr_t) pos % sizeof (scratch_buffer_t) == 0);
^~~~~~~~~~~~~~~
/snap/flutter/current/usr/include/assert.h:93:27: note: expanded from macro 'assert'
(static_cast (expr)
^~~~
3 errors generated.
[14/64] Building CXX object CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-aat-layout.cc.o
FAILED: CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-aat-layout.cc.o
/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/juan/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Drive_text_EXPORTS -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/skia/renderer/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/rive-cpp/include -I/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-aat-layout.cc.o -MF CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-aat-layout.cc.o.d -o CMakeFiles/rive_text.dir/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-aat-layout.cc.o -c /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-aat-layout.cc
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/ios/harfbuzz/src/hb-aat-layout.cc:28:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../ios/harfbuzz/src/hb.hh:475:
In file included from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/../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/juan/Android/Sdk/cmake/3.22.1/bin/ninja
-C
/home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/android/.cxx/Debug/4x5n252a/arm64-v8a
rive_text
from /home/juan/.pub-cache/hosted/pub.dev/rive_common-0.2.7/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
Running Gradle task 'assembleDebug'... 8.3s
Error: Gradle task assembleDebug failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions