So, I downloaded the sources, unpacked it, moved to the unpacked folder, launched the terminal and typed the following:
sudo su ./configure --build=arm --prefix="$PWD"/out LDFLAGS="-static -static-libgcc -Wl,--unresolved-symbols=ignore-all -Wl,--export-dynamic" CPPFLAGS=-static CXXFLAGS=-static CFLAGS="-Os -static" LDFLAGS=-static LD=ld.gold corrected Modules / Setup in the terminal launched the build
make clean; make install I got the following output:
ar rcs libpython3.7m.a Modules/getbuildinfo.o Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Parser/myreadline.o Parser/parsetok.o Parser/tokenizer.o Objects/abstract.o Objects/accu.o Objects/boolobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/bytesobject.o Objects/call.o Objects/cellobject.o Objects/classobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o Objects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/odictobject.o Objects/memoryobject.o Objects/methodobject.o Objects/moduleobject.o Objects/namespaceobject.o Objects/object.o Objects/obmalloc.o Objects/capsule.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/unicodeobject.o Objects/unicodectype.o Objects/weakrefobject.o Python/_warnings.o Python/Python-ast.o Python/asdl.o Python/ast.o Python/ast_opt.o Python/ast_unparse.o Python/bltinmodule.o Python/ceval.o Python/compile.o Python/codecs.o Python/dynamic_annotations.o Python/errors.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getplatform.o Python/getversion.o Python/graminit.o Python/import.o Python/importdl.o Python/marshal.o Python/modsupport.o Python/mysnprintf.o Python/mystrtoul.o Python/pathconfig.o Python/peephole.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pyhash.o Python/pylifecycle.o Python/pymath.o Python/pystate.o Python/context.o Python/hamt.o Python/pythonrun.o Python/pytime.o Python/bootstrap_hash.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/thread.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/pystrhex.o Python/dtoa.o Python/formatter_unicode.o Python/fileutils.o Python/dynload_shlib.o Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o Modules/_codecsmodule.o Modules/_weakref.o Modules/_functoolsmodule.o Modules/_operator.o Modules/_collectionsmodule.o Modules/_abc.o Modules/itertoolsmodule.o Modules/atexitmodule.o Modules/signalmodule.o Modules/_stat.o Modules/timemodule.o Modules/_threadmodule.o Modules/_localemodule.o Modules/_iomodule.o Modules/iobase.o Modules/fileio.o Modules/bytesio.o Modules/bufferedio.o Modules/textio.o Modules/stringio.o Modules/zipimport.o Modules/faulthandler.o Modules/_tracemalloc.o Modules/hashtable.o Modules/symtablemodule.o Modules/readline.o Modules/arraymodule.o Modules/cmathmodule.o Modules/_math.o Modules/_contextvarsmodule.o Modules/_struct.o Modules/_weakref.o Modules/_testcapimodule.o Modules/_randommodule.o Modules/_elementtree.o Modules/_pickle.o Modules/_datetimemodule.o Modules/_bisectmodule.o Modules/_heapqmodule.o Modules/_asynciomodule.o Modules/unicodedata.o Modules/fcntlmodule.o Modules/spwdmodule.o Modules/grpmodule.o Modules/selectmodule.o Modules/mmapmodule.o Modules/_csv.o Modules/socketmodule.o Modules/_ssl.o Modules/_cryptmodule.o Modules/nismodule.o Modules/termios.o Modules/resource.o Modules/_posixsubprocess.o Modules/audioop.o Modules/md5module.o Modules/sha1module.o Modules/sha256module.o Modules/sha512module.o Modules/blake2module.o Modules/blake2b_impl.o Modules/blake2s_impl.o Modules/syslogmodule.o Modules/_curses_panel.o Modules/binascii.o Modules/parsermodule.o Modules/zlibmodule.o Modules/xmlparse.o Modules/xmlrole.o Modules/xmltok.o Modules/pyexpat.o Modules/multibytecodec.o Modules/_codecs_cn.o Modules/_codecs_hk.o Modules/_codecs_iso2022.o Modules/_codecs_jp.o Modules/_codecs_kr.o Modules/_codecs_tw.o Modules/xxsubtype.o Python/frozen.o gcc -pthread -static -Xlinker -export-dynamic -o python Programs/python.o libpython3.7m.a -lpthread -ldl -lutil -lreadline -ltermcap -L/lib -lssl -lcrypto -lnsl -lpanel -lncurses -L/home/android/Downloads/Python-3.7.0/out/lib -lz -lm Makefile:582: recipe for target 'python' failed root@localhost:/home/android/Downloads/Python-3.7.0# make install > /home/android/Downloads/1.txtMakefile:1849: warning: overriding recipe for target 'Modules/_math.o' Makefile:605: warning: ignoring old recipe for target 'Modules/_math.o' Makefile:1855: warning: overriding recipe for target 'Modules/_weakref.o' Makefile:1803: warning: ignoring old recipe for target 'Modules/_weakref.o' Makefile:1856: warning: overriding recipe for target 'Modules/_weakref.cpython-37m-arm-linux-gnueabihf.so' Makefile:1804: warning: ignoring old recipe for target 'Modules/_weakref.cpython-37m-arm-linux-gnueabihf.so' libpython3.7m.a(dynload_shlib.o): In function `_PyImport_FindSharedFuncptr': /home/android/Downloads/Python-3.7.0/./Python/dynload_shlib.c:96: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(posixmodule.o): In function `posix_getgrouplist': /home/android/Downloads/Python-3.7.0/./Modules/posixmodule.c:6142: warning: Using 'getgrouplist' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(posixmodule.o): In function `posix_initgroups': /home/android/Downloads/Python-3.7.0/./Modules/posixmodule.c:6316: warning: Using 'initgroups' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(grpmodule.o): In function `grp_getgrall_impl': /home/android/Downloads/Python-3.7.0/./Modules/grpmodule.c:187: warning: Using 'getgrent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(grpmodule.o): In function `grp_getgrgid_impl': /home/android/Downloads/Python-3.7.0/./Modules/grpmodule.c:123: warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(grpmodule.o): In function `grp_getgrnam_impl': /home/android/Downloads/Python-3.7.0/./Modules/grpmodule.c:158: warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(grpmodule.o): In function `grp_getgrall_impl': /home/android/Downloads/Python-3.7.0/./Modules/grpmodule.c:186: warning: Using 'setgrent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /home/android/Downloads/Python-3.7.0/./Modules/grpmodule.c:192: warning: Using 'endgrent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(pwdmodule.o): In function `pwd_getpwall_impl': /home/android/Downloads/Python-3.7.0/./Modules/pwdmodule.c:193: warning: Using 'getpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(pwdmodule.o): In function `pwd_getpwnam_impl': /home/android/Downloads/Python-3.7.0/./Modules/pwdmodule.c:164: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(pwdmodule.o): In function `pwd_getpwuid': /home/android/Downloads/Python-3.7.0/./Modules/pwdmodule.c:128: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(pwdmodule.o): In function `pwd_getpwall_impl': /home/android/Downloads/Python-3.7.0/./Modules/pwdmodule.c:192: warning: Using 'setpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /home/android/Downloads/Python-3.7.0/./Modules/pwdmodule.c:198: warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(socketmodule.o): In function `socket_getnameinfo': /home/android/Downloads/Python-3.7.0/./Modules/socketmodule.c:6333: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(spwdmodule.o): In function `spwd_getspall_impl': /home/android/Downloads/Python-3.7.0/./Modules/spwdmodule.c:174: warning: Using 'getspent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(spwdmodule.o): In function `spwd_getspnam_impl': /home/android/Downloads/Python-3.7.0/./Modules/spwdmodule.c:140: warning: Using 'getspnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(spwdmodule.o): In function `spwd_getspall_impl': /home/android/Downloads/Python-3.7.0/./Modules/spwdmodule.c:173: warning: Using 'setspent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /home/android/Downloads/Python-3.7.0/./Modules/spwdmodule.c:179: warning: Using 'endspent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(socketmodule.o): In function `socket_gethostbyaddr': /home/android/Downloads/Python-3.7.0/./Modules/socketmodule.c:5518: warning: Using 'gethostbyaddr_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(socketmodule.o): In function `socket_gethostbyname_ex': /home/android/Downloads/Python-3.7.0/./Modules/socketmodule.c:5421: warning: Using 'gethostbyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(socketmodule.o): In function `socket_getprotobyname': /home/android/Downloads/Python-3.7.0/./Modules/socketmodule.c:5632: warning: Using 'getprotobyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(socketmodule.o): In function `socket_getservbyname': /home/android/Downloads/Python-3.7.0/./Modules/socketmodule.c:5566: warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(socketmodule.o): In function `socket_getservbyport': /home/android/Downloads/Python-3.7.0/./Modules/socketmodule.c:5603: warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking libpython3.7m.a(_cryptmodule.o): In function `crypt_crypt_impl': /home/android/Downloads/Python-3.7.0/./Modules/_cryptmodule.c:37: undefined reference to `crypt' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libcrypto.a(fips.o): In function `verify_checksums': (.text+0x342): undefined reference to `dladdr' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libcrypto.a(fips.o): In function `verify_checksums': (.text+0x34a): undefined reference to `dlclose' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libcrypto.a(fips.o): In function `verify_checksums': (.text+0x37e): undefined reference to `dlclose' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup': (.text+0x1a): undefined reference to `dlclose' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load': (.text+0x3e0): undefined reference to `dlclose' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libcrypto.a(dso_dlfcn.o): In function `dlfcn_pathbyaddr': (.text+0x46e): undefined reference to `dladdr' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload': (.text+0x4ec): undefined reference to `dlclose' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x26): undefined reference to `_nc_str_copy' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x52): undefined reference to `_nc_safe_strcat' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0xf0): undefined reference to `_nc_str_copy' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x108): undefined reference to `_nc_safe_strcat' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x15c): undefined reference to `_nc_str_init' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x27e): undefined reference to `_nc_str_copy' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x31e): undefined reference to `_nc_str_init' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x352): undefined reference to `_nc_str_copy' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x358): undefined reference to `_nc_safe_strcat' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x36a): undefined reference to `_nc_str_copy' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x3ac): undefined reference to `_nc_safe_strcat' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x3c8): undefined reference to `_nc_str_copy' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x3e4): undefined reference to `_nc_safe_strcat' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x400): undefined reference to `_nc_str_copy' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x41c): undefined reference to `_nc_safe_strcat' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x444): undefined reference to `_nc_str_copy' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x45e): undefined reference to `_nc_safe_strcat' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x47a): undefined reference to `_nc_str_copy' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x496): undefined reference to `_nc_safe_strcat' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x4da): undefined reference to `_nc_safe_strcat' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x52e): undefined reference to `_nc_safe_strcat' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `relative_move': (.text+0x57c): undefined reference to `_nc_safe_strcat' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `onscreen_mvcur': (.text+0x5c0): undefined reference to `_nc_str_init' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `onscreen_mvcur': (.text+0x5e0): undefined reference to `_nc_safe_strcpy' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `onscreen_mvcur': (.text+0x670): undefined reference to `_nc_str_null' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `onscreen_mvcur': (.text+0x6b6): undefined reference to `_nc_str_null' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `onscreen_mvcur': (.text+0x6fc): undefined reference to `_nc_str_null' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `onscreen_mvcur': (.text+0x77a): undefined reference to `_nc_str_null' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `onscreen_mvcur': (.text+0x7c4): undefined reference to `_nc_str_init' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `onscreen_mvcur': (.text+0x7d8): undefined reference to `_nc_safe_strcat' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `onscreen_mvcur': (.text+0x7ea): undefined reference to `_nc_safe_strcat' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `onscreen_mvcur': (.text+0x81a): undefined reference to `_nc_str_init' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `onscreen_mvcur': (.text+0x88e): undefined reference to `_nc_str_null' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `onscreen_mvcur': (.text+0x8d6): undefined reference to `_nc_safe_strcpy' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `onscreen_mvcur': (.text+0x8f8): undefined reference to `_nc_safe_strcpy' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_mvcur.o): In function `onscreen_mvcur': (.text+0x922): undefined reference to `_nc_safe_strcpy' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_tstp.o): In function `handle_SIGTSTP': (.text+0x156): undefined reference to `flushinp' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_addch.o): In function `_nc_waddch_nosync': (.text+0x7e): undefined reference to `unctrl' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_addch.o): In function `waddch': (.text+0x514): undefined reference to `unctrl' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_addch.o): In function `wechochar': (.text+0x9a8): undefined reference to `unctrl' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_set_term.o): In function `_nc_setupscreen': (.text+0x302): undefined reference to `_nc_set_buffer' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_set_term.o): In function `_nc_setupscreen': (.text+0x506): undefined reference to `_nc_init_acs' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_hline.o): In function `whline': (.text+0x80): undefined reference to `acs_map' /usr/lib/gcc/arm-linux-gnueabihf/5/../../../arm-linux-gnueabihf/libncurses.a(lib_hline.o): In function `whline': (.text+0x84): undefined reference to `acs_map' collect2: error: ld returned 1 exit status make: *** [python] Error 1 root@localhost:/home/android/Downloads/Python-3.7.0# What does he lack?