Hello! I'm very impressed by nim language. I used to use common lisp for a while and nim's macroses makes me feel better. Now I'm trying to compile godot-nim-stub for phones. Task for iOS was not very difficult, but I can't say so for android.
My own godot-nim-stub fork is https://github.com/DrMoriarty/godot-nim-stub Really I changed only this file: https://github.com/DrMoriarty/godot-nim-stub/blob/master/nakefile.nim
nake build-android fails with error:
In file included from /Users/vasya/projects/godotframework/godot-nim-stub/src/.nimcache/android/arm/stdlib_posix.c:9:
/Users/vasya/.choosenim/toolchains/nim-0.18.0/lib/nimbase.h:477:64: error: 'Nim_and_C_compiler_disagree_on_target_architecture' declared as an array with a negative size
typedef int Nim_and_C_compiler_disagree_on_target_architecture[sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
I saved full compile log in https://gist.github.com/DrMoriarty/9043ba3bdae8f12e5f101e435435aa83
I tried to use --os:android --cpu:arm and --os:linux -d:android --cpu:arm. All variants gets the same error. My OS: Macosx 10.13.4 Nim Compiler Version 0.18.0 [MacOSX: amd64] nimble v0.8.10 compiled at 2018-06-24 22:04:50 Godot: 3.0.4 Android NDK: r14b
I googled around but didn't find any worked solution.
From the error message, it's usually about incompatible compiler, cmiiw.
Was the c compiler correctly used in toolchains you pointed at? (I thought maybe that's the case since the error message mentioned you used clang while the ndk usually uses gcc)