当我根据xilinx.wiki构建U-Boot时,遇到以下错误消息,有人可以帮助我吗?
wheatley@ubuntu:~/Desktop/uboot/u-boot-xlnx-xilinx-v2018.3$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
CHK include/config/uboot.release
CHK include/generated/version_autogenerated.h
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
CHK include/generated/generic-asm-offsets.h
CHK include/generated/asm-offsets.h
HOSTCC tools/mkenvimage.o
HOSTLD tools/mkenvimage
HOSTCC tools/fit_image.o
HOSTCC tools/image-host.o
HOSTCC tools/dumpimage.o
HOSTLD tools/dumpimage
HOSTCC tools/mkimage.o
HOSTLD tools/mkimage
CC arch/arm/cpu/armv8/cpu.o
cc1: warning: unknown register name: x18
In file included from ./arch/arm/include/asm/bitops.h:193,
from include/linux/bitops.h:131,
from include/common.h:25,
from arch/arm/cpu/armv8/cpu.c:14:
include/asm-generic/bitops/__fls.h: In function '__fls':
include/asm-generic/bitops/__fls.h:17:21: warning: left shift count >= width of type [-Wshift-count-overflow]
17 | if (!(word & (~0ul << 32))) {
| ^~
include/asm-generic/bitops/__fls.h:19:8: warning: left shift count >= width of type [-Wshift-count-overflow]
19 | word <<= 32;
| ~~~~
include/asm-generic/bitops/__fls.h:22:21: warning: left shift count >= width of type [-Wshift-count-overflow]
22 | if (!(word & (~0ul << (BITS_PER_LONG-16)))) {
| ^~
include/asm-generic/bitops/__fls.h:26:21: warning: left shift count >= width of type [-Wshift-count-overflow]
26 | if (!(word & (~0ul << (BITS_PER_LONG-8)))) {
| ^~
include/asm-generic/bitops/__fls.h:30:21: warning: left shift count >= width of type [-Wshift-count-overflow]
30 | if (!(word & (~0ul << (BITS_PER_LONG-4)))) {
| ^~
include/asm-generic/bitops/__fls.h:34:21: warning: left shift count >= width of type [-Wshift-count-overflow]
34 | if (!(word & (~0ul << (BITS_PER_LONG-2)))) {
| ^~
include/asm-generic/bitops/__fls.h:38:21: warning: left shift count >= width of type [-Wshift-count-overflow]
38 | if (!(word & (~0ul << (BITS_PER_LONG-1))))
| ^~
In file included from ./arch/arm/include/asm/bitops.h:194,
from include/linux/bitops.h:131,
from include/common.h:25,
from arch/arm/cpu/armv8/cpu.c:14:
include/asm-generic/bitops/__ffs.h: In function '__ffs':
include/asm-generic/bitops/__ffs.h:19:8: warning: right shift count >= width of type [-Wshift-count-overflow]
19 | word >>= 32;
| ~~~~
{standard input}: Assembler messages:
{standard input}:36: Error: unexpected character `n' in type specifier {standard input}:36: Error: bad instruction `b.ne 1b'
make[1]: *** [scripts/Makefile.build:281: arch/arm/cpu/armv8/cpu.o] Error 1
make: *** [Makefile:1286: arch/arm/cpu/armv8] Error 2
尝试寻找相关解决方案,包括修改Makefile中的交叉编译器,但还是报错 第 249 行是我添加到 Makefile 中的内容
244 # set default to nothing for native builds
245 ifeq ($(HOSTARCH),$(ARCH))
246 CROSS_COMPILE ?=
247 endif
248
249 CROSS_COMPILE = arm-linux-gnueabihf-
aarch64-linux-gnu-的交叉编译器