Xiaomi_Kernel_OpenSource
Xiaomi_Kernel_OpenSource copied to clipboard
MI MIX 3 5G (andromeda-p-oss) make failed
My env:
System: Debian 12 Bookworm
ARCH=arm64
SUBARCH=arm64
CROSS_COMPILE=/home/fck/dev/andromeda-p-oss/toolchain/bin/aarch64-linux-android-
try make
$ make O=out andromeda_user_defconfig
make O=out andromeda_user_defconfig
make[1]: Entering directory '/home/fck/dev/andromeda-p-oss/out'
GEN ./Makefile
#
# configuration written to .config
#
make[1]: Leaving directory '/home/fck/dev/andromeda-p-oss/out'
$ make O=out 2>&1 | tee kernel.log
make[1]: Entering directory '/home/fck/dev/andromeda-p-oss/out'
CHK include/config/kernel.release
Using .. as source for kernel
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL ../scripts/checksyscalls.sh
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/compile.h
CC arch/arm64/mm/fault.o
../arch/arm64/mm/fault.c: In function 'mem_abort_decode':
../arch/arm64/mm/fault.c:127:2: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'unsigned int' [-Wformat=]
error, forbidden warning: fault.c:127
make[2]: *** [../scripts/Makefile.build:364: arch/arm64/mm/fault.o] Error 1
make[1]: *** [/home/fck/dev/andromeda-p-oss/Makefile:1135: arch/arm64/mm] Error 2
make[1]: Leaving directory '/home/fck/dev/andromeda-p-oss/out'
make: *** [Makefile:146: sub-make] Error 2
UPD (in Ubuntu 18.04)
$ make O=out 2>&1 | tee kernel.log
make[1]: Entering directory '/home/fck/Mi_Kernel/andromeda-p-oss/out'
CHK include/config/kernel.release
Using .. as source for kernel
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL ../scripts/checksyscalls.sh
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/compile.h
CC arch/arm64/mm/fault.o
../arch/arm64/mm/fault.c: In function 'mem_abort_decode':
../arch/arm64/mm/fault.c:127:2: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'unsigned int' [-Wformat=]
error, forbidden warning: fault.c:127
../scripts/Makefile.build:363: recipe for target 'arch/arm64/mm/fault.o' failed
make[2]: *** [arch/arm64/mm/fault.o] Error 1
/home/fck/Mi_Kernel/andromeda-p-oss/Makefile:1135: recipe for target 'arch/arm64/mm' failed
make[1]: *** [arch/arm64/mm] Error 2
make[1]: Leaving directory '/home/fck/Mi_Kernel/andromeda-p-oss/out'
Makefile:146: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
same