Build issues using the “docker method” for unofficial Pixel 2 walleye
- /e/ version: v0.14.2-q
- Device model(s): Pixel 2 (walleye)
Summary
Build failing with out/soong/build.ninja
error.
The problem
Steps to reproduce
Having taken #2519 (closed) into account, I removed the OTA_URL
from the build command, however there are still errors.
What is the current behavior?
Build failing with FAILED: out/soong/build.ninja
.
Pasting relevant parts of terminal output and logs below. Please see this forum post for additional context and replication by another user.
Output of docker build command:
# docker run \
-v "/srv/E/src:/srv/src" \
-v "/srv/E/zips:/srv/zips" \
-v "/srv/E/logs:/srv/logs" \
-v "/srv/E/ccache:/srv/ccache" \
-e "BRANCH_NAME=v0.14.2-q" \
-e "DEVICE_LIST=walleye" \
-e "REPO=https://gitlab.e.foundation/e/os/releases.git" \
registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:community
Set cache size limit to 50.0 GB
>> [Fri Feb 19 08:22:04 UTC 2021] Branch: v0.14.2-q
>> [Fri Feb 19 08:22:04 UTC 2021] Devices: walleye,
>> [Fri Feb 19 08:22:04 UTC 2021] (Re)initializing branch repository
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 32963 0 32963 0 0 89330 0 --:--:-- --:--:-- --:--:-- 89089
[{"name":"v0.14.2-q","message":"","target":"8e6eefd1a9141e2b5f959c56640163eceaf4fe0e"
...<SNIP>...
evice specific"},"protected":true}]
Branch name v0.14.2-q is a tag on e/os/releases, prefix with refs/tags/ for 'repo init'
>> [Fri Feb 19 08:22:05 UTC 2021] Copying '/srv/local_manifests/*.xml' to '.repo/local_manifests/'
>> [Fri Feb 19 08:22:06 UTC 2021] Syncing branch repository
>> [Fri Feb 19 08:22:40 UTC 2021] Setting "UNOFFICIAL" as release type
>> [Fri Feb 19 08:22:40 UTC 2021] Adding OTA URL overlay (for custom URL )
>> [Fri Feb 19 08:22:40 UTC 2021] Preparing build environment
>> [Fri Feb 19 08:22:40 UTC 2021] Starting build for walleye, v0.14.2-q branch
ANDROID_JACK_VM_ARGS=-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4G
Switch to Python2
>> [Fri Feb 19 08:23:24 UTC 2021] Failed build for walleye
>> [Fri Feb 19 08:23:24 UTC 2021] Finishing build for walleye
>> [Fri Feb 19 08:23:24 UTC 2021] Cleaning source dir for device walleye
Switch back to Python3
#
Part of repo-20210219.log
:
>> [Fri Feb 19 08:22:04 UTC 2021] (Re)initializing branch repository
... A new version of repo (2.11) is available.
... You should upgrade soon:
cp /srv/src/Q/.repo/repo/repo /usr/local/bin/repo
repo has been initialized in /srv/src/Q
>> [Fri Feb 19 08:22:06 UTC 2021] Syncing branch repository
... A new version of repo (2.11) is available.
... You should upgrade soon:
cp /srv/src/Q/.repo/repo/repo /usr/local/bin/repo
hardware/qcom-caf/apq8084/display: Shared project LineageOS/android_hardware_qcom_display found, disabling pruning.
hardware/qcom-caf/msm8916/display: Shared project LineageOS/android_hardware_qcom_display found, disabling pruning.
...<SNIP>...
hardware/qcom-caf/sm8250/audio: Shared project e/os/android_hardware_qcom_audio found, disabling pruning.
hardware/qcom/audio/default: Shared project e/os/android_hardware_qcom_audio found, disabling pruning.
Traceback (most recent call last):
File "/srv/src/Q/.repo/repo/main.py", line 627, in <module>
_Main(sys.argv[1:])
File "/srv/src/Q/.repo/repo/main.py", line 601, in _Main
result = run()
File "/srv/src/Q/.repo/repo/main.py", line 594, in <lambda>
run = lambda: repo._Run(name, gopts, argv) or 0
File "/srv/src/Q/.repo/repo/main.py", line 260, in _Run
result = cmd.Execute(copts, cargs)
File "/srv/src/Q/.repo/repo/subcmds/sync.py", line 956, in Execute
if self.UpdateProjectList(opt):
File "/srv/src/Q/.repo/repo/subcmds/sync.py", line 653, in UpdateProjectList
if not project.DeleteWorktree(
File "/srv/src/Q/.repo/repo/project.py", line 1447, in DeleteWorktree
if self.IsDirty():
File "/srv/src/Q/.repo/repo/project.py", line 593, in IsDirty
self.work_git.update_index('-q',
File "/srv/src/Q/.repo/repo/project.py", line 3033, in runner
raise GitError('%s %s: %s' %
error.GitError: kernel/google/wahoo update-index: fatal: .git/index: index file smaller than expected
Part of eelo-0.14-20210219-UNOFFICIAL-walleye.log
:
>> [Fri Feb 19 08:22:40 UTC 2021] Starting build for walleye, v0.14.2-q branch
08:22:44 Build sandboxing disabled due to nsjail error.
Trying dependencies-only mode on a non-existing device tree?
08:22:45 Build sandboxing disabled due to nsjail error.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=0.14-q-20210219-UNOFFICIAL-walleye
TARGET_PRODUCT=lineage_walleye
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a73
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.9.16-1-MANJARO-x86_64-Ubuntu-20.04.1-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200805.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/google/wahoo vendor/google/camera hardware/google/pixel vendor/google/walleye
WITH_SU=false
============================================
08:22:46 Build sandboxing disabled due to nsjail error.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=0.14-q-20210219-UNOFFICIAL-walleye
TARGET_PRODUCT=lineage_walleye
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a73
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.9.16-1-MANJARO-x86_64-Ubuntu-20.04.1-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200805.001
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/google/wahoo vendor/google/camera hardware/google/pixel vendor/google/walleye
WITH_SU=false
============================================
[100% 1/1] out/soong/.minibootstrap/minibp out/soong/.bootstrap/build.ninja
[ 1% 2/139] compile out/soong/.bootstrap/loadplugins/obj/loadplugins.a
[ 2% 3/139] compile out/soong/.bootstrap/blueprint-deptools/pkg/github.com/google/blueprint/deptools.a
...<SNIP>...
[ 97% 136/139] test android/soong/sysprop
[ 98% 137/139] test android/soong/apex
[ 99% 138/139] cp out/soong/.bootstrap/bin/soong_build
[100% 139/139] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
error: external/iptables/iptables/Android.bp:33:1: module "xtables.lock" variant "android_arm64_armv8-a_cortex-a73_core": module source path "external/iptables/iptables/xtables.lock" does not exist
ninja: build stopped: subcommand failed.
08:23:24 soong bootstrap failed with: exit status 1
#### failed to build some targets (39 seconds) ####
>> [Fri Feb 19 08:23:24 UTC 2021] Failed build for walleye
>> [Fri Feb 19 08:23:24 UTC 2021] Finishing build for walleye
>> [Fri Feb 19 08:23:24 UTC 2021] Cleaning source dir for device walleye
08:23:25 Entire build directory removed.
#### build completed successfully (1 seconds) ####
What is the expected correct behavior?
Build finishes successfully and a binary image is generated.
Technical information
Relevant logs (adb logcat
)
Terminal & log output as per above.
Relevant screenshots
No screen shots.
Solutions
Workaround
Possible fixes