[G3 Android Development] ChrisGermany2017:
Hi HardStyl3r,

thank you very much for your approach on Lineageos 17 on the LG G3!

Today i try to build with a fresh start and i run into an Error on building Lineageos. However i have no Google Account and i just want confirm it here. For the case that someone else run into it too.

Its about Perl and the dynamic Kernel generating modules. If you sync right now the Soong will use a fail path.

Error:

[ 40% 31917/79668] //vendor/lineage/build/soong:generated_kernel_includes generate
FAILED: out/soong/.intermediates/vendor/lineage/build/soong/generated_kernel_includes/gen/.dummy_dep
out/soong/host/linux-x86/bin/sbox --sandbox-path out/soong/.temp --output-root out/soong/.intermediates/vendor/lineage/build/soong/generated_kernel_includes/gen --copy-all-output -c 'PATH=/home/chrisgermany2017/android/lineage17/prebuilts/tools-lineage/linux-x86/bin:/home/chrisgermany2017/android/lineage17/prebuilts/build-tools/path/linux-x86:/home/chrisgermany2017/android/lineage17/out/.path LD_LIBRARY_PATH=/home/chrisgermany2017/android/lineage17/prebuilts/tools-lineage/linux-x86/lib: PERL5LIB=/home/chrisgermany2017/android/lineage17/prebuilts/tools-lineage/common/perl-base$ /home/chrisgermany2017/android/lineage17/prebuilts/build-tools/linux-x86/bin/make -j4 CFLAGS_MODULE="-fno-pic" HOSTCFLAGS="-I/usr/include -I/usr/include/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib64" HOSTCC=/home/chrisgermany2017/android/lineage17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-gcc HOSTCXX=/home/chrisgermany2017/android/lineage17/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.17-4.8/bin/x86_64-linux-g++ -C kernel/lge/g3 O=/home/chrisgermany2017/android/lineage17/__SBOX_OUT_DIR__ ARCH=arm CROSS_COMPILE=" /home/chrisgermany2017/android/lineage17/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-" headers_install' && touch out/soong/.intermediates/vendor/lineage/build/soong/generated_kernel_includes/gen/.dummy_dep

My Perl System use perl Version 5.30.1

@INC:
/etc/perl
/usr/local/lib64/perl5/5.30.1/x86_64-linux
/usr/local/lib64/perl5/5.30.1
/usr/lib64/perl5/vendor_perl/5.30.1/x86_64-linux
/usr/lib64/perl5/vendor_perl/5.30.1
/usr/lib64/perl5/5.30.1/x86_64-linux
/usr/lib64/perl5/5.30.1

But the Build Process try this:

(@INC contains: /home/chrisgermany2017/android/lineage17/prebuilts/tools-lineage/common/perl-base$ /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base)

What i am ask for, if you have a second, look at review.lineageos.org

https://review.lineageos.org/c/LineageOS/android_vendor_lineage/+/256000

Igor Kovalenko report this issue on 5. April 2020, report it and theres a patch too.

https://review.lineageos.org/c/Line...lineage/+/256000/8/config/BoardConfigSoong.mk

It just got not merged.

Have a good time and stay safe and sound!

Edit: Sorry i have to ask for Help.

At 99% the Build Process stops with this Error Message:

[ 99% 79262/79668] //art/build/apex:art-check-release-apex-gen generate art-check-release-apex-gen.dummy
FAILED: out/soong/.intermediates/art/build/apex/art-check-release-apex-gen/gen/art-check-release-apex-gen.dummy
rm -rf out/soong/.intermediates/art/build/apex/art-check-release-apex-gen/gen && out/soong/host/linux-x86/bin/sbox --sandbox-path out/soong/.temp --output-root out/soong/.intermediates/art/build/apex/art-check-release-apex-gen/gen -c 'out/soong/host/linux-x86/bin/art-apex-tester --debugfs out/soong/host/linux-x86/bin/debugfs --tmpdir __SBOX_OUT_DIR__ out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/com.android.runtime.release.apex && touch __SBOX_OUT_FILES__' __SBOX_OUT_DIR__/art-check-release-apex-gen.dummy
.path_interposer: no python-exec wrapped executable found in /usr/lib/python-exec.
sbox command (out/soong/host/linux-x86/bin/art-apex-tester --debugfs out/soong/host/linux-x86/bin/debugfs --tmpdir out/soong/.temp/sbox463640354 out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/com.android.runtime.release.apex && touch out/soong/.temp/sbox463640354/art-check-release-apex-gen.dummy) failed with err "exit status 127"

17:23:05 ninja failed with: exit status 1

.path_interposer: no python-exec wrapped executable found in /usr/lib/python-exec.

How have i to configure python for soong?

As this Link describe Android 10 and the build process need some kind of white listing for every tool. On the first Run i used an virtuel python2.7 environment to build.

But with python3.6 in the second run it failed too.

$ ls -lah /usr/lib/python-exec
total 32K
drwxr-xr-x 7 root root 4.0K May 1 12:16 .
drwxr-xr-x 31 root root 4.0K Apr 26 21:23 ..
-rwxr-xr-x 1 root root 2.3K May 1 12:16 python-exec2
drwxr-xr-x 2 root root 4.0K Apr 26 21:27 python2.7
drwxr-xr-x 2 root root 4.0K Feb 26 07:03 python3.5
drwxr-xr-x 2 root root 4.0K Apr 26 21:25 python3.6
drwxr-xr-x 2 root root 4.0K Apr 26 21:31 python3.7
drwxr-xr-x 2 root root 4.0K Apr 26 21:28 python3.8

$ python --version
Python 3.6.10