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 Cross-compilation. #158

Open
ethanhs opened this issue Oct 15, 2016 · 4 comments · May be fixed by #262 or #321
Open

Android Cross-compilation. #158

ethanhs opened this issue Oct 15, 2016 · 4 comments · May be fixed by #262 or #321
Labels
Project: crosscompilation crosscompilation specific Type: Enhancement Improvement to functionality

Comments

@ethanhs
Copy link

ethanhs commented Oct 15, 2016

I am very interested in getting this to work as a method to compile for android. Currently, with only a few minor patches, it seems to be almost there, however the extensions seem not to be linking to libpython.

Based on the log below, it would appear that -lm in the command means that Python's library name is not being handled correctly when cross compiling. I can't really find where the script handles this. Any assistance would be appreciated.

LOG:

ethanhs@ethanhs:~/python-cmake-android/python-build$ /home/ethanhs/Android/Sdk/cmake/3.6.3155560/bin/cmake .. -G"Android Gradle - Ninja" -DANDROID_ABI=armeabi -DANDROID_NDK=/home/ethanhs/Android/Sdk/ndk-bundle -DCMAKE_INSTALL_PREFIX=../python_install -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=/home/ethanhs/Android/Sdk/cmake/3.6.3155560/bin/ninja -DCMAKE_TOOLCHAIN_FILE=/home/ethanhs/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=21 -DCMAKE_CXX_FLAGS=-std=c++11 -DPYTHON_VERSION=3.5.2 -DENABLE_CODECS_JP=OFF -DENABLE_CODECS_KR=OFF -DENABLE_CODECS_TW=OFF -DENABLE_MULTIBYTECODEC=OFF -DENABLE_CODECS_CN=OFF -DENABLE_CODECS_HK=OFF  -DENABLE_CODECS_ISO2022=OFF
-- SRC_DIR: /home/ethanhs/python-cmake-android/Python-3.5.2
-- PY_VERSION: 3.5.2
-- Patching CPython for Android cross compilation
-- git apply on /home/ethanhs/python-cmake-android/patches/Python3.5/python-3.5-android-libmpdec.patch returned with value 0
-- git apply on /home/ethanhs/python-cmake-android/patches/Python3.5/python-3.5-android-locale.patch returned with value 0
-- git apply on /home/ethanhs/python-cmake-android/patches/Python3.5/python-3.5-android-misc.patch returned with value 0
-- git apply on /home/ethanhs/python-cmake-android/patches/Python3.5/python-3.5-android-missing-getdents64-definition.patch returned with value 0
-- git apply on /home/ethanhs/python-cmake-android/patches/Python3.5/python-3.5-python-misc.patch returned with value 0
-- git apply on /home/ethanhs/python-cmake-android/patches/Python3.5/python-3.5-setup.patch returned with value 0
-- The system name is Android
-- The system processor is armv5te
-- The system version is 21
-- Could NOT find BZip2 (missing:  BZIP2_LIBRARIES BZIP2_INCLUDE_DIR) 
-- Could NOT find Curses (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH) 
-- Could NOT find EXPAT (missing:  EXPAT_LIBRARY EXPAT_INCLUDE_DIR) 
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing:  OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR) (Required is at least version "0.9.7")
-- Could NOT find TCL (missing:  TCL_LIBRARY TCL_INCLUDE_PATH) 
-- Could NOT find TCLTK (missing:  TCL_LIBRARY TCL_INCLUDE_PATH TK_LIBRARY TK_INCLUDE_PATH) 
-- Could NOT find TK (missing:  TK_LIBRARY TK_INCLUDE_PATH) 
-- Checking WITH_HASH_ALGORITHM option
-- Checking WITH_HASH_ALGORITHM option [default]
-- Checking ABIFLAGS - m
-- Checking SOABI - cpython-35m-armv5te-android
-- ptmx: HAVE_DEV_PTMX-NOTFOUND ptc: HAVE_DEV_PTC-NOTFOUND
-- Checking for XOPEN_SOURCE
-- Checking for XOPEN_SOURCE - yes
-- Checking for Large File Support
-- Checking for Large File Support - yes
-- Performing Test HAVE_MMAP_DEV_ZERO
-- Performing Test HAVE_MMAP_DEV_ZERO - Failed
-- Performing Test HAVE_BROKEN_NICE
-- Performing Test HAVE_BROKEN_NICE - Failed
-- Performing Test HAVE_BROKEN_POLL
-- Performing Test HAVE_BROKEN_POLL - Failed
-- extension_decimal: libmpdec_config [ansi32]
-- 
-- The following extensions will NOT be built:
-- 
--     _codecs_cn (not set: ENABLE_CODECS_CN)
--     _codecs_hk (not set: ENABLE_CODECS_HK)
--     _codecs_iso2022 (not set: ENABLE_CODECS_ISO2022)
--     _codecs_jp (not set: ENABLE_CODECS_JP)
--     _codecs_kr (not set: ENABLE_CODECS_KR)
--     _codecs_tw (not set: ENABLE_CODECS_TW)
--     cPickle (not set: IS_PY2)
--     _crypt (not set: HAVE_LIBCRYPT)
--     cStringIO (not set: IS_PY2)
--     future_builtins (not set: IS_PY2)
--     _hotshot (not set: IS_PY2)
--     _multibytecodec (not set: ENABLE_MULTIBYTECODEC)
--     operator (not set: IS_PY2)
--     strop (not set: IS_PY2)
--     nis (not set: HAVE_LIBNSL)
--     spwd (not set: HAVE_GETSPNAM HAVE_GETSPENT)
--     _scproxy (not set: APPLE HAVE_LIBSYSTEMCONFIGURATION)
--     linuxaudiodev (not set: LINUX IS_PY2)
--     ossaudiodev (not set: LINUX)
--     _msi (not set: WIN32)
--     msvcrt (not set: MSVC)
--     nt (not set: WIN32)
--     _subprocess (not set: WIN32 IS_PY2)
--     winreg (not set: WIN32)
--     overlapped (not set: WIN32)
--     _winapi (not set: WIN32)
--     _bsddb (not set: DB_INCLUDE_PATH DB_LIBRARIES)
--     _bz2 (not set: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
--     _curses_panel (not set: CURSES_LIBRARIES PANEL_LIBRARIES HAVE_PANEL_H OR HAVE_NCURSES_PANEL_H)
--     _curses (not set: CURSES_LIBRARIES)
--     _dbm (not set: NDBM_TAG GDBM_LIBRARY GDBM_COMPAT_LIBRARY)
--     _gdbm (not set: GDBM_INCLUDE_PATH GDBM_LIBRARY GDBM_COMPAT_LIBRARY)
--     _hashlib (not set: OPENSSL_INCLUDE_DIR OPENSSL_LIBRARIES)
--     readline (not set: READLINE_INCLUDE_PATH READLINE_LIBRARY CURSES_LIBRARIES HAVE_READLINE_READLINE_H)
--     _sqlite3 (not set: SQLITE3_INCLUDE_PATH SQLITE3_LIBRARY)
--     _ssl (not set: OPENSSL_INCLUDE_DIR OPENSSL_LIBRARIES)
--     _tkinter (not set: TCL_LIBRARY TK_LIBRARY TCL_INCLUDE_PATH TK_INCLUDE_PATH X11_INCLUDE_DIR X11_LIBRARIES)
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ethanhs/python-cmake-android/python-build
ethanhs@ethanhs:~/python-cmake-android/python-build$ /home/ethanhs/Android/Sdk/cmake/3.6.3155560/bin/ninja -v
[1/395] : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,array.so -o lib/python3.5/lib-dynload/array.so CMakeBuild/extensions/extension_array/CMakeFiles/extension_array.dir/__/__/__/__/Python-3.5.2/Modules/arraymodule.c.o  -lm && :
[2/395] : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,audioop.so -o lib/python3.5/lib-dynload/audioop.so CMakeBuild/extensions/extension_audioop/CMakeFiles/extension_audioop.dir/__/__/__/__/Python-3.5.2/Modules/audioop.c.o  -lm && :
[3/395] : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,_bisect.so -o lib/python3.5/lib-dynload/_bisect.so CMakeBuild/extensions/extension_bisect/CMakeFiles/extension_bisect.dir/__/__/__/__/Python-3.5.2/Modules/_bisectmodule.c.o  -lm && :
[4/395] : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,cmath.so -o lib/python3.5/lib-dynload/cmath.so CMakeBuild/extensions/extension_cmath/CMakeFiles/extension_cmath.dir/__/__/__/__/Python-3.5.2/Modules/_math.c.o CMakeBuild/extensions/extension_cmath/CMakeFiles/extension_cmath.dir/__/__/__/__/Python-3.5.2/Modules/cmathmodule.c.o  -lm && :
[5/395] : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,_csv.so -o lib/python3.5/lib-dynload/_csv.so CMakeBuild/extensions/extension_csv/CMakeFiles/extension_csv.dir/__/__/__/__/Python-3.5.2/Modules/_csv.c.o  -lm && :
[6/395] : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,_ctypes_test.so -o lib/python3.5/lib-dynload/_ctypes_test.so CMakeBuild/extensions/extension_ctypes_test/CMakeFiles/extension_ctypes_test.dir/__/__/__/__/Python-3.5.2/Modules/_ctypes/_ctypes_test.c.o  -lm && :
[7/395] : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,_functools.so -o lib/python3.5/lib-dynload/_functools.so CMakeBuild/extensions/extension_functools/CMakeFiles/extension_functools.dir/__/__/__/__/Python-3.5.2/Modules/_functoolsmodule.c.o  -lm && :
[8/395] : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,_heapq.so -o lib/python3.5/lib-dynload/_heapq.so CMakeBuild/extensions/extension_heapq/CMakeFiles/extension_heapq.dir/__/__/__/__/Python-3.5.2/Modules/_heapqmodule.c.o  -lm && :
[9/395] : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,itertools.so -o lib/python3.5/lib-dynload/itertools.so CMakeBuild/extensions/extension_itertools/CMakeFiles/extension_itertools.dir/__/__/__/__/Python-3.5.2/Modules/itertoolsmodule.c.o  -lm && :
[10/395] : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,_json.so -o lib/python3.5/lib-dynload/_json.so CMakeBuild/extensions/extension_json/CMakeFiles/extension_json.dir/__/__/__/__/Python-3.5.2/Modules/_json.c.o  -lm && :
FAILED: : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,_bisect.so -o lib/python3.5/lib-dynload/_bisect.so CMakeBuild/extensions/extension_bisect/CMakeFiles/extension_bisect.dir/__/__/__/__/Python-3.5.2/Modules/_bisectmodule.c.o  -lm && :
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:260: error: undefined reference to 'PyModule_Create2'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:55: error: undefined reference to '_PyArg_ParseTupleAndKeywords_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:61: error: undefined reference to 'PyLong_FromSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:85: error: undefined reference to '_PyArg_ParseTupleAndKeywords_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:95: error: undefined reference to '_PyObject_CallMethodId_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:92: error: undefined reference to 'PyList_Insert'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:102: error: undefined reference to 'PyList_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:102: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:158: error: undefined reference to '_PyArg_ParseTupleAndKeywords_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:164: error: undefined reference to 'PyLong_FromSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:188: error: undefined reference to '_PyArg_ParseTupleAndKeywords_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:198: error: undefined reference to '_PyObject_CallMethodId_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:195: error: undefined reference to 'PyList_Insert'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:205: error: undefined reference to 'PyList_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:205: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:22: error: undefined reference to 'PySequence_Size'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:31: error: undefined reference to 'PySequence_GetItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:34: error: undefined reference to 'PyObject_RichCompareBool'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:18: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:44: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:125: error: undefined reference to 'PySequence_Size'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:134: error: undefined reference to 'PySequence_GetItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:137: error: undefined reference to 'PyObject_RichCompareBool'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:121: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_bisectmodule.c:147: error: undefined reference to 'PyExc_ValueError'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
FAILED: : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,_heapq.so -o lib/python3.5/lib-dynload/_heapq.so CMakeBuild/extensions/extension_heapq/CMakeFiles/extension_heapq.dir/__/__/__/__/Python-3.5.2/Modules/_heapqmodule.c.o  -lm && :
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:640: error: undefined reference to 'PyModule_Create2'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:643: error: undefined reference to 'PyUnicode_DecodeUTF8'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:644: error: undefined reference to 'PyModule_AddObject'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:104: error: undefined reference to 'PyArg_UnpackTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:108: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:112: error: undefined reference to 'PyList_Append'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:118: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:118: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:219: error: undefined reference to 'PyArg_UnpackTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:223: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:232: error: undefined reference to 'PyObject_RichCompareBool'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:241: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:241: error: undefined reference to 'PyExc_IndexError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:241: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:32: error: undefined reference to 'PyObject_RichCompareBool'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:21: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:36: error: undefined reference to 'PyExc_IndexError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:36: error: undefined reference to 'PyExc_RuntimeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:74: error: undefined reference to 'PyObject_RichCompareBool'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:82: error: undefined reference to 'PyExc_IndexError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:82: error: undefined reference to 'PyExc_RuntimeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:143: error: undefined reference to 'PyList_SetSlice'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:154: error: undefined reference to 'PyExc_IndexError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:154: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:174: error: undefined reference to 'PyArg_UnpackTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:195: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:354: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:354: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:428: error: undefined reference to 'PyObject_RichCompareBool'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:451: error: undefined reference to 'PyExc_RuntimeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_heapqmodule.c:451: error: undefined reference to 'PyExc_RuntimeError'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
FAILED: : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,_ctypes_test.so -o lib/python3.5/lib-dynload/_ctypes_test.so CMakeBuild/extensions/extension_ctypes_test/CMakeFiles/extension_ctypes_test.dir/__/__/__/__/Python-3.5.2/Modules/_ctypes/_ctypes_test.c.o  -lm && :
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_ctypes/_ctypes_test.c:349: error: undefined reference to 'PyArg_ParseTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_ctypes/_ctypes_test.c:353: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_ctypes/_ctypes_test.c:362: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_ctypes/_ctypes_test.c:658: error: undefined reference to 'PyModule_Create2'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
FAILED: : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,cmath.so -o lib/python3.5/lib-dynload/cmath.so CMakeBuild/extensions/extension_cmath/CMakeFiles/extension_cmath.dir/__/__/__/__/Python-3.5.2/Modules/_math.c.o CMakeBuild/extensions/extension_cmath/CMakeFiles/extension_cmath.dir/__/__/__/__/Python-3.5.2/Modules/cmathmodule.c.o  -lm && :
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:1235: error: undefined reference to 'PyModule_Create2'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:1240: error: undefined reference to 'PyFloat_FromDouble'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:1239: error: undefined reference to 'PyModule_AddObject'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:1241: error: undefined reference to 'PyFloat_FromDouble'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:1241: error: undefined reference to 'PyModule_AddObject'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:24: error: undefined reference to 'PyArg_Parse'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:31: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:39: error: undefined reference to 'PyComplex_FromCComplex'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:43: error: undefined reference to 'PyExc_OverflowError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:43: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:65: error: undefined reference to 'PyArg_Parse'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:72: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:76: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:80: error: undefined reference to 'PyComplex_FromCComplex'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:84: error: undefined reference to 'PyExc_OverflowError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:84: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:106: error: undefined reference to 'PyArg_Parse'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:113: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:121: error: undefined reference to 'PyComplex_FromCComplex'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:125: error: undefined reference to 'PyExc_OverflowError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:125: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:147: error: undefined reference to 'PyArg_Parse'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:162: error: undefined reference to 'PyComplex_FromCComplex'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:166: error: undefined reference to 'PyExc_OverflowError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:166: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:849: error: undefined reference to 'PyArg_ParseTupleAndKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:853: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:1179: error: undefined reference to '_Py_c_diff'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:1179: error: undefined reference to '_Py_c_abs'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:1181: error: undefined reference to '_Py_c_abs'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:1182: error: undefined reference to '_Py_c_abs'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:855: error: undefined reference to 'PyBool_FromLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:1088: error: undefined reference to 'PyBool_FromLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:1114: error: undefined reference to 'PyBool_FromLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:1101: error: undefined reference to 'PyBool_FromLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:641: error: undefined reference to 'PyArg_ParseTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:918: error: undefined reference to 'PyComplex_AsCComplex'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:919: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:923: error: undefined reference to '_Py_c_quot'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:969: error: undefined reference to 'PyFloat_FromDouble'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:992: error: undefined reference to '_Py_c_abs'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:997: error: undefined reference to 'Py_BuildValue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/cmathmodule.c.h:723: error: undefined reference to 'PyArg_ParseTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:369: error: undefined reference to '_Py_c_neg'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:369: error: undefined reference to '_Py_c_neg'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/cmathmodule.c:942: error: undefined reference to 'PyErr_SetFromErrno'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
FAILED: : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,_functools.so -o lib/python3.5/lib-dynload/_functools.so CMakeBuild/extensions/extension_functools/CMakeFiles/extension_functools.dir/__/__/__/__/Python-3.5.2/Modules/_functoolsmodule.c.o  -lm && :
CMakeBuild/extensions/extension_functools/CMakeFiles/extension_functools.dir/__/__/__/__/Python-3.5.2/Modules/_functoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:partial_type: error: undefined reference to 'PyObject_GenericGetAttr'
CMakeBuild/extensions/extension_functools/CMakeFiles/extension_functools.dir/__/__/__/__/Python-3.5.2/Modules/_functoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:partial_type: error: undefined reference to 'PyObject_GenericSetAttr'
CMakeBuild/extensions/extension_functools/CMakeFiles/extension_functools.dir/__/__/__/__/Python-3.5.2/Modules/_functoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:partial_type: error: undefined reference to 'PyObject_GC_Del'
CMakeBuild/extensions/extension_functools/CMakeFiles/extension_functools.dir/__/__/__/__/Python-3.5.2/Modules/_functoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:partial_getsetlist: error: undefined reference to 'PyObject_GenericGetDict'
CMakeBuild/extensions/extension_functools/CMakeFiles/extension_functools.dir/__/__/__/__/Python-3.5.2/Modules/_functoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:partial_getsetlist: error: undefined reference to 'PyObject_GenericSetDict'
CMakeBuild/extensions/extension_functools/CMakeFiles/extension_functools.dir/__/__/__/__/Python-3.5.2/Modules/_functoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:lru_cache_getsetlist: error: undefined reference to 'PyObject_GenericGetDict'
CMakeBuild/extensions/extension_functools/CMakeFiles/extension_functools.dir/__/__/__/__/Python-3.5.2/Modules/_functoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:lru_cache_getsetlist: error: undefined reference to 'PyObject_GenericSetDict'
CMakeBuild/extensions/extension_functools/CMakeFiles/extension_functools.dir/__/__/__/__/Python-3.5.2/Modules/_functoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:lru_list_elem_type: error: undefined reference to 'PyType_Type'
CMakeBuild/extensions/extension_functools/CMakeFiles/extension_functools.dir/__/__/__/__/Python-3.5.2/Modules/_functoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:keyobject_type: error: undefined reference to 'PyType_Type'
CMakeBuild/extensions/extension_functools/CMakeFiles/extension_functools.dir/__/__/__/__/Python-3.5.2/Modules/_functoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:keyobject_type: error: undefined reference to 'PyObject_GenericGetAttr'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:1224: error: undefined reference to 'PyModule_Create2'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:1228: error: undefined reference to 'PyObject_CallObject'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:1235: error: undefined reference to 'PyType_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:1242: error: undefined reference to 'PyModule_AddObject'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:1245: error: undefined reference to 'PyBaseObject_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:116: error: undefined reference to 'PyObject_GC_UnTrack'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:118: error: undefined reference to 'PyObject_ClearWeakRefs'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:212: error: undefined reference to 'PyUnicode_FromString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:220: error: undefined reference to 'PyUnicode_FromFormat'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:229: error: undefined reference to 'PyDict_Next'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:230: error: undefined reference to 'PyUnicode_FromFormat'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:237: error: undefined reference to 'PyUnicode_FromFormat'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:143: error: undefined reference to 'PySequence_Concat'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:149: error: undefined reference to 'PyDict_Size'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:153: error: undefined reference to 'PyDict_Copy'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:159: error: undefined reference to 'PyDict_Merge'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:167: error: undefined reference to 'PyObject_Call'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:49: error: undefined reference to 'PyCallable_Check'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:63: error: undefined reference to 'PyTuple_GetSlice'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:77: error: undefined reference to 'PySequence_Concat'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:32: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:87: error: undefined reference to 'PyDict_Size'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:97: error: undefined reference to 'PyDict_Copy'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:99: error: undefined reference to 'PyDict_Merge'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:89: error: undefined reference to 'PyDict_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:106: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:106: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:253: error: undefined reference to 'Py_BuildValue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:253: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:264: error: undefined reference to 'PyArg_ParseTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:265: error: undefined reference to 'PyCallable_Check'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:269: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:274: error: undefined reference to 'PySequence_Tuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:283: error: undefined reference to 'PyDict_Copy'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:281: error: undefined reference to 'PyDict_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:301: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:301: error: undefined reference to 'PyTuple_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:301: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:301: error: undefined reference to 'PyDict_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:301: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:301: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:1036: error: undefined reference to 'PyMethod_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:932: error: undefined reference to 'PyArg_ParseTupleAndKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:938: error: undefined reference to 'PyCallable_Check'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:950: error: undefined reference to 'PyNumber_AsSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:951: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:939: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:958: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:962: error: undefined reference to 'PyDict_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:986: error: undefined reference to 'PyExc_OverflowError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:986: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:1044: error: undefined reference to 'PyDict_Size'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:1042: error: undefined reference to 'PyObject_CallFunction'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:1053: error: undefined reference to 'PyDict_Clear'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:1061: error: undefined reference to 'PyObject_GetAttrString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:778: error: undefined reference to 'PyObject_Hash'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:781: error: undefined reference to '_PyDict_GetItem_KnownHash'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:788: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:792: error: undefined reference to 'PyObject_Call'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:797: error: undefined reference to '_PyDict_SetItem_KnownHash'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:763: error: undefined reference to 'PyObject_Call'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:834: error: undefined reference to 'PyObject_Hash'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:837: error: undefined reference to '_PyDict_GetItem_KnownHash'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:847: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:851: error: undefined reference to 'PyObject_Call'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:865: error: undefined reference to '_PyDict_DelItem_KnownHash'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:883: error: undefined reference to '_PyDict_SetItem_KnownHash'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:896: error: undefined reference to '_PyObject_GC_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:908: error: undefined reference to '_PyDict_SetItem_KnownHash'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:915: error: undefined reference to 'PyDict_Size'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:907: error: undefined reference to 'Py_FatalError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:907: error: undefined reference to '_PyGC_generation0'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:700: error: undefined reference to 'PyDict_Items'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:703: error: undefined reference to 'PyList_Sort'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:718: error: undefined reference to 'PyTuple_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:622: error: undefined reference to 'PyObject_GC_Del'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:532: error: undefined reference to 'PyArg_UnpackTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:537: error: undefined reference to 'PyObject_GetIter'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:546: error: undefined reference to 'PyTuple_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:554: error: undefined reference to 'PyTuple_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:558: error: undefined reference to 'PyIter_Next'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:568: error: undefined reference to 'PyTuple_SetItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:569: error: undefined reference to 'PyTuple_SetItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:570: error: undefined reference to 'PyEval_CallObjectWithKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:539: error: undefined reference to 'PyErr_ExceptionMatches'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:560: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:511: error: undefined reference to 'PyArg_ParseTupleAndKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:513: error: undefined reference to '_PyObject_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:368: error: undefined reference to 'PyObject_Free'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:443: error: undefined reference to 'PyArg_ParseTupleAndKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:445: error: undefined reference to '_PyObject_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:467: error: undefined reference to 'PyLong_FromLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:488: error: undefined reference to 'PyTuple_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:499: error: undefined reference to 'PyObject_RichCompare'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:473: error: undefined reference to 'PyErr_Format'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_functoolsmodule.c:502: error: undefined reference to 'PyExc_AttributeError'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
FAILED: : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,audioop.so -o lib/python3.5/lib-dynload/audioop.so CMakeBuild/extensions/extension_audioop/CMakeFiles/extension_audioop.dir/__/__/__/__/Python-3.5.2/Modules/audioop.c.o  -lm && :
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1894: error: undefined reference to 'PyModule_Create2'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1897: error: undefined reference to 'PyModule_GetDict'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1900: error: undefined reference to 'PyErr_NewException'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1902: error: undefined reference to 'PyDict_SetItemString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/audioop.c.h:58: error: undefined reference to '_PyArg_ParseTuple_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:451: error: undefined reference to 'PyLong_FromUnsignedLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/audioop.c.h:66: error: undefined reference to 'PyBuffer_Release'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/audioop.c.h:90: error: undefined reference to '_PyArg_ParseTuple_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:480: error: undefined reference to '_Py_BuildValue_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/audioop.c.h:98: error: undefined reference to 'PyBuffer_Release'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/audioop.c.h:122: error: undefined reference to '_PyArg_ParseTuple_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:509: error: undefined reference to 'PyLong_FromLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/audioop.c.h:130: error: undefined reference to 'PyBuffer_Release'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/audioop.c.h:323: error: undefined reference to '_PyArg_ParseTuple_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:830: error: undefined reference to 'PyLong_FromLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:858: error: undefined reference to 'PyLong_FromUnsignedLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/audioop.c.h:331: error: undefined reference to 'PyBuffer_Release'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:774: error: undefined reference to 'PyLong_FromLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:805: error: undefined reference to 'PyLong_FromUnsignedLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:540: error: undefined reference to 'PyLong_FromUnsignedLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:617: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:608: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:648: error: undefined reference to '_Py_BuildValue_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:748: error: undefined reference to 'PyLong_FromSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:719: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:726: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:690: error: undefined reference to 'PyFloat_FromDouble'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:888: error: undefined reference to 'PyLong_FromSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:918: error: undefined reference to 'PyBytes_FromStringAndSize'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:921: error: undefined reference to 'PyBytes_AsString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1061: error: undefined reference to 'PyBytes_FromStringAndSize'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1064: error: undefined reference to 'PyBytes_AsString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1113: error: undefined reference to 'PyBytes_FromStringAndSize'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1116: error: undefined reference to 'PyBytes_AsString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1517: error: undefined reference to 'PyBytes_FromStringAndSize'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1520: error: undefined reference to 'PyBytes_AsString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/audioop.c.h:743: error: undefined reference to 'PyExc_MemoryError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/audioop.c.h:807: error: undefined reference to 'PyExc_MemoryError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/audioop.c.h:638: error: undefined reference to 'PyExc_MemoryError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1840: error: undefined reference to '_Py_BuildValue_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1773: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1773: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1773: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1773: error: undefined reference to 'PyExc_MemoryError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1727: error: undefined reference to '_Py_BuildValue_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/audioop.c.h:841: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/audioop.c.h:841: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/audioop.c.h:841: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:423: error: undefined reference to 'PyLong_FromLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1341: error: undefined reference to 'PyMem_Malloc'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1342: error: undefined reference to 'PyMem_Malloc'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1360: error: undefined reference to 'PyTuple_Size'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1366: error: undefined reference to 'PyTuple_GetItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1344: error: undefined reference to 'PyErr_NoMemory'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1445: error: undefined reference to 'PyExc_OverflowError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1445: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1445: error: undefined reference to 'PyTuple_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1403: error: undefined reference to 'PyTuple_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1407: error: undefined reference to 'PyTuple_SetItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1407: error: undefined reference to 'PyTuple_SetItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1411: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1452: error: undefined reference to 'PyMem_Free'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/audioop.c:1453: error: undefined reference to 'PyMem_Free'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
FAILED: : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,_csv.so -o lib/python3.5/lib-dynload/_csv.so CMakeBuild/extensions/extension_csv/CMakeFiles/extension_csv.dir/__/__/__/__/Python-3.5.2/Modules/_csv.c.o  -lm && :
CMakeBuild/extensions/extension_csv/CMakeFiles/extension_csv.dir/__/__/__/__/Python-3.5.2/Modules/_csv.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:Reader_Type: error: undefined reference to 'PyObject_SelfIter'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1638: error: undefined reference to 'PyType_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1641: error: undefined reference to 'PyType_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1644: error: undefined reference to 'PyType_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1648: error: undefined reference to 'PyModule_Create2'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1653: error: undefined reference to 'PyModule_AddStringConstant'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1658: error: undefined reference to 'PyModule_GetState'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1662: error: undefined reference to 'PyDict_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1662: error: undefined reference to 'PyModule_GetState'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1663: error: undefined reference to 'PyModule_GetState'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1665: error: undefined reference to 'PyModule_GetState'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1666: error: undefined reference to 'PyModule_AddObject'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1671: error: undefined reference to 'PyModule_AddIntConstant'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1678: error: undefined reference to 'PyModule_AddObject'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1682: error: undefined reference to 'PyErr_NewException'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1686: error: undefined reference to 'PyModule_AddObject'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:352: error: undefined reference to 'PyArg_ParseTupleAndKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:374: error: undefined reference to 'PyType_IsSubtype'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:405: error: undefined reference to 'PyObject_GetAttrString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:406: error: undefined reference to 'PyObject_GetAttrString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:407: error: undefined reference to 'PyObject_GetAttrString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:408: error: undefined reference to 'PyObject_GetAttrString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:413: error: undefined reference to 'PyErr_Clear'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:198: error: undefined reference to 'PyObject_IsTrue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:272: error: undefined reference to 'PyErr_Format'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:267: error: undefined reference to 'PyUnicode_DecodeASCII'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:214: error: undefined reference to 'PyErr_Format'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:277: error: undefined reference to '_PyUnicode_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:218: error: undefined reference to 'PyLong_AsLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:219: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:198: error: undefined reference to 'PyObject_IsTrue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:198: error: undefined reference to 'PyObject_IsTrue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:295: error: undefined reference to 'PyErr_Format'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:433: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:463: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:463: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:463: error: undefined reference to 'PyLong_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:463: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:463: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:463: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:463: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:159: error: undefined reference to 'PyUnicode_FromOrdinal'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:171: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:159: error: undefined reference to 'PyUnicode_FromOrdinal'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:177: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:159: error: undefined reference to 'PyUnicode_FromOrdinal'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:189: error: undefined reference to 'PyLong_FromLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:134: error: undefined reference to 'PyState_FindModule'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:134: error: undefined reference to 'PyDict_GetItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:136: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:137: error: undefined reference to 'PyState_FindModule'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:137: error: undefined reference to 'PyErr_Format'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:248: error: undefined reference to 'PyUnicode_GetLength'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:868: error: undefined reference to 'PyObject_GC_UnTrack'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:873: error: undefined reference to 'PyMem_Free'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:874: error: undefined reference to 'PyObject_GC_Del'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:808: error: undefined reference to 'PyIter_Next'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:831: error: undefined reference to '_PyUnicode_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:844: error: undefined reference to 'PyState_FindModule'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:811: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:814: error: undefined reference to 'PyState_FindModule'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:814: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:786: error: undefined reference to 'PyList_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:540: error: undefined reference to 'PyUnicode_FromKindAndData'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:549: error: undefined reference to 'PyNumber_Float'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:555: error: undefined reference to 'PyList_Append'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:579: error: undefined reference to 'PyMem_Realloc'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:569: error: undefined reference to 'PyMem_Free'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:570: error: undefined reference to 'PyMem_Malloc'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:575: error: undefined reference to 'PyErr_NoMemory'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1310: error: undefined reference to 'PyObject_GC_UnTrack'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1314: error: undefined reference to 'PyMem_Free'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1315: error: undefined reference to 'PyObject_GC_Del'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1181: error: undefined reference to 'PyObject_GetIter'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1190: error: undefined reference to 'PyIter_Next'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1196: error: undefined reference to 'PyNumber_Check'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1217: error: undefined reference to 'PyObject_Str'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1232: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1251: error: undefined reference to 'PyUnicode_FromKindAndData'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1255: error: undefined reference to 'PyObject_CallFunctionObjArgs'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1271: error: undefined reference to 'PyObject_GetIter'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1273: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1277: error: undefined reference to 'PyIter_Next'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1123: error: undefined reference to '_PyUnicode_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1043: error: undefined reference to 'PyUnicode_FindChar'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1095: error: undefined reference to 'PyMem_Free'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1096: error: undefined reference to 'PyMem_Malloc'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1102: error: undefined reference to 'PyMem_Realloc'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1107: error: undefined reference to 'PyErr_NoMemory'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:954: error: undefined reference to '_PyObject_GC_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:971: error: undefined reference to 'PyArg_UnpackTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:975: error: undefined reference to 'PyObject_GetIter'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:988: error: undefined reference to 'PyObject_GC_Track'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:977: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1380: error: undefined reference to '_PyObject_GC_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1394: error: undefined reference to 'PyArg_UnpackTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1398: error: undefined reference to '_PyObject_GetAttrId'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1399: error: undefined reference to 'PyCallable_Check'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1410: error: undefined reference to 'PyObject_GC_Track'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1420: error: undefined reference to 'PyDict_Keys'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1429: error: undefined reference to 'PyArg_UnpackTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1436: error: undefined reference to '_PyUnicode_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1441: error: undefined reference to 'PyDict_SetItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1453: error: undefined reference to 'PyDict_DelItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1471: error: undefined reference to 'PyArg_UnpackTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1479: error: undefined reference to 'PyLong_AsLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1485: error: undefined reference to 'PyLong_FromLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:1486: error: undefined reference to 'PyLong_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:524: error: undefined reference to 'Py_BuildValue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_csv.c:527: error: undefined reference to 'PyObject_Call'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
FAILED: : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,_json.so -o lib/python3.5/lib-dynload/_json.so CMakeBuild/extensions/extension_json/CMakeFiles/extension_json.dir/__/__/__/__/Python-3.5.2/Modules/_json.c.o  -lm && :
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1952: error: undefined reference to 'PyModule_Create2'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1956: error: undefined reference to 'PyType_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1959: error: undefined reference to 'PyType_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1962: error: undefined reference to 'PyModule_AddObject'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1967: error: undefined reference to 'PyModule_AddObject'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1975: error: undefined reference to 'PyType_GenericNew'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1975: error: undefined reference to 'PyType_GenericNew'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:626: error: undefined reference to 'PyErr_Format'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:173: error: undefined reference to '_PyUnicode_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:203: error: undefined reference to 'PyUnicode_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:197: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:632: error: undefined reference to 'Py_hexdigits'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:632: error: undefined reference to 'PyExc_OverflowError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:632: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:651: error: undefined reference to 'PyErr_Format'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:239: error: undefined reference to '_PyUnicode_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:263: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:269: error: undefined reference to 'PyUnicode_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:313: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:313: error: undefined reference to 'Py_hexdigits'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:313: error: undefined reference to 'Py_hexdigits'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:313: error: undefined reference to 'Py_hexdigits'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:313: error: undefined reference to 'PyExc_OverflowError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:595: error: undefined reference to 'PyArg_ParseTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:602: error: undefined reference to 'PyErr_Format'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:608: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:417: error: undefined reference to '_PyUnicode_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:447: error: undefined reference to 'PyList_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:447: error: undefined reference to 'PyList_Append'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:448: error: undefined reference to 'PyUnicode_FromKindAndData'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:543: error: undefined reference to 'PyList_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:543: error: undefined reference to 'PyList_Append'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:544: error: undefined reference to 'PyUnicode_FromKindAndData'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:425: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:557: error: undefined reference to 'PyList_Append'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:554: error: undefined reference to 'PyUnicode_FromStringAndSize'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:72: error: undefined reference to 'PyUnicode_FromStringAndSize'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:76: error: undefined reference to 'PyUnicode_Join'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:565: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:366: error: undefined reference to 'PyLong_FromSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:371: error: undefined reference to 'PyTuple_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:330: error: undefined reference to 'PyImport_ImportModule'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:333: error: undefined reference to 'PyObject_GetAttrString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:338: error: undefined reference to 'PyObject_CallFunction'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:340: error: undefined reference to 'PyErr_SetObject'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1182: error: undefined reference to 'PyArg_ParseTupleAndKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1189: error: undefined reference to 'PyErr_Format'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1194: error: undefined reference to 'PyDict_Clear'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1198: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1227: error: undefined reference to 'PyArg_ParseTupleAndKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1231: error: undefined reference to 'PyDict_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1237: error: undefined reference to 'PyObject_GetAttrString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1240: error: undefined reference to 'PyObject_GetAttrString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1243: error: undefined reference to 'PyObject_GetAttrString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1067: error: undefined reference to '_PyUnicode_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1075: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1092: error: undefined reference to 'PyThreadState_Get'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1092: error: undefined reference to '_Py_CheckRecursiveCall'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:713: error: undefined reference to 'PyObject_IsTrue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1086: error: undefined reference to 'PyObject_IsTrue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1100: error: undefined reference to 'PyThreadState_Get'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1100: error: undefined reference to '_Py_CheckRecursiveCall'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:848: error: undefined reference to 'PyList_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:728: error: undefined reference to 'PyList_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:730: error: undefined reference to 'PyDict_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:735: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:735: error: undefined reference to '_Py_CheckRecursionLimit'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:735: error: undefined reference to '_Py_CheckRecursionLimit'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:735: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:750: error: undefined reference to 'PyDict_GetItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:757: error: undefined reference to 'PyDict_SetItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:777: error: undefined reference to 'PyTuple_Pack'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:782: error: undefined reference to 'PyList_Append'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:789: error: undefined reference to 'PyDict_SetItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:802: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1096: error: undefined reference to 'PyThreadState_Get'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1104: error: undefined reference to 'PyThreadState_Get'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1159: error: undefined reference to '_Py_CheckRecursionLimit'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1159: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1159: error: undefined reference to '_Py_TrueStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1159: error: undefined reference to '_Py_CheckRecursionLimit'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1159: error: undefined reference to '_Py_FalseStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:816: error: undefined reference to 'PyObject_CallFunctionObjArgs'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:823: error: undefined reference to 'PyObject_CallFunctionObjArgs'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1001: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1021: error: undefined reference to 'PyUnicode_FromKindAndData'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1026: error: undefined reference to 'PyObject_CallFunctionObjArgs'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1034: error: undefined reference to 'PyBytes_FromStringAndSize'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1042: error: undefined reference to 'PyFloat_FromString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1044: error: undefined reference to 'PyLong_FromString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1095: error: undefined reference to 'PyLong_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1095: error: undefined reference to 'PyFloat_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:348: error: undefined reference to 'PyLong_FromSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:350: error: undefined reference to 'PyErr_SetObject'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:353: error: undefined reference to 'PyExc_StopIteration'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:922: error: undefined reference to 'PyUnicode_InternFromString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:927: error: undefined reference to 'PyObject_CallFunctionObjArgs'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1399: error: undefined reference to 'PyArg_ParseTupleAndKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1402: error: undefined reference to '_PyAccu_Init'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1405: error: undefined reference to '_PyAccu_Destroy'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1408: error: undefined reference to '_PyAccu_FinishAsList'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1345: error: undefined reference to 'PyArg_ParseTupleAndKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1368: error: undefined reference to 'PyCFunction_GetFunction'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1385: error: undefined reference to 'PyCFunction_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1517: error: undefined reference to 'PyType_IsSubtype'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1485: error: undefined reference to '_PyAccu_Accumulate'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1524: error: undefined reference to '_Py_CheckRecursiveCall'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1756: error: undefined reference to 'PyUnicode_InternFromString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1757: error: undefined reference to 'PyUnicode_InternFromString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1758: error: undefined reference to 'PyUnicode_InternFromString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1763: error: undefined reference to 'PySequence_Fast'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1773: error: undefined reference to 'PyLong_FromVoidPtr'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1776: error: undefined reference to 'PyDict_Contains'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1782: error: undefined reference to 'PyDict_SetItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1787: error: undefined reference to '_PyAccu_Accumulate'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1801: error: undefined reference to '_PyAccu_Accumulate'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1808: error: undefined reference to 'PyDict_DelItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1819: error: undefined reference to '_PyAccu_Accumulate'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1541: error: undefined reference to 'PyLong_FromVoidPtr'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1544: error: undefined reference to 'PyDict_Contains'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1551: error: undefined reference to 'PyDict_SetItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1552: error: undefined reference to '_Py_FalseStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1552: error: undefined reference to '_Py_TrueStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1552: error: undefined reference to 'PyFloat_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1552: error: undefined reference to 'PyFloat_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1552: error: undefined reference to 'PyLong_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1531: error: undefined reference to '_Py_CheckRecursiveCall'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1612: error: undefined reference to 'PyLong_FromVoidPtr'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1615: error: undefined reference to 'PyDict_Contains'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1639: error: undefined reference to 'PyMapping_Items'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1642: error: undefined reference to 'PyObject_IsTrue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1643: error: undefined reference to 'PyList_Sort'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1645: error: undefined reference to 'PyObject_GetIter'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1649: error: undefined reference to 'PyObject_IsTrue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1653: error: undefined reference to 'PyIter_Next'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1664: error: undefined reference to 'PyType_IsSubtype'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1653: error: undefined reference to 'PyIter_Next'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1715: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1720: error: undefined reference to 'PyDict_DelItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1527: error: undefined reference to 'PyFloat_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1527: error: undefined reference to '_Py_TrueStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1527: error: undefined reference to '_Py_FalseStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1527: error: undefined reference to 'PyLong_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1573: error: undefined reference to 'PyDict_DelItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1702: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1702: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1443: error: undefined reference to '_Py_TrueStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1443: error: undefined reference to '_Py_FalseStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1459: error: undefined reference to 'PyUnicode_FromString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1462: error: undefined reference to 'PyUnicode_FromString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/_json.c:1465: error: undefined reference to 'PyUnicode_FromString'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
FAILED: : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,array.so -o lib/python3.5/lib-dynload/array.so CMakeBuild/extensions/extension_array/CMakeFiles/extension_array.dir/__/__/__/__/Python-3.5.2/Modules/arraymodule.c.o  -lm && :
CMakeBuild/extensions/extension_array/CMakeFiles/extension_array.dir/__/__/__/__/Python-3.5.2/Modules/arraymodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:Arraytype: error: undefined reference to 'PyObject_GenericGetAttr'
CMakeBuild/extensions/extension_array/CMakeFiles/extension_array.dir/__/__/__/__/Python-3.5.2/Modules/arraymodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:Arraytype: error: undefined reference to 'PyType_GenericAlloc'
CMakeBuild/extensions/extension_array/CMakeFiles/extension_array.dir/__/__/__/__/Python-3.5.2/Modules/arraymodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:Arraytype: error: undefined reference to 'PyObject_Free'
CMakeBuild/extensions/extension_array/CMakeFiles/extension_array.dir/__/__/__/__/Python-3.5.2/Modules/arraymodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:PyArrayIter_Type: error: undefined reference to 'PyObject_GenericGetAttr'
CMakeBuild/extensions/extension_array/CMakeFiles/extension_array.dir/__/__/__/__/Python-3.5.2/Modules/arraymodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:PyArrayIter_Type: error: undefined reference to 'PyObject_SelfIter'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:3042: error: undefined reference to 'PyModuleDef_Init'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/arraymodule.c.h:455: error: undefined reference to '_PyArg_ParseTuple_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1952: error: undefined reference to 'PyErr_Format'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1957: error: undefined reference to 'PyType_IsSubtype'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1958: error: undefined reference to 'PyErr_Format'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1968: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1979: error: undefined reference to 'PyErr_Format'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2106: error: undefined reference to 'PyList_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2112: error: undefined reference to '_PyLong_FromByteArray'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2010: error: undefined reference to 'PyList_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2015: error: undefined reference to '_PyFloat_Unpack4'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2014: error: undefined reference to 'PyFloat_FromDouble'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2032: error: undefined reference to 'PyList_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2037: error: undefined reference to '_PyFloat_Unpack8'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2036: error: undefined reference to 'PyFloat_FromDouble'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2049: error: undefined reference to 'PyUnicode_DecodeUTF16'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2059: error: undefined reference to 'PyUnicode_DecodeUTF32'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2130: error: undefined reference to 'PyErr_BadArgument'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2135: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2135: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2135: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2135: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2135: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2135: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1905: error: undefined reference to 'PyUnicode_FromOrdinal'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1909: error: undefined reference to 'PyTuple_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:625: error: undefined reference to 'PyObject_ClearWeakRefs'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:627: error: undefined reference to 'PyMem_Free'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2289: error: undefined reference to 'PyUnicode_FromFormat'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2299: error: undefined reference to 'PyUnicode_FromFormat'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:640: error: undefined reference to 'PyType_IsSubtype'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:640: error: undefined reference to 'PyType_IsSubtype'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:666: error: undefined reference to 'PyObject_RichCompareBool'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:708: error: undefined reference to 'PyObject_RichCompare'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:711: error: undefined reference to '_Py_NotImplementedStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:711: error: undefined reference to '_Py_FalseStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:711: error: undefined reference to '_Py_TrueStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:711: error: undefined reference to '_Py_TrueStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:711: error: undefined reference to '_Py_FalseStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:711: error: undefined reference to '_Py_FalseStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:711: error: undefined reference to '_Py_TrueStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2858: error: undefined reference to 'PyType_IsSubtype'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2863: error: undefined reference to '_PyObject_GC_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2871: error: undefined reference to 'PyObject_GC_Track'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2859: error: undefined reference to '_PyErr_BadInternalCall'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2600: error: undefined reference to '_PyArg_NoKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2603: error: undefined reference to '_PyArg_ParseTuple_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2614: error: undefined reference to 'PyErr_Format'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2627: error: undefined reference to 'PyObject_GetIter'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2726: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2659: error: undefined reference to 'PySequence_GetItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2687: error: undefined reference to 'PyUnicode_AsUnicode'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2694: error: undefined reference to 'PyUnicode_AsUnicode'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2698: error: undefined reference to 'PyMem_Realloc'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2689: error: undefined reference to 'PyErr_NoMemory'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2689: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2689: error: undefined reference to 'PyByteArray_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2689: error: undefined reference to 'PyByteArray_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2689: error: undefined reference to 'PyByteArray_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2689: error: undefined reference to 'PyByteArray_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2689: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1732: error: undefined reference to 'PyUnicode_FromUnicode'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1728: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1544: error: undefined reference to 'PyList_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1553: error: undefined reference to 'PyList_SetItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:796: error: undefined reference to 'PyErr_BadArgument'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:800: error: undefined reference to 'PyErr_NoMemory'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:823: error: undefined reference to 'PyErr_NoMemory'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:725: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:729: error: undefined reference to 'PyExc_IndexError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:932: error: undefined reference to 'PyExc_IndexError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1127: error: undefined reference to 'PyObject_RichCompareBool'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1021: error: undefined reference to 'PyErr_NoMemory'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:569: error: undefined reference to 'PyMem_Malloc'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:548: error: undefined reference to '_PyErr_BadInternalCall'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:870: error: undefined reference to 'PyErr_BadArgument'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:919: error: undefined reference to 'PyExc_BufferError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:159: error: undefined reference to 'PyMem_Realloc'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:135: error: undefined reference to 'PyMem_Free'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:170: error: undefined reference to 'PyExc_BufferError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:946: error: undefined reference to 'PyObject_GetIter'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:950: error: undefined reference to 'PyIter_Next'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:959: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:595: error: undefined reference to '_PyErr_BadInternalCall'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2308: error: undefined reference to 'PyNumber_AsSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2322: error: undefined reference to 'PySlice_GetIndicesEx'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2309: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2346: error: undefined reference to 'PyExc_IndexError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2346: error: undefined reference to 'PySlice_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2371: error: undefined reference to 'PyNumber_AsSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2393: error: undefined reference to 'PySlice_GetIndicesEx'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2422: error: undefined reference to 'PyErr_BadArgument'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2373: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2503: error: undefined reference to 'PyExc_IndexError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2503: error: undefined reference to 'PySlice_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2503: error: undefined reference to 'PyExc_BufferError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2567: error: undefined reference to 'PyExc_BufferError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2887: error: undefined reference to 'PyObject_GC_UnTrack'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2889: error: undefined reference to 'PyObject_GC_Del'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2909: error: undefined reference to '_PyObject_GetBuiltin'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2909: error: undefined reference to '_Py_BuildValue_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2926: error: undefined reference to 'PyLong_AsSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2927: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2935: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1294: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1260: error: undefined reference to 'PyTuple_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1264: error: undefined reference to 'PyLong_FromVoidPtr'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1271: error: undefined reference to 'PyLong_FromLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/arraymodule.c.h:173: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/arraymodule.c.h:173: error: undefined reference to 'PyExc_RuntimeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1072: error: undefined reference to 'PyObject_RichCompareBool'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1079: error: undefined reference to 'PyLong_FromSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1226: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/arraymodule.c.h:213: error: undefined reference to '_PyArg_ParseTuple_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1422: error: undefined reference to '_PyObject_CallMethodId_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/arraymodule.c.h:219: error: undefined reference to 'PyExc_EOFError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1515: error: undefined reference to 'PyList_Size'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1522: error: undefined reference to 'PyList_GetItem'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/arraymodule.c.h:278: error: undefined reference to '_PyArg_Parse_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1615: error: undefined reference to 'PyErr_WarnEx'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/arraymodule.c.h:285: error: undefined reference to 'PyBuffer_Release'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/arraymodule.c.h:287: error: undefined reference to 'PyExc_DeprecationWarning'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/arraymodule.c.h:308: error: undefined reference to '_PyArg_Parse_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/arraymodule.c.h:315: error: undefined reference to 'PyBuffer_Release'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/arraymodule.c.h:382: error: undefined reference to '_PyArg_Parse_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1105: error: undefined reference to 'PyObject_RichCompareBool'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1108: error: undefined reference to 'PyLong_FromLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/arraymodule.c.h:116: error: undefined reference to '_PyArg_ParseTuple_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2163: error: undefined reference to 'PyImport_ImportModule'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2166: error: undefined reference to '_PyObject_GetAttrId'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2179: error: undefined reference to 'PyLong_AsLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2183: error: undefined reference to '_PyObject_GetAttrId'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2185: error: undefined reference to 'PyErr_ExceptionMatches'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2187: error: undefined reference to 'PyErr_Clear'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2223: error: undefined reference to '_Py_BuildValue_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2211: error: undefined reference to '_Py_BuildValue_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2228: error: undefined reference to 'PyExc_AttributeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1481: error: undefined reference to 'PyBytes_FromStringAndSize'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1484: error: undefined reference to '_PyObject_CallMethodId_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1667: error: undefined reference to 'PyErr_WarnEx'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/clinic/arraymodule.c.h:355: error: undefined reference to 'PyExc_DeprecationWarning'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1747: error: undefined reference to 'PyLong_FromSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1575: error: undefined reference to 'PyBuffer_Release'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1569: error: undefined reference to 'PyBuffer_Release'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:1648: error: undefined reference to 'PyBytes_FromStringAndSize'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2234: error: undefined reference to 'PyUnicode_FromOrdinal'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2240: error: undefined reference to 'PyLong_FromLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:190: error: undefined reference to 'PyLong_FromLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:200: error: undefined reference to '_PyArg_Parse_SizeT'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:215: error: undefined reference to 'PyExc_OverflowError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:215: error: undefined reference to 'PyExc_OverflowError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:239: error: undefined reference to 'PyUnicode_FromUnicode'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:307: error: undefined reference to 'PyExc_OverflowError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:307: error: undefined reference to 'PyExc_OverflowError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:330: error: undefined reference to 'PyLong_FromUnsignedLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:339: error: undefined reference to 'PyLong_AsUnsignedLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:386: error: undefined reference to 'PyLong_FromUnsignedLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:394: error: undefined reference to 'PyLong_AsUnsignedLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:426: error: undefined reference to 'PyLong_FromLongLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:443: error: undefined reference to 'PyLong_FromUnsignedLongLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:452: error: undefined reference to 'PyLong_AsUnsignedLongLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:477: error: undefined reference to 'PyFloat_FromDouble'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:494: error: undefined reference to 'PyFloat_FromDouble'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2992: error: undefined reference to 'PyType_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2997: error: undefined reference to 'PyModule_AddObject'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:2999: error: undefined reference to 'PyModule_AddObject'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:3009: error: undefined reference to 'PyUnicode_DecodeASCII'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:3011: error: undefined reference to 'PyModule_AddObject'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/arraymodule.c:3018: error: undefined reference to 'PyType_Type'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
FAILED: : && /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/clang  -target armv5te-none-linux-androideabi -gcc-toolchain /home/ethanhs/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/ethanhs/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm -fPIC -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb -Wa,--noexecstack -Wformat -Werror=format-security  -Wall  -DHAVE_SSIZE_T  -DPY_FORMAT_SIZE_T="l"  -DPY_FORMAT_LONG_LONG="ll" -Os -DNDEBUG  -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,itertools.so -o lib/python3.5/lib-dynload/itertools.so CMakeBuild/extensions/extension_itertools/CMakeFiles/extension_itertools.dir/__/__/__/__/Python-3.5.2/Modules/itertoolsmodule.c.o  -lm && :
CMakeBuild/extensions/extension_itertools/CMakeFiles/extension_itertools.dir/__/__/__/__/Python-3.5.2/Modules/itertoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:accumulate_type: error: undefined reference to 'PyObject_GenericGetAttr'
CMakeBuild/extensions/extension_itertools/CMakeFiles/extension_itertools.dir/__/__/__/__/Python-3.5.2/Modules/itertoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:accumulate_type: error: undefined reference to 'PyObject_SelfIter'
CMakeBuild/extensions/extension_itertools/CMakeFiles/extension_itertools.dir/__/__/__/__/Python-3.5.2/Modules/itertoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:accumulate_type: error: undefined reference to 'PyObject_GC_Del'
CMakeBuild/extensions/extension_itertools/CMakeFiles/extension_itertools.dir/__/__/__/__/Python-3.5.2/Modules/itertoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:combinations_type: error: undefined reference to 'PyObject_GenericGetAttr'
CMakeBuild/extensions/extension_itertools/CMakeFiles/extension_itertools.dir/__/__/__/__/Python-3.5.2/Modules/itertoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:combinations_type: error: undefined reference to 'PyObject_SelfIter'
CMakeBuild/extensions/extension_itertools/CMakeFiles/extension_itertools.dir/__/__/__/__/Python-3.5.2/Modules/itertoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:combinations_type: error: undefined reference to 'PyObject_GC_Del'
CMakeBuild/extensions/extension_itertools/CMakeFiles/extension_itertools.dir/__/__/__/__/Python-3.5.2/Modules/itertoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:cwr_type: error: undefined reference to 'PyObject_GenericGetAttr'
CMakeBuild/extensions/extension_itertools/CMakeFiles/extension_itertools.dir/__/__/__/__/Python-3.5.2/Modules/itertoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:cwr_type: error: undefined reference to 'PyObject_SelfIter'
CMakeBuild/extensions/extension_itertools/CMakeFiles/extension_itertools.dir/__/__/__/__/Python-3.5.2/Modules/itertoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:cwr_type: error: undefined reference to 'PyObject_GC_Del'
CMakeBuild/extensions/extension_itertools/CMakeFiles/extension_itertools.dir/__/__/__/__/Python-3.5.2/Modules/itertoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:cycle_type: error: undefined reference to 'PyObject_GenericGetAttr'
CMakeBuild/extensions/extension_itertools/CMakeFiles/extension_itertools.dir/__/__/__/__/Python-3.5.2/Modules/itertoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:cycle_type: error: undefined reference to 'PyObject_SelfIter'
CMakeBuild/extensions/extension_itertools/CMakeFiles/extension_itertools.dir/__/__/__/__/Python-3.5.2/Modules/itertoolsmodule.c.o:/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:cycle_type: error: undefined reference to 'PyObject_GC_Del'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4620: error: undefined reference to 'PyModule_Create2'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4625: error: undefined reference to 'PyType_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4630: error: undefined reference to 'PyModule_AddObject'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4634: error: undefined reference to 'PyType_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3413: error: undefined reference to 'PyObject_GC_UnTrack'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3434: error: undefined reference to 'PyIter_Next'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3447: error: undefined reference to 'PyObject_CallFunctionObjArgs'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3445: error: undefined reference to 'PyNumber_Add'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3385: error: undefined reference to 'PyArg_ParseTupleAndKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3390: error: undefined reference to 'PyObject_GetIter'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3408: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3408: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3480: error: undefined reference to 'Py_BuildValue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3466: error: undefined reference to 'PyType_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3468: error: undefined reference to 'PyType_Ready'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3470: error: undefined reference to 'PyObject_CallFunction'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3474: error: undefined reference to 'PyObject_CallFunction'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3483: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3483: error: undefined reference to '_Py_NoneStruct'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2399: error: undefined reference to 'PyObject_GC_UnTrack'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2403: error: undefined reference to 'PyMem_Free'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2456: error: undefined reference to 'PyTuple_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2442: error: undefined reference to 'PyTuple_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2354: error: undefined reference to 'PyArg_ParseTupleAndKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2358: error: undefined reference to 'PySequence_Tuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2367: error: undefined reference to 'PyMem_Malloc'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2369: error: undefined reference to 'PyErr_NoMemory'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2363: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2391: error: undefined reference to 'PyMem_Free'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2391: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2517: error: undefined reference to 'Py_BuildValue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2523: error: undefined reference to 'PyTuple_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2528: error: undefined reference to 'PyLong_FromSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2536: error: undefined reference to 'Py_BuildValue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2557: error: undefined reference to 'PyLong_AsSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2558: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2569: error: undefined reference to 'PyTuple_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2549: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2580: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2414: error: undefined reference to 'PyLong_FromSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2739: error: undefined reference to 'PyObject_GC_UnTrack'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2743: error: undefined reference to 'PyMem_Free'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2694: error: undefined reference to 'PyArg_ParseTupleAndKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2698: error: undefined reference to 'PySequence_Tuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2707: error: undefined reference to 'PyMem_Malloc'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2709: error: undefined reference to 'PyErr_NoMemory'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2703: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2731: error: undefined reference to 'PyMem_Free'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2731: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2851: error: undefined reference to 'Py_BuildValue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2862: error: undefined reference to 'PyLong_FromSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2890: error: undefined reference to 'PyLong_AsSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2891: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2882: error: undefined reference to 'PyErr_SetString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2910: error: undefined reference to 'PyExc_ValueError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2754: error: undefined reference to 'PyLong_FromSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:906: error: undefined reference to 'PyObject_GC_UnTrack'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:928: error: undefined reference to 'PyIter_Next'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:936: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:937: error: undefined reference to 'PyErr_ExceptionMatches'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:938: error: undefined reference to 'PyErr_Clear'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:942: error: undefined reference to 'PyList_Size'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:944: error: undefined reference to 'PyObject_GetIter'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:928: error: undefined reference to 'PyIter_Next'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:930: error: undefined reference to 'PyList_Append'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:952: error: undefined reference to 'PyExc_StopIteration'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:872: error: undefined reference to '_PyArg_NoKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:875: error: undefined reference to 'PyArg_UnpackTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:879: error: undefined reference to 'PyObject_GetIter'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:883: error: undefined reference to 'PyList_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:969: error: undefined reference to 'PyArg_ParseTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1112: error: undefined reference to 'PyObject_CallFunctionObjArgs'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1117: error: undefined reference to 'PyObject_IsTrue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1054: error: undefined reference to '_PyArg_NoKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1057: error: undefined reference to 'PyArg_UnpackTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1061: error: undefined reference to 'PyObject_GetIter'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1139: error: undefined reference to 'PyObject_IsTrue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1279: error: undefined reference to 'PyObject_CallFunctionObjArgs'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1284: error: undefined reference to 'PyObject_IsTrue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1223: error: undefined reference to '_PyArg_NoKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1226: error: undefined reference to 'PyArg_UnpackTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1304: error: undefined reference to 'PyObject_IsTrue'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1391: error: undefined reference to '_PyArg_NoKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1394: error: undefined reference to 'PyArg_UnpackTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1397: error: undefined reference to 'PyTuple_Size'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1400: error: undefined reference to 'PyLong_AsSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1402: error: undefined reference to 'PyErr_Occurred'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1403: error: undefined reference to 'PyErr_Clear'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1411: error: undefined reference to 'PyLong_AsSsize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1413: error: undefined reference to 'PyErr_Clear'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1418: error: undefined reference to 'PyErr_Clear'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1527: error: undefined reference to 'PyList_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1692: error: undefined reference to 'PySequence_Tuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1698: error: undefined reference to 'PyObject_Call'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1701: error: undefined reference to 'PyTuple_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1846: error: undefined reference to 'PyIter_Next'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1862: error: undefined reference to 'PyErr_ExceptionMatches'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1848: error: undefined reference to 'PyExc_StopIteration'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:1894: error: undefined reference to 'PyArg_ParseTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3576: error: undefined reference to 'PyArg_ParseTupleAndKeywords'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3795: error: undefined reference to 'PyObject_CallFunctionObjArgs'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3810: error: undefined reference to 'PyBool_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4034: error: undefined reference to 'PyLong_AsLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4043: error: undefined reference to 'PyUnicode_FromFormat'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4031: error: undefined reference to 'PyUnicode_FromFormat'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4040: error: undefined reference to 'PyUnicode_FromFormat'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4012: error: undefined reference to 'PyNumber_Add'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3919: error: undefined reference to 'PyNumber_Check'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3920: error: undefined reference to 'PyNumber_Check'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3934: error: undefined reference to 'PyLong_FromLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3939: error: undefined reference to 'PyLong_FromLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3950: error: undefined reference to 'PyLong_AsLong'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3978: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4291: error: undefined reference to 'PySequence_Size'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4293: error: undefined reference to 'PyDict_Size'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4294: error: undefined reference to 'PyDict_GetItemString'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4295: error: undefined reference to 'PyDict_Size'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4313: error: undefined reference to 'PyErr_ExceptionMatches'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4314: error: undefined reference to 'PyErr_Format'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4348: error: undefined reference to 'PyDict_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4348: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4348: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4348: error: undefined reference to 'PyExc_TypeError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3029: error: undefined reference to 'PySequence_Tuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3049: error: undefined reference to 'PyMem_Malloc'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3050: error: undefined reference to 'PyMem_Malloc'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3052: error: undefined reference to 'PyErr_NoMemory'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3254: error: undefined reference to 'PyArg_ParseTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:3303: error: undefined reference to 'PyTuple_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2024: error: undefined reference to 'PyErr_NoMemory'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:2062: error: undefined reference to 'PyExc_OverflowError'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4186: error: undefined reference to 'PyUnicode_FromFormat'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4140: error: undefined reference to 'PyDict_Size'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4142: error: undefined reference to 'PyTuple_Size'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:4196: error: undefined reference to 'PyLong_FromSize_t'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:88: error: undefined reference to 'PyObject_RichCompareBool'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:130: error: undefined reference to 'PyTuple_Pack'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:254: error: undefined reference to '_PyObject_GC_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:262: error: undefined reference to 'PyObject_GC_Track'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:158: error: undefined reference to 'PyArg_ParseTuple'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:313: error: undefined reference to 'PyObject_RichCompareBool'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:715: error: undefined reference to 'PyObject_ClearWeakRefs'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:418: error: undefined reference to '_PyObject_GC_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:426: error: undefined reference to 'PyObject_GC_Track'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:656: error: undefined reference to '_PyObject_GC_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:663: error: undefined reference to 'PyObject_GC_Track'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:678: error: undefined reference to 'PyType_IsSubtype'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:683: error: undefined reference to '_PyObject_GC_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:695: error: undefined reference to 'PyObject_GC_Track'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:569: error: undefined reference to 'PyList_Type'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:512: error: undefined reference to 'PyList_New'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:827: error: undefined reference to '_PyObject_HasAttrId'
/home/ethanhs/python-cmake-android/Python-3.5.2/Modules/itertoolsmodule.c:839: error: undefined reference to '_PyObject_CallMethodId'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
@jcfr
Copy link
Contributor

jcfr commented Oct 15, 2016

@ethanhs Thanks for your report.

LIBM is handled here:

if(HAVE_BUILTIN_ACOSH)
# Math functions are builtin the environment (e.g emscripten)
set(M_LIBRARIES )
set(HAVE_LIBM 1)
else()
find_library(HAVE_LIBM m)
set(M_LIBRARIES ${HAVE_LIBM})
endif()

To help improving the python-cmake-buildsystem to work for Android, there is this project: https://github.com/kylemanna/docker-aosp

It should help document and reproduce the steps leading to the error.

@ethanhs
Copy link
Author

ethanhs commented Oct 15, 2016

@jcfr thanks for the quick response! I forgot libm was a thing, so perhaps it just isn't linking to Python period? Also, I'm not entirely sure how the repo you linked to relates to cross compiling for Android. I'm trying to compile using the cmake toolchain an android armeabi build of Python, not AOSP itself.

@jcfr
Copy link
Contributor

jcfr commented Oct 15, 2016

re: AOSP

Good point. Since you are using only the NDK, it is not related.

perhaps it just isn't linking to Python period

At that point, I don't know.

Currently travelling (vacation) until middle of next week ... I don't have time to investigate further.

Ideally, it would be nice to have set of steps allowing to reproduce the problem.

@ethanhs
Copy link
Author

ethanhs commented Oct 15, 2016

Okay, I am building based off of these changes (I know this isn't very clean if I make a PR I will restart from a clean pull and follow the guidlines).

Anyway, I then ran

~/python-cmake-android$ mkdir -p python-build && mkdir -p python-install
~/python-cmake-android$ cd python-build
~/python-cmake-android$ /home/ethanhs/Android/Sdk/cmake/3.6.3155560/bin/cmake .. -G"Android Gradle - Ninja" -DANDROID_ABI=armeabi -DANDROID_NDK=/home/ethanhs/Android/Sdk/ndk-bundle -DCMAKE_INSTALL_PREFIX=../python_install -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=/home/ethanhs/Android/Sdk/cmake/3.6.3155560/bin/ninja -DCMAKE_TOOLCHAIN_FILE=/home/ethanhs/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=21 -DCMAKE_CXX_FLAGS=-std=c++11 -DPYTHON_VERSION=3.5.2 -DENABLE_CODECS_JP=OFF -DENABLE_CODECS_KR=OFF -DENABLE_CODECS_TW=OFF -DENABLE_MULTIBYTECODEC=OFF -DENABLE_CODECS_CN=OFF -DENABLE_CODECS_HK=OFF  -DENABLE_CODECS_ISO2022=OFF

Then I ran

~/python-cmake-android$ /home/ethanhs/Android/Sdk/cmake/3.6.3155560/bin/ninja -v

Note the cmake paths and sdk paths etc just point to defaults for Android Studio install.

@jcfr jcfr added Type: Enhancement Improvement to functionality Project: crosscompilation crosscompilation specific labels Feb 15, 2017
@jcfr jcfr linked a pull request Jun 28, 2023 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Project: crosscompilation crosscompilation specific Type: Enhancement Improvement to functionality
2 participants