python3-android
python3-android copied to clipboard
bug :Cross compilation error
NDK version:android-ndk-r26c-linux
Error message:
libtool: compile: /android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android23-clang -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -I/python3-android/src/Python-3.11.0/Android/sysroot/usr/include -Wall -fPIC -fexceptions -MT src/closures.lo -MD -MP -MF src/.deps/closures.Tpo -c src/closures.c -o src/closures.o
In file included from src/closures.c:570:
./src/dlmalloc.c:3390:7: warning: variable 'nfences' set but not used [-Wunused-but-set-variable]
int nfences = 0;
^
1 warning generated.
depbase=`echo src/tramp.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ./libtool --tag=CC --mode=compile /android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android23-clang -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -I/python3-android/src/Python-3.11.0/Android/sysroot/usr/include -Wall -fPIC -fexceptions -MT src/tramp.lo -MD -MP -MF $depbase.Tpo -c -o src/tramp.lo src/tramp.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: /android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android23-clang -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -I/python3-android/src/Python-3.11.0/Android/sysroot/usr/include -Wall -fPIC -fexceptions -MT src/tramp.lo -MD -MP -MF src/.deps/tramp.Tpo -c src/tramp.c -o src/tramp.o
src/tramp.c:262:22: error: call to undeclared function 'open_temp_exec_file'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
tramp_globals.fd = open_temp_exec_file ();
^
1 error generated.
make[2]: *** [Makefile:1320: src/tramp.lo] Error 1
make[2]: Leaving directory '/python3-android/src/Python-3.11.0/Android/deps/libffi-3.4.4'
make[1]: *** [Makefile:1397: all-recursive] Error 1
make[1]: Leaving directory '/python3-android/src/Python-3.11.0/Android/deps/libffi-3.4.4'
make: *** [Makefile:625: all] Error 2
Traceback (most recent call last):
File "/python3-android/src/Python-3.11.0/./Android/build_deps.py", line 172, in <module>
main()
File "/python3-android/src/Python-3.11.0/./Android/build_deps.py", line 169, in main
build_package(pkg_cls(args.target_arch_name, args.android_api_level))
File "/python3-android/src/Python-3.11.0/./Android/build_deps.py", line 147, in build_package
pkg.build()
File "/python3-android/src/Python-3.11.0/./Android/build_deps.py", line 26, in build
self.make()
File "/python3-android/src/Python-3.11.0/./Android/build_deps.py", line 39, in make
self.run(['make'])
File "/python3-android/src/Python-3.11.0/./Android/build_deps.py", line 22, in run
subprocess.check_call(cmd, cwd=cwd)
File "/usr/local/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make']' returned non-zero exit status 2.
Look forward to your fixing this problem. Thank you