Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution failed for task ':iris_method_channel:buildCMakeDebug[arm64-v8a]'. #148

Open
darshan1226 opened this issue Jul 17, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@darshan1226
Copy link

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

com.android.ide.common.process.ProcessException: ninja: Entering directory `/home/stack/.pub-cache/hosted/pub.dev/iris_method_channel-1.1.0/android/.cxx/Debug/636m311p/arm64-v8a'
[1/2] Building CXX object CMakeFiles/iris_method_channel.dir/iris_event.cc.o
FAILED: CMakeFiles/iris_method_channel.dir/iris_event.cc.o
/home/stack/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --gcc-toolchain=/home/stack/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/stack/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DDART_SHARED_LIB -Diris_method_channel_EXPORTS -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/iris_method_channel.dir/iris_event.cc.o -MF CMakeFiles/iris_method_channel.dir/iris_event.cc.o.d -o CMakeFiles/iris_method_channel.dir/iris_event.cc.o -c /home/stack/.pub-cache/hosted/pub.dev/iris_method_channel-1.1.0/src/iris_event.cc
In file included from /home/stack/.pub-cache/hosted/pub.dev/iris_method_channel-1.1.0/src/iris_event.cc:6:
/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/stack/.pub-cache/hosted/pub.dev/iris_method_channel-1.1.0/src/iris_event.cc:90:17: error: use of undeclared identifier 'memcpy'; did you mean 'wmemcpy'?
memcpy(abuffer, obuffer, abufferLength);
^~~~~~
wmemcpy
/snap/flutter/current/usr/include/wchar.h:262:17: note: 'wmemcpy' declared here
extern wchar_t *wmemcpy (wchar_t *__restrict __s1,
^
/home/stack/.pub-cache/hosted/pub.dev/iris_method_channel-1.1.0/src/iris_event.cc:90:24: error: cannot initialize a parameter of type 'wchar_t *' with an lvalue of type 'uint8_t *' (aka 'unsigned char *')
memcpy(abuffer, obuffer, abufferLength);
^~~~~~~
/snap/flutter/current/usr/include/wchar.h:262:46: note: passing argument to parameter '__s1' here
extern wchar_t *wmemcpy (wchar_t *__restrict __s1,
^
3 errors generated.
ninja: build stopped: subcommand failed.

C++ build system [build] failed while executing:
/home/stack/Android/Sdk/cmake/3.18.1/bin/ninja
-C
/home/stack/.pub-cache/hosted/pub.dev/iris_method_channel-1.1.0/android/.cxx/Debug/636m311p/arm64-v8a
iris_method_channel
from /home/stack/.pub-cache/hosted/pub.dev/iris_method_channel-1.1.0/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.

@darshan1226 darshan1226 added the bug Something isn't working label Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants