Error while building halium-boot for Xiaomi Redmi 3(ido)
-
Hello All,
I was trying to build Ubuntu Touch for Redmi 3 (ido) but when I build the halium-boot image I get the following errormake: Entering directory '/home/appaiyah/Redmi-3/halium' ============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=7.1.1 LINEAGE_VERSION=14.1-20240909-UNOFFICIAL-ido TARGET_PRODUCT=lineage_ido TARGET_BUILD_VARIANT=userdebug TARGET_BUILD_TYPE=release TARGET_BUILD_APPS= TARGET_ARCH=arm64 TARGET_ARCH_VARIANT=armv8-a TARGET_CPU_VARIANT=cortex-a53 TARGET_2ND_ARCH=arm TARGET_2ND_ARCH_VARIANT=armv7-a-neon TARGET_2ND_CPU_VARIANT=cortex-a53 HOST_ARCH=x86_64 HOST_2ND_ARCH=x86 HOST_OS=linux HOST_OS_EXTRA=Linux-5.15.0-67-generic-x86_64-with-glibc2.29 HOST_CROSS_OS=windows HOST_CROSS_ARCH=x86 HOST_CROSS_2ND_ARCH=x86_64 HOST_BUILD_TYPE=release BUILD_ID=NOF27B OUT_DIR=/home/appaiyah/Redmi-3/halium/out ============================================ Running kati to generate build-lineage_ido.ninja... No need to regenerate ninja file Starting build with ninja ninja: Entering directory `.' [ 25% 2/8] Building Kernel Config make: Entering directory '/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916' GEN /home/appaiyah/Redmi-3/halium/out/target/product/ido/obj/KERNEL_OBJ/Makefile arch/arm64/configs/lineage_ido_defconfig:3819:warning: override: reassigning to symbol DEFAULT_SECURITY arch/arm64/configs/lineage_ido_defconfig:4008:warning: override: reassigning to symbol DEFAULT_SECURITY # # configuration written to .config # make: Leaving directory '/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916' make: Entering directory '/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916' GEN /home/appaiyah/Redmi-3/halium/out/target/product/ido/obj/KERNEL_OBJ/Makefile scripts/kconfig/conf --savedefconfig=defconfig Kconfig make: Leaving directory '/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916' [ 37% 3/8] Building Kernel Headers make: Entering directory '/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916' GEN /home/appaiyah/Redmi-3/halium/out/target/product/ido/obj/KERNEL_OBJ/Makefile arch/arm64/configs/lineage_ido_defconfig:3819:warning: override: reassigning to symbol DEFAULT_SECURITY arch/arm64/configs/lineage_ido_defconfig:4008:warning: override: reassigning to symbol DEFAULT_SECURITY # # configuration written to .config # make: Leaving directory '/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916' make: Entering directory '/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916' CHK include/generated/uapi/linux/version.h make: Leaving directory '/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916' [ 50% 4/8] Building Kernel FAILED: TARGET_KERNEL_BINARIES /bin/bash -c "(make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/xiaomi/msm8916 O=/home/appaiyah/Redmi-3/halium/out/target/product/ido/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-androidkernel-\" Image.gz-dtb ) && (if grep -q '^CONFIG_OF=y' /home/appaiyah/Redmi-3/halium/out/target/product/ido/obj/KERNEL_OBJ/.config; then echo \"Building DTBs\"; make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/xiaomi/msm8916 O=/home/appaiyah/Redmi-3/halium/out/target/product/ido/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-androidkernel-\" dtbs; fi ) && (if grep -q '^CONFIG_MODULES=y' /home/appaiyah/Redmi-3/halium/out/target/product/ido/obj/KERNEL_OBJ/.config; then echo \"Building Kernel Modules\"; make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/xiaomi/msm8916 O=/home/appaiyah/Redmi-3/halium/out/target/product/ido/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\" aarch64-linux-androidkernel-\" modules; fi )" make: Entering directory '/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916' GEN /home/appaiyah/Redmi-3/halium/out/target/product/ido/obj/KERNEL_OBJ/Makefile scripts/kconfig/conf --silentoldconfig Kconfig GEN /home/appaiyah/Redmi-3/halium/out/target/product/ido/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 Using /home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916 as source for kernel CHK include/generated/utsrelease.h HOSTLD scripts/mod/modpost make[2]: Nothing to be done for 'dtbs'. make[2]: Nothing to be done for 'dtbs'. CALL /home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/scripts/checksyscalls.sh CHK include/generated/compile.h BC kernel/timeconst.h CC fs/ecryptfs/file.o CC crypto/api.o CC security/selinux/hooks.o b"/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/fs/ecryptfs/file.c: In function 'ecryptfs_readdir':\n" None b"/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/fs/ecryptfs/file.c:130:16: error: assignment of read-only member 'actor'\n" None b' buf.ctx.actor = ecryptfs_filldir;\n' None b' ^\n' None make[3]: *** [/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/scripts/Makefile.build:308: fs/ecryptfs/file.o] Error 1 make[2]: *** [/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/scripts/Makefile.build:455: fs/ecryptfs] Error 2 make[1]: *** [/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/Makefile:825: fs] Error 2 make[1]: *** Waiting for unfinished jobs.... CC crypto/cipher.o b'In file included from /home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/include/net/inet_hashtables.h:32:0,\n' None b' from /home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/include/net/tcp.h:37,\n' None b' from /home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/security/selinux/hooks.c:55:\n' None b"/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/include/net/route.h: In function 'ip_route_output_ports':\n" None b'/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/include/net/route.h:146:55: error: type mismatch in conditional expression\n' None b' daddr, saddr, dport, sport, sk ? sock_i_uid(sk) : 0);\n' None b' ^\n' None b"/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/include/net/route.h: In function 'ip_route_connect_init':\n" None b"/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/include/net/route.h:256:2: error: incompatible type for argument 12 of 'flowi4_init_output'\n" None b' flowi4_init_output(fl4, oif, sk->sk_mark, tos, RT_SCOPE_UNIVERSE,\n' None b' ^\n' None b'In file included from /home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/include/linux/netfilter.h:275:0,\n' None b' from /home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/include/uapi/linux/netfilter_ipv4.h:8,\n' None b' from /home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/include/linux/netfilter_ipv4.h:7,\n' None b' from /home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/security/selinux/hooks.c:49:\n' None b"/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/include/net/flow.h:87:20: note: expected 'uid_t' but argument is of type 'kuid_t'\n" None b' static inline void flowi4_init_output(struct flowi4 *fl4, int oif,\n' None b' ^\n' None make[3]: *** [/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/scripts/Makefile.build:308: security/selinux/hooks.o] Error 1 make[2]: *** [/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/scripts/Makefile.build:455: security/selinux] Error 2 make[1]: *** [/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/Makefile:825: security] Error 2 CC crypto/compress.o CC crypto/memneq.o CC crypto/algapi.o CC kernel/cgroup.o CC crypto/scatterwalk.o CC crypto/proc.o b"/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/kernel/cgroup.c: In function 'subsys_cgroup_allow_attach':\n" None b"/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/kernel/cgroup.c:2138:37: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')\n" None b' if (current != task && cred->euid != tcred->uid &&\n' None b' ^\n' None b"/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/kernel/cgroup.c:2139:18: error: invalid operands to binary != (have 'kuid_t' and 'kuid_t')\n" None b' cred->euid != tcred->suid)\n' None b' ^\n' None make[2]: *** [/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/scripts/Makefile.build:308: kernel/cgroup.o] Error 1 make[1]: *** [/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916/Makefile:825: kernel] Error 2 CC crypto/ablkcipher.o CC crypto/blkcipher.o CC crypto/ahash.o CC crypto/shash.o CC crypto/algboss.o CC crypto/testmgr.o CC crypto/crypto_wq.o CC crypto/aead.o CC crypto/chainiv.o CC crypto/eseqiv.o CC crypto/seqiv.o LD crypto/crypto_hash.o CC crypto/pcompress.o LD crypto/cryptomgr.o CC crypto/hmac.o CC crypto/xcbc.o CC crypto/crypto_null.o CC crypto/md4.o CC crypto/md5.o CC crypto/sha1_generic.o CC crypto/sha256_generic.o CC crypto/gf128mul.o CC crypto/ecb.o CC crypto/cbc.o CC crypto/xts.o CC crypto/ctr.o CC crypto/cryptd.o CC crypto/des_generic.o CC crypto/twofish_generic.o CC crypto/twofish_common.o CC crypto/aes_generic.o CC crypto/arc4.o CC crypto/deflate.o CC crypto/crc32c.o CC crypto/crc32.o CC crypto/authenc.o CC crypto/authencesn.o CC crypto/rng.o CC crypto/krng.o CC crypto/ansi_cprng.o CC crypto/ablk_helper.o LD crypto/crypto.o LD crypto/crypto_algapi.o LD crypto/crypto_blkcipher.o LD crypto/built-in.o make: *** [Makefile:130: sub-make] Error 2 make: Leaving directory '/home/appaiyah/Redmi-3/halium/kernel/xiaomi/msm8916' ninja: build stopped: subcommand failed. make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1 make: Leaving directory '/home/appaiyah/Redmi-3/halium' #### make failed to build some targets (31 seconds) ####
Is there any issue with the kernel files for my device or am I doing anything wrong?
Thanks in advance for any help.