With latest android-ndk and the information from this [post](https://forum.nim-lang.org/t/3575#22318) #!/bin/sh mkdir tmp cd tmp cp ../test.nim ./ git clone https://github.com/nim-lang/nim wget https://dl.google.com/android/repository/android-ndk-r19c-linux-x86_64.zip unzip android-ndk-r19c-linux-x86_64.zip nim c --os:android --cpu=arm --os:android --compileOnly test.nim NDK="/home/hdias/tmp/android-ndk-r19c" $NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi28-clang \ -I$NDK/toolchains/llvm/prebuilt/linux-x86_64/sysroot \ -I /home/hdias/tmp/nim/lib -fPIE -pie \ -o /home/hdias/tmp/test.bin /home/hdias/.cache/nim/test_d/test.c /home/hdias/.cache/nim/test_d/stdlib_system.c adb push test.bin /data/local/tmp/test.bin adb shell /data/local/tmp/test.bin Run
I get this error with cpu=arm: reloc_library[1307]: 4594 cannot locate '__register_atfork'... CANNOT LINK EXECUTABLE Run With cpu=arm64 I get: not executable: magic 7F45 Run