Failed Android build: "error: relocation overflow in R_ARM_THM_CALL"

I have the same issue in cocos2d-js 3.3. android-21 ndk10c

Here my log:

...
/tmp/ndk-user/tmp/gnu-libstdc++/static-armeabithumb-4.9/include/ext/concurrence.h:219: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/gnu-libstdc++/static-armeabithumb-4.9/include/bits/basic_string.h:249: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/gnu-libstdc++/static-armeabithumb-4.9/include/bits/basic_string.h:249: error: relocation overflow in R_ARM_THM_CALL
collect2.exe: error: ld returned 1 exit status
make.exe: *** [obj/local/armeabi/libcocos2djs.so] Error 1
make.exe: Leaving directory `.../frameworks/runtime-src/proj.android'

Iā€™m trying to figure this out but no luck until now.

@festival what is your log?

@festival i solved just append LOCAL_ARM_MODE := arm in
../frameworks/js-bindings/bindings/Android.mk and
../frameworks/runtime-scr/proj.android/jni/Android.mk.

I not tested with x86, but who cares?

Look at http://gamedevtodied.blogspot.com.br/2014/11/cocos2d-js-v3x-apk-build-failed.html, and the posts above ā€¦

Now i facing this problem Building apk command error (THE QUOTE ERROR), but it a complete different one.

The solution with NDK 10d is:

LOCAL_ARM_MODE := arm

plus (!!)

target=android-19

in project.properties.

Then it compiles for target android-19 and it works