when i build debug android package, it is ok, but build release android package, it is fail.
last i have found soluction, add “LOCAL_ARM_MODE := arm” to /runtime-scr/proj.android/jni/Android.mk /js-bindings/bindings/Android.mk. it will be compile success.
but i don’t know why use 32bit order set will be ok.
@pandamicro@ludingping
why cocos2d-x js 3.1 rc0 compile android release version show this "error: relocation overflow in R_ARM_THM_CALL " and compile debug version is ok . after add “LOCAL_ARM_MODE := arm”, compile release version success. what different between arm and thumd ?
ARM processors have 2 general instruction sets that they support: “ARM” and “Thumb”. Though there are different flavors of both, ARM instructions are 32 bits each and Thumb instructions are 16 bits. The main difference between the two is that ARM instructions have the possibility to do more in a single instruction than Thumb can. For example a single ARM instruction can add one register to another register, while performing a left shift on the second register. In Thumb one instruction would have to do the shift, then a second instruction would do the addition.
…
We finally solved the problem, a external dependency libcurl haven’t been correctly compiled. So we have recompiled it and you can refer to this PR to have all necessary changes in external curl folder:
Using ndk-r10c to solve issues with sscanf that make LabelBMFont and other freezes happen in Lollipop with r9d. I don’t think r9d is an option for me (though it does compile successfully there).
Using cocos2d-x fork as of yesterday:
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ios:668: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/iosfwd:123: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/iosfwd:123: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ostream:479: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ios:734: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ios:524: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ostream:490: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/iosfwd:123: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/iosfwd:123: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ostream:294: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ostream:294: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ostream:294: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ostream:294: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/iosfwd:123: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/iosfwd:123: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ios:524: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ios:524: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/ostream:973: error: relocation overflow in R_ARM_THM_CALL
jni/../../cocos2d/cocos/platform/android/jni/TouchesJni.cpp:90: error: relocation overflow in R_ARM_THM_CALL
jni/../../cocos2d/cocos/ui/UILayout.cpp:51: error: relocation overflow in R_ARM_THM_CALL
jni/../../cocos2d/cocos/ui/UIScrollView.cpp:38: error: relocation overflow in R_ARM_THM_CALL
/Users/Justin/Desktop/tools/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/map:1055: error: relocation overflow in R_ARM_THM_CALL
jni/../../cocos2d/cocos/./deprecated/CCDeprecated.cpp:578: error: relocation overflow in R_ARM_THM_CALL
jni/../../cocos2d/cocos/./deprecated/CCDeprecated.cpp:579: error: relocation overflow in R_ARM_THM_CALL
jni/../../cocos2d/cocos/./deprecated/CCDeprecated.cpp:580: error: relocation overflow in R_ARM_THM_CALL
jni/../../cocos2d/cocos/./deprecated/CCDeprecated.cpp:581: error: relocation overflow in R_ARM_THM_CALL
jni/../../cocos2d/cocos/./deprecated/CCDeprecated.cpp:582: error: relocation overflow in R_ARM_THM_CALL
jni/../../cocos2d/cocos/./deprecated/CCDeprecated.cpp:583: error: relocation overflow in R_ARM_THM_CALL
jni/../../cocos2d/cocos/./deprecated/CCDeprecated.cpp:584: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/iostream.cpp:34: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4685: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4675: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
make: Leaving directory `/Users/Justin/Desktop/dev/OneThousandWaysToKill/proj.android'
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
The Selected NDK toolchain version was 4.8 !
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4627: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4595: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4557: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4557: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4557: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4557: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4557: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4557: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4557: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4557: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4557: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4557: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4557: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4557: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4557: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4557: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4535: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4535: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4535: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4535: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4535: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4535: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4535: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4535: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4535: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4535: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4535: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4535: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4535: error: relocation overflow in R_ARM_THM_CALL
/tmp/ndk-user/tmp/build-libc++/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/locale.cpp:4535: error: relocation overflow in R_ARM_THM_CALL
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [obj/local/armeabi/libcocos2dcpp.so] Error 1
Those errors seem to trace back specifically to cocos2d-x code.
Even reverting my Application.mk to the default isn’t helping:
APP_STL := c++_static
NDK_TOOLCHAIN_VERSION=clang
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
APP_LDFLAGS := -latomic
# Tried using the following line
LOCAL_ARM_MODE := arm
ifeq ($(NDK_DEBUG),1)
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1
APP_OPTIM := debug
else
APP_CPPFLAGS += -DNDEBUG
APP_OPTIM := release
endif
I have the same issues in Cocos Engine 1.0 Preview with Cocos2d-x 3.3rc0.
C++ Helloworld, Android
NDK r10d
error of libcurl without fpic
already add LOCAL_ARM_MODE := arm to Android.mk in jni folder.