Building Redroid14 with MindTheGapps will encounter ERROR (Step #start to build)
Hello,
I am now running a Debian 12.4 server ("git", "git-lfs", "repo" and "docker" are installed), and following the "https://github.com/remote-android/redroid-doc/blob/master/android-builder-docker/README.md" to build with Redroid 14 with MindtheGapps (revision "upsilon", arm64).
After this section:
# start to build
m
It comes out ERROR:
root@redroid-builder:/src# m
13:10:52 ************************************************************
13:10:52 You are building on a machine with 14.9GB of RAM
13:10:52
13:10:52 The minimum required amount of free memory is around 16GB,
13:10:52 and even with that, some configurations may not work.
13:10:52
13:10:52 If you run into segfaults or other errors, try reducing your
13:10:52 -j value.
13:10:52 ************************************************************
[W][2024-04-16T13:10:53+0000][1488] logParams():267 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2024-04-16T13:10:53+0000][1488] logParams():277 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=14
PRODUCT_INCLUDE_TAGS=com.android.mainline
TARGET_PRODUCT=redroid_arm64
TARGET_BUILD_VARIANT=userdebug
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=generic
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.1.0-15-amd64-x86_64-Ubuntu-20.04.6-LTS
HOST_CROSS_OS=windows
BUILD_ID=UQ1A.240105.004.A1
OUT_DIR=out
============================================
[W][2024-04-16T13:10:54+0000][1574] logParams():267 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2024-04-16T13:10:54+0000][1574] logParams():277 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
[ 98% 408/414] converting Android.bp files to BUILD files at out/soong/bp2build
FAILED: out/soong/bp2build_files_marker
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" --bp2build_marker out/soong/bp2build_files_marker --globListDir bp2build_files --globFile out/soong/globs-bp2build_files.ninja -t -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.bp2build_files Android.bp
error: vendor/gapps/arm/Android.bp:15:14: unrecognized property "preprocessed"
error: vendor/gapps/arm/Android.bp:28:14: unrecognized property "preprocessed"
error: vendor/gapps/arm/Android.bp:41:14: unrecognized property "preprocessed"
error: vendor/gapps/arm/Android.bp:53:14: unrecognized property "preprocessed"
error: vendor/gapps/common/Android.bp:14:14: unrecognized property "preprocessed"
error: vendor/gapps/arm/Android.bp:65:14: unrecognized property "preprocessed"
error: vendor/gapps/common/Android.bp:26:14: unrecognized property "preprocessed"
error: vendor/gapps/x86_64/Android.bp:15:14: unrecognized property "preprocessed"
error: vendor/gapps/arm/Android.bp:79:14: unrecognized property "preprocessed"
error: vendor/gapps/common/Android.bp:38:14: unrecognized property "preprocessed"
error: vendor/gapps/x86_64/Android.bp:28:14: unrecognized property "preprocessed"
error: vendor/gapps/common/Android.bp:50:14: unrecognized property "preprocessed"
error: vendor/gapps/x86_64/Android.bp:41:14: unrecognized property "preprocessed"
error: vendor/gapps/common/Android.bp:63:14: unrecognized property "preprocessed"
error: vendor/gapps/x86_64/Android.bp:55:14: unrecognized property "preprocessed"
error: vendor/gapps/common/Android.bp:76:14: unrecognized property "preprocessed"
error: vendor/gapps/common/Android.bp:89:14: unrecognized property "preprocessed"
error: vendor/gapps/arm64/Android.bp:15:14: unrecognized property "preprocessed"
error: vendor/gapps/arm64/Android.bp:28:14: unrecognized property "preprocessed"
error: vendor/gapps/arm64/Android.bp:41:14: unrecognized property "preprocessed"
error: vendor/gapps/arm64/Android.bp:53:14: unrecognized property "preprocessed"
error: vendor/gapps/arm64/Android.bp:65:14: unrecognized property "preprocessed"
error: vendor/gapps/arm64/Android.bp:77:14: unrecognized property "preprocessed"
error: vendor/gapps/arm64/Android.bp:91:14: unrecognized property "preprocessed"
error: vendor/gapps/arm64/Android.bp:105:14: unrecognized property "preprocessed"
error: vendor/gapps/x86/Android.bp:15:14: unrecognized property "preprocessed"
error: vendor/gapps/x86/Android.bp:28:14: unrecognized property "preprocessed"
error: vendor/gapps/x86/Android.bp:41:14: unrecognized property "preprocessed"
error: vendor/gapps/x86/Android.bp:55:14: unrecognized property "preprocessed"
error: vendor/gapps/common/Android.bp:109:14: unrecognized property "preprocessed"
error: vendor/gapps/common/Android.bp:122:14: unrecognized property "preprocessed"
13:14:55 soong bootstrap failed with: exit status 1
#### failed to build some targets (04:04 (mm:ss)) ####
root@redroid-builder:/src#
So when we dive into the https://gitlab.com/MindTheGapps/vendor_gapps/-/blob/upsilon/arm64/Android.bp and found there are "preprocessed: true," syntaxes.
How can I solve this problem?
Many thanks!
I encountered the same issue, see my comments at https://github.com/remote-android/redroid-doc/issues/656 My solution is to remove this line in .bp file, then : echo "BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true" >> device/redroid/redroid_x86_64/BoardConfig.mk