rive-app / rive-flutter

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

Bug: Apk Build fails on Ubuntu #309

Open riccardocescon opened 1 year ago

riccardocescon commented 1 year ago

Description

I am building a Pipeline to my GitLab server that is Ubuntu in order to built the apk. But once it runs flutter build apk, it loads everything and then fails on rive (rive_common) package with the error message: /snap/flutter/current/usr/include/bits/wchar2.h:448:3: error: "Assumed value of MB_LEN_MAX wrong"

Steps To Reproduce

Steps to reproduce the behavior:

  1. Configure Flutter to linux
  2. launch flutter build apk
  3. See error ⚠️

Expected behavior

Build success

Flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.11, on Ubuntu 22.04.1 LTS 5.15.0-69-generic, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] Connected device (1 available)
[✓] HTTP Host Availability
! Doctor found issues in 2 categories.

Error Log

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':rive_common:buildCMakeRelWithDebInfo'.
> Build command failed.
  Error while executing process /home/android-sdk/cmake/3.10.2.4988404/bin/ninja with arguments {-C /home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/android/.cxx/RelWithDebInfo/305a4l1t/armeabi-v7a rive_text}
  ninja: Entering directory `/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/android/.cxx/RelWithDebInfo/305a4l1t/armeabi-v7a'
  [1/56] Building CXX object CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-serialize.cc.o
  FAILED: CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-serialize.cc.o 
  /home/android-sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi19 --sysroot=/home/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 -march=armv7-a -mthumb -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/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-serialize.cc.o -MF CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-serialize.cc.o.d -o CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-serialize.cc.o -c /home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-serialize.cc
  In file included from /home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-serialize.cc:27:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:188:
  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/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-serialize.cc:27:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:472:
  In file included from ../../../../../ios/harfbuzz/src/hb-meta.hh:32:
  In file included from /snap/flutter/current/usr/include/c++/9/memory:72:
  In file included from /snap/flutter/current/usr/include/c++/9/iosfwd: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"
    ^
  2 errors generated.
  [2/56] Building CXX object CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-verify.cc.o
  FAILED: CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-verify.cc.o 
  /home/android-sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi19 --sysroot=/home/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 -march=armv7-a -mthumb -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/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-verify.cc.o -MF CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-verify.cc.o.d -o CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-verify.cc.o -c /home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-verify.cc
  In file included from /home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-verify.cc:27:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:188:
  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/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer-verify.cc:27:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:472:
  In file included from ../../../../../ios/harfbuzz/src/hb-meta.hh:32:
  In file included from /snap/flutter/current/usr/include/c++/9/memory:72:
  In file included from /snap/flutter/current/usr/include/c++/9/iosfwd: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"
    ^
  2 errors generated.
  [3/56] Building CXX object CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-blob.cc.o
  FAILED: CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-blob.cc.o 
  /home/android-sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi19 --sysroot=/home/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 -march=armv7-a -mthumb -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/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-blob.cc.o -MF CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-blob.cc.o.d -o CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-blob.cc.o -c /home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-blob.cc
  In file included from /home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-blob.cc:28:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:188:
  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/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-blob.cc:28:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:472:
  In file included from ../../../../../ios/harfbuzz/src/hb-meta.hh:32:
  In file included from /snap/flutter/current/usr/include/c++/9/memory:72:
  In file included from /snap/flutter/current/usr/include/c++/9/iosfwd: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"
    ^
  2 errors generated.
  [4/56] Building CXX object CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-map.cc.o
  FAILED: CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-map.cc.o 
  /home/android-sdk/ndk/25.1.89[373](http://10.4.2.9/informatica/kube-flutter/-/jobs/600#L373)93/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi19 --sysroot=/home/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 -march=armv7-a -mthumb -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/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-map.cc.o -MF CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-map.cc.o.d -o CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-map.cc.o -c /home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-map.cc
  In file included from /home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-map.cc:29:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:188:
  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/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-map.cc:29:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:472:
  In file included from ../../../../../ios/harfbuzz/src/hb-meta.hh:32:
  In file included from /snap/flutter/current/usr/include/c++/9/memory:72:
  In file included from /snap/flutter/current/usr/include/c++/9/iosfwd: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"
    ^
  2 errors generated.
  [5/56] Building CXX object CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer.cc.o
  FAILED: CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer.cc.o 
  /home/android-sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi19 --sysroot=/home/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 -march=armv7-a -mthumb -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/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer.cc.o -MF CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer.cc.o.d -o CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer.cc.o -c /home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer.cc
  In file included from /home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer.cc:30:
  In file included from ../../../../../ios/harfbuzz/src/hb-buffer.hh:33:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:188:
  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/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-buffer.cc:30:
  In file included from ../../../../../ios/harfbuzz/src/hb-buffer.hh:33:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:472:
  In file included from ../../../../../ios/harfbuzz/src/hb-meta.hh:32:
  In file included from /snap/flutter/current/usr/include/c++/9/memory:72:
  In file included from /snap/flutter/current/usr/include/c++/9/iosfwd: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"
    ^
  2 errors generated.
  [6/56] Building CXX object CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-layout.cc.o
  FAILED: CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-layout.cc.o 
  /home/android-sdk/ndk/25.1.8937[393](http://10.4.2.9/informatica/kube-flutter/-/jobs/600#L393)/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi19 --sysroot=/home/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 -march=armv7-a -mthumb -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/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-layout.cc.o -MF CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-layout.cc.o.d -o CMakeFiles/rive_text.dir/home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-layout.cc.o -c /home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-layout.cc
  In file included from /home/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-layout.cc:28:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:188:
  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/mgmt/.pub-cache/hosted/pub.dev/rive_common-0.0.2/ios/harfbuzz/src/hb-aat-layout.cc:28:
  In file included from ../../../../../ios/harfbuzz/src/hb.hh:472:
  In file included from ../../../../../ios/harfbuzz/src/hb-meta.hh:32:
  In file included from /snap/flutter/current/usr/include/c++/9/memory:72:
  In file included from /snap/flutter/current/usr/include/c++/9/iosfwd: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"
    ^
  2 errors generated.
  ninja: build stopped: subcommand failed.
* 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 32s
Running Gradle task 'assembleRelease'...                           93.1s
Gradle task assembleRelease failed with exit code 1
ERROR: Job failed: Process exited with status 1
riccardocescon commented 1 year ago

@luigi-rosso Are there any news?

bogdannedelcu commented 1 year ago

Hello @riccardocescon , did you sort this out?

I have the same issue on Redhat:

What went wrong: Execution failed for task ':rive_common:externalNativeBuildRelease'.

Build command failed. Error while executing process /opt/android-sdk-linux/cmake/3.10.2.4988404/bin/ninja with arguments {-C /home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/android/.cxx/cmake/release/armeabi-v7a rive_text} ninja: Entering directory `/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/android/.cxx/cmake/release/armeabi-v7a' [1/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/rive-cpp/src/rive_counter.cpp.o [2/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/rive-cpp/src/math/mat2d.cpp.o [3/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/rive-cpp/src/renderer.cpp.o [4/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/rive-cpp/src/text/line_breaker.cpp.o [5/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/rive_text/rive_text.cpp.o [6/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/rive-cpp/src/text/text_engine.cpp.o [7/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc.o FAILED: CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc.o /opt/android-sdk-linux/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi19 --sysroot=/opt/android-sdk-linux/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 -march=armv7-a -mthumb -Wformat -Werror=format-security -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -O3 -DNDEBUG -fPIC -MD -MT CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc.o -MF CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc.o.d -o CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc.o -c /home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc In file included from /home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/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/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/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"

^ 2 errors generated.

riccardocescon commented 1 year ago

Hello @riccardocescon , did you sort this out?

I have the same issue on Redhat:

What went wrong: Execution failed for task ':rive_common:externalNativeBuildRelease'.

Build command failed. Error while executing process /opt/android-sdk-linux/cmake/3.10.2.4988404/bin/ninja with arguments {-C /home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/android/.cxx/cmake/release/armeabi-v7a rive_text} ninja: Entering directory `/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/android/.cxx/cmake/release/armeabi-v7a' [1/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/rive-cpp/src/rive_counter.cpp.o [2/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/rive-cpp/src/math/mat2d.cpp.o [3/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/rive-cpp/src/renderer.cpp.o [4/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/rive-cpp/src/text/line_breaker.cpp.o [5/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/rive_text/rive_text.cpp.o [6/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/rive-cpp/src/text/text_engine.cpp.o [7/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc.o FAILED: CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc.o /opt/android-sdk-linux/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi19 --sysroot=/opt/android-sdk-linux/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 -march=armv7-a -mthumb -Wformat -Werror=format-security -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -O3 -DNDEBUG -fPIC -MD -MT CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc.o -MF CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc.o.d -o CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc.o -c /home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc In file included from /home/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/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/gitlab-runner/.pub-cache/hosted/pub.dev/rive_common-0.0.5/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"

^

2 errors generated.

Sadly i haven't find any solution to this, i am still waiting for a response

bogdannedelcu commented 1 year ago

A bit strange that the build is compiling IOS files, although I am building a appbundle, so just the android version.

On Tue, Jun 27, 2023 at 9:17 AM Riccardo Cescon @.***> wrote:

Hello @riccardocescon https://github.com/riccardocescon , did you sort this out?

I have the same issue on Redhat:

What went wrong: Execution failed for task ':rive_common:externalNativeBuildRelease'.

Build command failed. Error while executing process /opt/android-sdk-linux/cmake/3.10.2.4988404/bin/ninja with arguments {-C /home/gitlab-runner/.pub-cache/hosted/ pub.dev/rive_common-0.0.5/android/.cxx/cmake/release/armeabi-v7a rive_text} ninja: Entering directory `/home/gitlab-runner/.pub-cache/hosted/ pub.dev/rive_common-0.0.5/android/.cxx/cmake/release/armeabi-v7a' [1/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/ pub.dev/rive_common-0.0.5/ios/rive-cpp/src/rive_counter.cpp.o [2/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/ pub.dev/rive_common-0.0.5/ios/rive-cpp/src/math/mat2d.cpp.o [3/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/ pub.dev/rive_common-0.0.5/ios/rive-cpp/src/renderer.cpp.o [4/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/ pub.dev/rive_common-0.0.5/ios/rive-cpp/src/text/line_breaker.cpp.o [5/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/ pub.dev/rive_common-0.0.5/ios/rive_text/rive_text.cpp.o [6/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/ pub.dev/rive_common-0.0.5/ios/rive-cpp/src/text/text_engine.cpp.o [7/65] Building CXX object CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/ pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc.o FAILED: CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/ pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc.o /opt/android-sdk-linux/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi19 --sysroot=/opt/android-sdk-linux/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 -march=armv7-a -mthumb -Wformat -Werror=format-security -DWITH_RIVE_TEXT -DHAVE_OT -DHB_NO_FALLBACK_SHAPE -DHB_NO_WIN1256 -std=c++11 -O3 -DNDEBUG -fPIC -MD -MT CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/ pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc.o -MF CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/ pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc.o.d -o CMakeFiles/rive_text.dir/home/gitlab-runner/.pub-cache/hosted/ pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc.o -c /home/gitlab-runner/.pub-cache/hosted/ pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc In file included from /home/gitlab-runner/.pub-cache/hosted/ pub.dev/rive_common-0.0.5/ios/harfbuzz/src/hb-aat-map.cc:29: In file included from ../../../../../ios/harfbuzz/src/hb.hh:190 https://devops-git.pscid.local/dev/pscid-mobile/-/jobs/24882#L190: 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/gitlab-runner/.pub-cache/hosted/ pub.dev/rive_common-0.0.5/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"

^

2 errors generated.

Sadly i haven't find any solution to this, i am still waiting for a response

— Reply to this email directly, view it on GitHub https://github.com/rive-app/rive-flutter/issues/309#issuecomment-1608863600, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAJSJHLTFOXEHYT3N25S4LXNJ3HZANCNFSM6AAAAAAXA7HN4Q . You are receiving this because you commented.Message ID: @.***>

Joao-Victor-EM commented 7 months ago

I solve that using the flutter manual installation, I'm using a wsl Ubuntu fo cicd and was using the flutter installed with snap, so I change to the manual installation and it just fix it