lineageos 16

skoar

Senior Member
Jan 27, 2017
148
241
53
build fails with the following error

[ 69% 65628/93948] //vendor/lineage/build/soong:generated_kernel_includes generate
FAILED: /home/skoar/android/lineageos/out/soong/.intermediates/vendor/lineage/build/soong/generated_kernel_includes/gen/.dummy_dep
/home/skoar/android/lineageos/out/soong/host/linux-x86/bin/sbox --sandbox-path /home/skoar/android/lineageos/out/soong/.temp --output-root /home/skoar/android/lineageos/out/soong/.intermediates/vendor/lineage/build/soong/generated_kernel_includes/gen --copy-all-output -c 'make -j CFLAGS_MODULE="-fno-pic" -C O=__SBOX_OUT_DIR__ ARCH=arm64 CROSS_COMPILE="/usr/bin/ccache aarch64-linux-androidkernel-" CROSS_COMPILE_ARM32="arm-linux-androideabi-" headers_install' && touch /home/skoar/android/lineageos/out/soong/.intermediates/vendor/lineage/build/soong/generated_kernel_includes/gen/.dummy_dep
make: *** O=/home/skoar/android/lineageos/out/soong/.temp/sbox985711399: No such file or directory. Stop.
sbox command (make -j CFLAGS_MODULE="-fno-pic" -C O=/home/skoar/android/lineageos/out/soong/.temp/sbox985711399 ARCH=arm64 CROSS_COMPILE="/usr/bin/ccache aarch64-linux-androidkernel-" CROSS_COMPILE_ARM32="arm-linux-androideabi-" headers_install) failed with err "exit status 2"

[ 69% 65635/93948] //frameworks/base:gen-platform-proto-constants generate
ninja: build stopped: subcommand failed.
11:35:26 ninja failed with: exit status 1

p.s. I'm using prebuilt kernel
 

nitin.chobhe

Recognized Contributor
Jan 3, 2013
8,103
19,511
263
Pune
Three questions:
1. What device are you building for?
2. Does your device have any working Pie ROM?
3. Did you make the changes in the source needed for using the pre-built kernel?

Nitin
 

skoar

Senior Member
Jan 27, 2017
148
241
53
Three questions:
1. What device are you building for?
2. Does your device have any working Pie ROM?
3. Did you make the changes in the source needed for using the pre-built kernel?

Nitin
1. Lenovo tab4 10 (X304L)
2. No I'm trying to do a bringup
3. Yes added TARGET_PREBUILT_KERNEL in boardconfig and
added the required PRODUCT_COPY_FILES in device.mk
 

nitin.chobhe

Recognized Contributor
Jan 3, 2013
8,103
19,511
263
Pune
1. Lenovo tab4 10 (X304L)
2. No I'm trying to do a bringup
3. Yes added TARGET_PREBUILT_KERNEL in boardconfig and
added the required PRODUCT_COPY_FILES in device.mk
Ok! As far as I understand it, adding just the TARGET_PREBUILT_KERNEL in boardconfig and a change in device make file will not help you. Lineage team (and other ROMs) has done a lot of changes (thousands of commits) in the android/build (and some other) repos as can be seen here:

https://github.com/LineageOS/android_build/commits/lineage-16.0/core/Makefile

So, I would suggest you to build the kernel inline; that would save a lot of your efforts.

Nitin