[Xiaomi Mi 4C] zhanyue1124:
i have remove ccach in Makefile,but in the end ,I encounter the error below

[ 96% 647/668] Target userdata fs image: /home/zhj/code/LineageOs/out/target/product/libra/userdata.img

Running: mkuserimg.sh -s /home/zhj/code/LineageOs/out/target/product/libra/data /home/zhj/code/LineageOs/out/target/product/libra/userdata.img ext4 data 12469648896 -D /home/zhj/code/LineageOs/out/target/product/libra/system -L data /home/zhj/code/LineageOs/out/target/product/libra/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin

make_ext4fs -s -T -1 -S /home/zhj/code/LineageOs/out/target/product/libra/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin -L data -l 12469648896 -a data /home/zhj/code/LineageOs/out/target/product/libra/userdata.img /home/zhj/code/LineageOs/out/target/product/libra/data /home/zhj/code/LineageOs/out/target/product/libra/system

Creating filesystem with parameters:

Size: 12469645312

Block size: 4096

Blocks per group: 32768

Inodes per group: 8192

Inode size: 256

Journal blocks: 32768

Label: data

Blocks: 3044347

Block groups: 93

Reserved block group size: 743

Created filesystem with 38/761856 inodes and 90385/3044347 blocks

/home/zhj/code/LineageOs/out/target/product/libra/userdata.img maxsize=12730643904 blocksize=135168 total=149892064 reserve=128679936

[ 97% 654/668] Building Kernel

make: Entering directory '/home/zhj/code/LineageOs/kernel/xiaomi/libra'

GEN /home/zhj/code/LineageOs/out/target/product/libra/obj/KERNEL_OBJ/Makefile

scripts/kconfig/conf --silentoldconfig Kconfig

warning: (SND_SOC_APQ8074 && SND_SOC_MSM8994) selects SND_SOC_MSM_HDMI_CODEC_RX which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && FB_MSM_MDSS_HDMI_PANEL && (SND_SOC_MSM8974 || SND_SOC_APQ8084 || SND_SOC_MSM8994))

warning: (SND_SOC_APQ8074 && SND_SOC_MSM8994) selects SND_SOC_MSM_HDMI_CODEC_RX which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && FB_MSM_MDSS_HDMI_PANEL && (SND_SOC_MSM8974 || SND_SOC_APQ8084 || SND_SOC_MSM8994))

GEN /home/zhj/code/LineageOs/out/target/product/libra/obj/KERNEL_OBJ/Makefile

CHK include/generated/uapi/linux/version.h

CC scripts/mod/devicetable-offsets.s

GEN scripts/mod/devicetable-offsets.h

HOSTCC scripts/mod/file2alias.o

HOSTLD scripts/mod/modpost

Using /home/zhj/code/LineageOs/kernel/xiaomi/libra as source for kernel

CHK include/generated/utsrelease.h

CALL /home/zhj/code/LineageOs/kernel/xiaomi/libra/scripts/checksyscalls.sh

CHK include/generated/compile.h

GZIP kernel/config_data.gz

CHK kernel/config_data.h

make[2]: 'arch/arm64/boot/Image' is up to date.

make: Leaving directory '/home/zhj/code/LineageOs/kernel/xiaomi/libra'

Building DTBs

make: Entering directory '/home/zhj/code/LineageOs/kernel/xiaomi/libra'

CC scripts/mod/devicetable-offsets.s

GEN scripts/mod/devicetable-offsets.h

HOSTCC scripts/mod/file2alias.o

HOSTLD scripts/mod/modpost

make[2]: Nothing to be done for 'dtbs'.

make[2]: Nothing to be done for 'dtbs'.

make: Leaving directory '/home/zhj/code/LineageOs/kernel/xiaomi/libra'

[ 98% 657/668] Target boot image: /home/zhj/code/LineageOs/out/target/product/libra/boot.img

FAILED: /home/zhj/code/LineageOs/out/target/product/libra/boot.img

/bin/bash -c "(/home/zhj/code/LineageOs/out/host/linux-x86/bin/mkbootimg --kernel /home/zhj/code/LineageOs/out/target/product/libra/kernel --ramdisk /home/zhj/code/LineageOs/out/target/product/libra/ramdisk.img --base 0x00000000 --pagesize 4096 --cmdline "console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 boot_cpus=0-5 buildvariant=userdebug" --os_version 8.1.0 --os_patch_level 2018-05-05 -2 --output /home/zhj/code/LineageOs/out/target/product/libra/boot.img ) && (size=\$(for i in /home/zhj/code/LineageOs/out/target/product/libra/boot.img; do stat --format "%s" "\$i" | tr -d '\\n'; echo +; done; echo 0); total=\$(( \$( echo "\$size" ) )); printname=\$(echo -n "/home/zhj/code/LineageOs/out/target/product/libra/boot.img" | tr " " +); img_blocksize=135168; twoblocks=\$((img_blocksize * 2)); onepct=\$(((((69206016 / 100) - 1) / img_blocksize + 1) * img_blocksize)); reserve=\$((twoblocks > onepct ? twoblocks : onepct)); maxsize=\$((69206016 - reserve)); echo "\$printname maxsize=\$maxsize blocksize=\$img_blocksize total=\$total reserve=\$reserve"; if [ "\$total" -gt "\$maxsize" ]; then echo "error: \$printname too large (\$total > [69206016 - \$reserve])"; false; elif [ "\$total" -gt \$((maxsize - 32768)) ]; then echo "WARNING: \$printname approaching size limit (\$total now; limit \$maxsize)"; fi )"

usage: mkbootimg [-h] --kernel KERNEL [--ramdisk RAMDISK] [--second SECOND]

[--cmdline CMDLINE] [--base BASE]

[--kernel_offset KERNEL_OFFSET]

[--ramdisk_offset RAMDISK_OFFSET]

[--second_offset SECOND_OFFSET] [--os_version OS_VERSION]

[--os_patch_level OS_PATCH_LEVEL] [--tags_offset TAGS_OFFSET]

[--board BOARD]

[--pagesize {2048,4096,8192,16384,32768,65536,131072}] [--id]

[--dt DT] -o OUTPUT

mkbootimg: error: unrecognized arguments: -2

ninja: build stopped: subcommand failed.

10:58:38 ninja failed with: exit status 1