hi sir,
I am building Android 14 (14.0.0_1.2.0) source code on my Ubuntu 18.04 system. During the final build step, I encountered an error stating that the tee.bin file is not generated (ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.). How can I resolve this issue?
$ ./imx-make.sh -j4 2>&1 | tee build-log.txt
logs:
=======
[100% 445/445] analyzing Android.bp files and generating ninja file at out/soong/build.ninja
FAILED: out/soong/build.ninja
cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i "$BUILDER" --top "$TOP" --soong_out "out/soong" --out "out" -o out/soong/build.ninja --bazel-mode --globListDir build --globFile out/soong/globs-build.ninja -t -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.build Android.bp
14:33:36 soong bootstrap failed with: exit status 1
ninja: build stopped: subcommand failed.
#### failed to build some targets (15:08 (mm:ss)) ####
$ ~/android_build$ grep -i "error" build-log.txt1
HDRINST usr/include/linux/can/error.h
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
CC kernel/trace/error_report-traces.o
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
CC lib/zstd/common/error_private.o
CC lib/fdt_strerror.o
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
CC drivers/scsi/scsi_error.o
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.
14:18:33 If you run into segfaults or other errors, try reducing your
[ 5% 23/445] compile out/host/linux-x86/bin/go/golang-protobuf-internal-errors/test/google.golang.org/protobuf/internal/errors.a
[ 5% 26/445] compile out/host/linux-x86/bin/go/golang-protobuf-internal-errors/pkg/google.golang.org/protobuf/internal/errors.a
[ 21% 95/445] gotestmain out/host/linux-x86/bin/go/golang-protobuf-internal-errors/test/test.go
[ 21% 96/445] compile out/host/linux-x86/bin/go/golang-protobuf-internal-errors/test/test.a
[ 24% 108/445] link out/host/linux-x86/bin/go/golang-protobuf-internal-errors/test/test
[ 28% 127/445] test google.golang.org/protobuf/internal/errors
[ 59% 265/445] compile out/host/linux-x86/bin/go/soong-java-config-error_prone/pkg/android/soong/java/config/error_prone.a
I am trying to build android 13 image for INVENSOM-8MM NXP iMX SOM board by following the android user guide but facing the build errors kindly help me in building the image successfully:
Hi @pavithrasavin!
Thank you for contacting NXP Support!
Do you modify the source?
I am able to compile Android 14.
Can you share the steps that you are following and if is possible share a log file.
Best Regards!
Chavira
Hi @Chavira
https://www.nxp.com/docs/en/user-guide/ANDROID_USERS_GUIDE.pdf
Thank you for your response.I did not modify the source code(Android 14.0.0_1.2.0).
Please find the below attached document
( IMX8M-MINI_ANDROID14_BUILD_STEPS.txt) we have followed and the corresponding log(build-log.txt)
Thanks, Pavithra
Hi @pavithrasavin!
The error sayas that doesn´t exist tee.bin.
Please try it run the command:
./imx-make.sh bootloader kernel -j4 2>&1 | tee build-log.txt
and then
make -j4 2>&1 | tee -a build-log.txt
with the first command should be generated the needed binary.
If the errors persists Plese repeat the steps but compiling first the bootloader and then generating the Andorid Image
Best Regards!
Chavira
Hi @Chavira
Thanks for your response. I ran the command
./imx-make.sh bootloader kernel -j4 2>&1 | tee build-log.txt
I encountered the following error: ERROR: ./../scripts/pad_image.sh: Could not find file tee.bin. Exiting.The build continued running after this error. I have attached the log file located at build-log.txt.
Additionally, when I ran the command
make -j4 2>&1 | tee -a 1.txt
I have attached the log file located at 1.txt.
my PC hanged. Could you please assist me with these issues?
my system specification:
ubuntu -18.04.6 LTS
memory-15.5 GiB
processor-Intel® Core™ i3-3220 CPU @ 3.30GHz × 4
OS type-64-bit
Thank you in advance for your help.
Regards,
Pavithra
Hi @pavithrasavin!
Your hardware is old.
For this case I recommed to use one core in the compilation.
Please try with the commands:
./imx-make.sh bootloader kernel -j1 2>&1 | tee build-log.txt
make -j1 2>&1 | tee -a build-log.txt
Best Regards!
Chavira
Hi, @Chavira
Thank for your response
we are tried another system .The issue is occurring on a system previously successfully built Android 13, but now with Android 14, you face this error.
system specifications are:
I ran the command:
and are facing the same issue.
Despite increasing the swap space to 8GB, I continue to encounter the same problem.
Hi, @Chavira
Thank you for the suggestion. I have successfully built the Android 14 source code. I appreciate the correct solutions you provided each time. Now, I have successfully completed the Android source code build. Thank you!
Regards,
Pavithra.