dargon2
dargon2 copied to clipboard
android-16 is not supported for arm64-v8a. Using minimum supported LP64 version 21.
Hey,
i get the following error when building my flutter app on ubuntu.
Seems like the min NDK version needs to be set.
See: android-16 is not supported for arm64-v8a. Using minimum supported LP64 version 21.
When i pin the NDK version in the cache files to "21", the build runs fine. Any ideas?
Exeption:
```FAILURE:` Build failed with an exception.
- What went wrong: Execution failed for task ':dargon2_flutter_mobile:configureCMakeDebug[arm64-v8a]'.
[CXX1429] error when building with cmake using /home/sroddis/.pub-cache/hosted/pub.dev/dargon2_flutter_mobile-3.3.0/android/CMakeLists.txt: -- android-16 is not supported for arm64-v8a. Using minimum supported LP64 version 21. -- Android: Targeting API '21' with architecture 'arm64', ABI 'arm64-v8a', and processor 'aarch64' -- Android: Selected unified Clang toolchain -- The C compiler identification is Clang 12.0.8 -- The CXX compiler identification is Clang 12.0.8 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Check for working C compiler: /home/sroddis/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- Check for working C compiler: /home/sroddis/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - broken -- Configuring incomplete, errors occurred! See also "/home/sroddis/.pub-cache/hosted/pub.dev/dargon2_flutter_mobile-3.3.0/android/.cxx/Debug/x6b10a17/arm64-v8a/CMakeFiles/CMakeOutput.log". See also "/home/sroddis/.pub-cache/hosted/pub.dev/dargon2_flutter_mobile-3.3.0/android/.cxx/Debug/x6b10a17/arm64-v8a/CMakeFiles/CMakeError.log".
C++ build system [configure] failed while executing:
/usr/bin/cmake
-H/home/sroddis/.pub-cache/hosted/pub.dev/dargon2_flutter_mobile-3.3.0/android
-DCMAKE_SYSTEM_NAME=Android
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_SYSTEM_VERSION=16
-DANDROID_PLATFORM=android-16
-DANDROID_ABI=arm64-v8a
-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a
-DANDROID_NDK=/home/sroddis/Android/Sdk/ndk/23.1.7779620
-DCMAKE_ANDROID_NDK=/home/sroddis/Android/Sdk/ndk/23.1.7779620
-DCMAKE_TOOLCHAIN_FILE=/home/sroddis/Android/Sdk/ndk/23.1.7779620/build/cmake/android.toolchain.cmake
-DCMAKE_MAKE_PROGRAM=/home/sroddis/Android/Sdk/cmake/3.22.1/bin/ninja
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/sroddis/source/eddi/nemo/apps/nmww/build/dargon2_flutter_mobile/intermediates/cxx/Debug/x6b10a17/obj/arm64-v8a
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/home/sroddis/source/eddi/nemo/apps/nmww/build/dargon2_flutter_mobile/intermediates/cxx/Debug/x6b10a17/obj/arm64-v8a
-DCMAKE_BUILD_TYPE=Debug
-B/home/sroddis/.pub-cache/hosted/pub.dev/dargon2_flutter_mobile-3.3.0/android/.cxx/Debug/x6b10a17/arm64-v8a
-GNinja
from /home/sroddis/.pub-cache/hosted/pub.dev/dargon2_flutter_mobile-3.3.0/android
CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message):
The C compiler
"/home/sroddis/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/sroddis/.pub-cache/hosted/pub.dev/dargon2_flutter_mobile-3.3.0/android/.cxx/Debug/x6b10a17/arm64-v8a/CMakeFiles/CMakeTmp
Run Build Command(s):/home/sroddis/Android/Sdk/cmake/3.22.1/bin/ninja cmTC_7068c && [1/2] Building C object CMakeFiles/cmTC_7068c.dir/testCCompiler.c.o
[2/2] Linking C executable cmTC_7068c
FAILED: cmTC_7068c
: && /home/sroddis/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android21 --sysroot=/home/sroddis/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/sysroot -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fexceptions -O2 -g -DNDEBUG -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Qunused-arguments -Wl,--no-undefined -Wl,--gc-sections -B/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9 -B/snap/flutter/current/usr/lib/x86_64-linux-gnu -B/snap/flutter/current/lib/x86_64-linux-gnu -B/snap/flutter/current/usr/lib/ -L/snap/flutter/current/usr/lib/gcc/x86_64-linux-gnu/9 -L/snap/flutter/current/usr/lib/x86_64-linux-gnu -L/snap/flutter/current/lib/x86_64-linux-gnu -L/snap/flutter/current/usr/lib/ -lblkid -lgcrypt -llzma -llz4 -lgpg-error -luuid -lpthread -ldl -lepoxy -lfontconfig CMakeFiles/cmTC_7068c.dir/testCCompiler.c.o -o cmTC_7068c -latomic -lm && :
ld: error: --fix-cortex-a53-843419 is only supported on AArch64 targets
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first): CMakeLists.txt:10 (project)
- 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 4s Error: Gradle task assembleAzdevelopmentDebug failed with exit code 1