Closed diyism closed 2 years ago
Sounds like ~/lib/android-ndk might be corrupted or only half-extracted. Try
rm -rf ~/lib/android-ndk
./scripts/setup-android-sdk.sh
./setup-android-sdk.sh
is not needed if using Docker image.
My fault, my docker container's default dev mapper size is too small (10GB), the build-bootstraps.sh need about 30GB, I have used
$ sudo dmsetup table "docker-0:27-6459859-4861929f8aab3624f45133b94ccf47654be7fbe9074be0cf729c54d00a90a324"
0 20971520 thin 254:1 44
$ echo 0 41943040 thin 254:1 44 | sudo dmsetup load "docker-0:27-6459859-4861929f8aab3624f45133b94ccf47654be7fbe9074be0cf729c54d00a90a324"
$ sudo dmsetup resume "docker-0:27-6459859-4861929f8aab3624f45133b94ccf47654be7fbe9074be0cf729c54d00a90a324"
$ sudo resize2fs "/dev/mapper/docker-0:27-6459859-4861929f8aab3624f45133b94ccf47654be7fbe9074be0cf729c54d00a90a324"
and expanded my docker container size,
then executed "export NDK=/home/builder/lib/android-ndk-r25/"
now the "./build-bootstraps.sh -a aarch64" can continue in my docker container,
but after about 2 hours compilation without an error, a new error happened:
[*] Building 'apt'...
apt@2.5.2-3 built - skipping (rm /data/data/.built-packages/apt to force rebuild)
[*] Building 'apt' exited with exit code 0
[*] Building 'bash'...
bash@5.1.16-1 built - skipping (rm /data/data/.built-packages/bash to force rebuild)
[*] Building 'bash' exited with exit code 0
[*] Building 'bzip2'...
ERROR: No package bzip2 found in any of the enabled repositories. Are you trying to set up a custom repository?
[*] Building 'bzip2' exited with exit code 1
Failed to build package 'bzip2' for arch 'aarch64'
$ ls -dl /home/builder/termux-packages/packages/libbz2
drwxr-xr-x 2 root root 4096 Sep 10 21:12 /home/builder/termux-packages/packages/libbz2
$ ls /home/builder/termux-packages/packages/libbz2
build.sh bzdiff.patch bzip2.subpackage.sh cross_compile.patch shared_library.patch
I can't figure out what's wrong, any hint?
Problem description
I'm trying build-bootstraps.sh in docker, but it failed with error: termux-elf-cleaner: Section header for 'usr/lib/x86_64-linux-android/27/libGLESv3.so' would end at 94808 but file size only 57344
I can't figure out what's wrong, any hint?
What steps will reproduce the bug?
What is the expected behavior?
No response
System information