android_kernel_unisoc_ums512
android_kernel_unisoc_ums512 copied to clipboard
make failed
Preparing the environment
export ARCH=arm64
export SUBARCH=arm64
export CROSS_COMPILE=/home/fck/dev/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-
Try to make
make clean
make mrproper
make sprd_minimum_defconfig
make -j$(nproc)
After some time
HOSTCC scripts/dtc/dtc-lexer.lex.o
scripts/dtc/libfdt/dtbo_merge_check.c:8:5: warning: no previous prototype for ‘dtbo_merge_chk_main’ [-Wmissing-prototypes]
8 | int dtbo_merge_chk_main(int argc, char *argv[])
| ^~~~~~~~~~~~~~~~~~~
HOSTCC scripts/dtc/dtc-parser.tab.o
CHK include/generated/timeconst.h
UPD include/generated/timeconst.h
HOSTCC scripts/mod/file2alias.o
CHK include/generated/bounds.h
UPD include/generated/bounds.h
CC arch/arm64/kernel/asm-offsets.s
HOSTLD scripts/dtc/dtc
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [scripts/Makefile.host:111: scripts/dtc/dtc] Error 1
make[1]: *** [scripts/Makefile.build:671: scripts/dtc] Error 2
make[1]: *** Waiting for unfinished jobs....
HOSTLD scripts/mod/modpost
make: *** [Makefile:578: scripts] Error 2
make: *** Waiting for unfinished jobs....
CHK include/generated/asm-offsets.h
UPD include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh