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

android-16 is not supported for arm64-v8a. Using minimum supported LP64 version 21. #23

Open
SRoddisEdeka opened this issue Mar 8, 2024 · 0 comments

Comments

@SRoddisEdeka
Copy link

SRoddisEdeka commented Mar 8, 2024

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.

BUILD FAILED in 4s
Error: Gradle task assembleAzdevelopmentDebug failed with exit code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant