yan12125 / python3-android

Python 3 cross-compilation tools for Android.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running docker image has nothing in build

GRRedWings opened this issue · comments

I am running the steps to create the docker image and build. I am running the image and get to the end, but I have no build folder.

I am doing this on a windows box with WSL, but it appears you are expecting everything to be output to build. Any thoughts?

I'm seeing an error

DEBUG:main:Running in /python3-android/src/Python-3.9.0b1/Android/deps/libffi-3.3: ./configure --prefix=/usr --libdir=/usr/lib --host=armv7a-linux-androideabi --disable-shared
checking build system type... x86_64-pc-linux-gnu
checking host system type... armv7a-unknown-linux-androideabi
checking target system type... armv7a-unknown-linux-androideabi
continue configure in default builddir "./armv7a-unknown-linux-androideabi"
....exec /bin/bash .././configure "--srcdir=.." "--enable-builddir=armv7a-unknown-linux-androideabi" "linux
androideabi"
.././configure: line 2300: config.log: No such file or directory
.././configure: line 2310: config.log: No such file or directory
cat: standard output: No such file or directory
Traceback (most recent call last):
File "/python3-android/src/Python-3.9.0b1/./Android/build_deps.py", line 170, in
main()
File "/python3-android/src/Python-3.9.0b1/./Android/build_deps.py", line 167, in main
build_package(pkg_cls(args.target_arch_name, args.android_api_level))
File "/python3-android/src/Python-3.9.0b1/./Android/build_deps.py", line 145, in build_package
pkg.build()
File "/python3-android/src/Python-3.9.0b1/./Android/build_deps.py", line 25, in build
self.configure()
File "/python3-android/src/Python-3.9.0b1/./Android/build_deps.py", line 30, in configure
self.run([
File "/python3-android/src/Python-3.9.0b1/./Android/build_deps.py", line 22, in run
subprocess.check_call(cmd, cwd=cwd)
File "/usr/local/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['./configure', '--prefix=/usr', '--libdir=/usr/lib', '--host=armv7a-linux-androideabi', '--disable-shared']' returned non-zero exit status 1.

Hi, could you upload a full log file from the commands listed in https://github.com/yan12125/python3-android#build-using-docker and all following outputs?

Here are the logs I managed to pull off.

SharedLib.zip

Could you try adding this flag?

--- a/Android/build_deps.py
+++ b/Android/build_deps.py
@@ -68,6 +68,7 @@ class GDBM(Package):
 
 class LibFFI(Package):
     source = 'https://github.com/libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz'
+    configure_args = ['--disable-builddir']
 
 class LibUUID(Package):
     source = 'https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.35/util-linux-2.35.tar.xz'

If you use the -v flag like what I did in https://github.com/yan12125/python3-android#build-using-docker, files in /python3-android in the docker are actually the same as files on the host, so changing files on the host is enough :)

Perfect thank you. I had not used docker before Friday. So far it seems pretty straightforward.

I have done this patch, and I was able to get further in the build. Here are the logs

logs.zip

UPDATE: After looking at the log and seeing the clock skew, I ran your clean script. Then running the build again, I was able to successfully build. Thanks for the help!

Great to hear that! By the way, does everything build without aforementioned --disable-builddir after fixing clock skew?

In order to build I require the --disable-builddir. I'm not sure if you want to add the fix to the mainline, but in order for it to run on my machine, it has to be there.

BTW: My environment is Windows 10 with WSL 2

Thanks for testing! I added the flag in 96a7087.