Hi there,
Can you help me to find u-boot build failure cause. Trying to build image with Android 11 and 12 repos, in both cases same error stack:
/usr/bin/ld: tools/image-host.o: in function __read_once_word_nocheck': image-host.c:(.text+0x0): multiple definition of
__read_once_word_nocheck’; tools/common/bootm.o:bootm.c:(.text+0x0): first defined here
/usr/bin/ld: tools/image-host.o: in function read_word_at_a_time': image-host.c:(.text+0x10): multiple definition of
read_word_at_a_time’; tools/common/bootm.o:bootm.c:(.text+0x10): first defined here
/usr/bin/ld: tools/image-host.o: in function __read_once_word_nocheck': image-host.c:(.text+0x0): multiple definition of
__read_once_word_nocheck’; tools/common/bootm.o:bootm.c:(.text+0x0): first defined here
/usr/bin/ld: tools/image-host.o: in function read_word_at_a_time': image-host.c:(.text+0x10): multiple definition of
read_word_at_a_time’; tools/common/bootm.o:bootm.c:(.text+0x10): first defined here
/usr/bin/ld: tools/common/bootm.o: in function read_word_at_a_time': bootm.c:(.text+0x20): undefined reference to
kasan_check_read’
/usr/bin/ld: tools/common/bootm.o: in function read_word_at_a_time': bootm.c:(.text+0x20): undefined reference to
kasan_check_read’
/usr/bin/ld: tools/image-host.o: in function read_word_at_a_time': image-host.c:(.text+0x20): undefined reference to
kasan_check_read’
/usr/bin/ld: tools/image-host.o: in function read_word_at_a_time': image-host.c:(.text+0x20): undefined reference to
kasan_check_read’
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make[1]: *** [scripts/Makefile.host:108: tools/dumpimage] Error 1
make[1]: *** Waiting for unfinished jobs…
make[1]: *** [scripts/Makefile.host:108: tools/mkimage] Error 1
make: *** [Makefile:1305: tools] Error 2
Build uboot failed!
Thanks upfront.