Compiling Uboot error for IMX8MP EVK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Compiling Uboot error for IMX8MP EVK

Jump to solution
2,024 Views
Harris
Contributor III

Dears,

I download the latest Uboot source code from https://github.com/Freescale/u-boot-fslc.

My target board is IMX8MP EVK. I use this config mx8mp_evk_defconfig for my Uboot compiling.

The Ubuntu 20.4 is my host system.

I run following commands to compile my uboot.

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- imx8mp_evk_defconfig
make V=1 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j2

Following errors report was present to me:

Would you please help to check and give some comments on my issues. Thank you  so much.

set -e; mkdir -p include/config/; echo "2021.04$(/bin/bash ./scripts/setlocalversion .)" < include/config/auto.conf > include/config/uboot.release.tmp; if [ -r include/config/uboot.release ] && cmp -s include/config/uboot.release include/config/uboot.release.tmp; then rm -f include/config/uboot.release.tmp; else : ' UPD include/config/uboot.release'; mv -f include/config/uboot.release.tmp include/config/uboot.release; fi
./scripts/check-config.sh u-boot.cfg ./scripts/config_whitelist.txt .
set -e; mkdir -p include/generated/; (if test -n "${SOURCE_DATE_EPOCH}"; then SOURCE_DATE="@${SOURCE_DATE_EPOCH}"; DATE=""; for date in gdate date.gnu date; do ${date} -u -d "${SOURCE_DATE}" >/dev/null 2>&1 && DATE="${date}"; done; if test -n "${DATE}"; then LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_DATE "%b %d %C%y"'; LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_TIME "%T"'; LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_TZ "%z"'; LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_DMI_DATE "%m/%d/%Y"'; LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_BUILD_DATE 0x%Y%m%d'; LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_EPOCH %s'; else return 42; fi; else LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"'; LC_ALL=C date +'#define U_BOOT_TIME "%T"'; LC_ALL=C date +'#define U_BOOT_TZ "%z"'; LC_ALL=C date +'#define U_BOOT_DMI_DATE "%m/%d/%Y"'; LC_ALL=C date +'#define U_BOOT_BUILD_DATE 0x%Y%m%d'; LC_ALL=C date +'#define U_BOOT_EPOCH %s'; fi) < Makefile > include/generated/timestamp_autogenerated.h.tmp; if [ -r include/generated/timestamp_autogenerated.h ] && cmp -s include/generated/timestamp_autogenerated.h include/generated/timestamp_autogenerated.h.tmp; then rm -f include/generated/timestamp_autogenerated.h.tmp; else : ' UPD include/generated/timestamp_autogenerated.h'; mv -f include/generated/timestamp_autogenerated.h.tmp include/generated/timestamp_autogenerated.h; fi
set -e; mkdir -p include/generated/; (if test -n "${DEVICE_TREE}"; then echo \#define DEVICE_TREE \"\"; else echo \#define DEVICE_TREE CONFIG_DEFAULT_DEVICE_TREE; fi) < Makefile > include/generated/dt.h.tmp; if [ -r include/generated/dt.h ] && cmp -s include/generated/dt.h include/generated/dt.h.tmp; then rm -f include/generated/dt.h.tmp; else : ' UPD include/generated/dt.h'; mv -f include/generated/dt.h.tmp include/generated/dt.h; fi
make -f ./scripts/Makefile.build obj=scripts/basic
rm -f .tmp_quiet_recordmcount
make -f ./scripts/Makefile.build obj=scripts
make -f ./scripts/Makefile.build obj=scripts/dtc
make -f ./scripts/Makefile.build obj=scripts/dtc/pylibfdt
rm -f scripts/dtc/pylibfdt/_libfdt*.so
unset CROSS_COMPILE; unset CFLAGS; CC="cc" LDSHARED="cc -shared " LDFLAGS="" VERSION="u-boot-2021.04" CPPFLAGS=" -I/home/harris/IMX8_Uboot/scripts/dtc/libfdt" OBJDIR=scripts/dtc/pylibfdt SOURCES="/home/harris/IMX8_Uboot/scripts/dtc/libfdt/fdt.c /home/harris/IMX8_Uboot/scripts/dtc/libfdt/fdt_ro.c /home/harris/IMX8_Uboot/scripts/dtc/libfdt/fdt_wip.c /home/harris/IMX8_Uboot/scripts/dtc/libfdt/fdt_sw.c /home/harris/IMX8_Uboot/scripts/dtc/libfdt/fdt_rw.c /home/harris/IMX8_Uboot/scripts/dtc/libfdt/fdt_strerror.c /home/harris/IMX8_Uboot/scripts/dtc/libfdt/fdt_empty_tree.c /home/harris/IMX8_Uboot/scripts/dtc/libfdt/fdt_addresses.c /home/harris/IMX8_Uboot/scripts/dtc/libfdt/fdt_overlay.c scripts/dtc/pylibfdt/libfdt.i" SWIG_OPTS="-I/home/harris/IMX8_Uboot/scripts/dtc/libfdt -I/home/harris/IMX8_Uboot/scripts/dtc/libfdt/.." python3 scripts/dtc/pylibfdt/setup.py --quiet build_ext --inplace
set -e; mkdir -p include/generated/; (echo \#define PLAIN_VERSION \"2021.04""\"; echo \#define U_BOOT_VERSION \"U-Boot \" PLAIN_VERSION; echo \#define U_BOOT_VERSION_NUM 2021; echo \#define U_BOOT_VERSION_NUM_PATCH $(echo 04 | sed -e "s/^0*//"); echo \#define CC_VERSION_STRING \"$(LC_ALL=C arm-linux-gnueabihf-gcc --version | head -n 1)\"; echo \#define LD_VERSION_STRING \"$(LC_ALL=C arm-linux-gnueabihf-ld.bfd --version | head -n 1)\"; ) < include/config/uboot.release > include/generated/version_autogenerated.h.tmp; if [ -r include/generated/version_autogenerated.h ] && cmp -s include/generated/version_autogenerated.h include/generated/version_autogenerated.h.tmp; then rm -f include/generated/version_autogenerated.h.tmp; else : ' UPD include/generated/version_autogenerated.h'; mv -f include/generated/version_autogenerated.h.tmp include/generated/version_autogenerated.h; fi
make -f ./scripts/Makefile.build obj=.
set -e; mkdir -p include/generated/; (set -e; echo "#ifndef __GENERIC_ASM_OFFSETS_H__"; echo "#define __GENERIC_ASM_OFFSETS_H__"; echo "/*"; echo " * DO NOT MODIFY."; echo " *"; echo " * This file was generated by Kbuild"; echo " */"; echo ""; sed -ne "s:[[:space:]]*\.ascii[[:space:]]*\"\(.*\)\":\1:; /^->/{s:->#\(.*\):/* \1 */:; s:^->\([^ ]*\) [\$#]*\([-0-9]*\) \(.*\):#define \1 \2 /* \3 */:; s:^->\([^ ]*\) [\$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"; echo ""; echo "#endif" ) < lib/asm-offsets.s > include/generated/generic-asm-offsets.h.tmp; if [ -r include/generated/generic-asm-offsets.h ] && cmp -s include/generated/generic-asm-offsets.h include/generated/generic-asm-offsets.h.tmp; then rm -f include/generated/generic-asm-offsets.h.tmp; else : ' UPD include/generated/generic-asm-offsets.h'; mv -f include/generated/generic-asm-offsets.h.tmp include/generated/generic-asm-offsets.h; fi
set -e; mkdir -p include/generated/; (set -e; echo "#ifndef __ASM_OFFSETS_H__"; echo "#define __ASM_OFFSETS_H__"; echo "/*"; echo " * DO NOT MODIFY."; echo " *"; echo " * This file was generated by Kbuild"; echo " */"; echo ""; sed -ne "s:[[:space:]]*\.ascii[[:space:]]*\"\(.*\)\":\1:; /^->/{s:->#\(.*\):/* \1 */:; s:^->\([^ ]*\) [\$#]*\([-0-9]*\) \(.*\):#define \1 \2 /* \3 */:; s:^->\([^ ]*\) [\$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"; echo ""; echo "#endif" ) < arch/arm/lib/asm-offsets.s > include/generated/asm-offsets.h.tmp; if [ -r include/generated/asm-offsets.h ] && cmp -s include/generated/asm-offsets.h include/generated/asm-offsets.h.tmp; then rm -f include/generated/asm-offsets.h.tmp; else : ' UPD include/generated/asm-offsets.h'; mv -f include/generated/asm-offsets.h.tmp include/generated/asm-offsets.h; fi
make -f ./scripts/Makefile.build obj=tools
cc -Wp,-MD,tools/.mkenvimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu11 -include ./include/compiler.h -idirafterinclude -idirafter./arch/arm/include -I./scripts/dtc/libfdt -I./tools -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -std=gnu99 -c -o tools/mkenvimage.o tools/mkenvimage.c
cc -Wp,-MD,tools/.fit_image.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu11 -include ./include/compiler.h -idirafterinclude -idirafter./arch/arm/include -I./scripts/dtc/libfdt -I./tools -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -std=gnu99 -DMKIMAGE_DTC=\""dtc"\" -c -o tools/fit_image.o tools/fit_image.c
cc -Wp,-MD,tools/.image-host.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu11 -include ./include/compiler.h -idirafterinclude -idirafter./arch/arm/include -I./scripts/dtc/libfdt -I./tools -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -std=gnu99 -c -o tools/image-host.o tools/image-host.c
cc -Wp,-MD,tools/.dumpimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu11 -include ./include/compiler.h -idirafterinclude -idirafter./arch/arm/include -I./scripts/dtc/libfdt -I./tools -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -std=gnu99 -c -o tools/dumpimage.o tools/dumpimage.c
cc -Wp,-MD,tools/.mkimage.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu11 -include ./include/compiler.h -idirafterinclude -idirafter./arch/arm/include -I./scripts/dtc/libfdt -I./tools -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -D_GNU_SOURCE -std=gnu99 -c -o tools/mkimage.o tools/mkimage.c
cc -o tools/mkenvimage tools/mkenvimage.o tools/os_support.o tools/lib/crc32.o
cc -o tools/dumpimage tools/aisimage.o tools/atmelimage.o tools/fit_common.o tools/fit_image.o tools/image-host.o tools/common/image-fit.o tools/common/fdt_region.o tools/common/bootm.o tools/lib/crc32.o tools/default_image.o tools/lib/fdtdec_common.o tools/lib/fdtdec.o tools/common/image.o tools/imagetool.o tools/imximage.o tools/imx8image.o tools/imx8mimage.o tools/kwbimage.o tools/lib/md5.o tools/lpc32xximage.o tools/mxsimage.o tools/omapimage.o tools/os_support.o tools/pblimage.o tools/pbl_crc32.o tools/vybridimage.o tools/stm32image.o tools/lib/rc4.o tools/rkcommon.o tools/rkimage.o tools/rksd.o tools/rkspi.o tools/socfpgaimage.o tools/sunxi_egon.o tools/lib/crc16.o tools/lib/sha1.o tools/lib/sha256.o tools/lib/sha512.o tools/common/hash.o tools/ublimage.o tools/zynqimage.o tools/zynqmpimage.o tools/zynqmpbif.o tools/libfdt/fdt.o tools/libfdt/fdt_ro.o tools/libfdt/fdt_wip.o tools/libfdt/fdt_sw.o tools/libfdt/fdt_rw.o tools/libfdt/fdt_strerror.o tools/libfdt/fdt_empty_tree.o tools/libfdt/fdt_addresses.o tools/libfdt/fdt_overlay.o tools/gpimage.o tools/gpimage-common.o tools/mtk_image.o tools/dumpimage.o
cc -o tools/mkimage tools/aisimage.o tools/atmelimage.o tools/fit_common.o tools/fit_image.o tools/image-host.o tools/common/image-fit.o tools/common/fdt_region.o tools/common/bootm.o tools/lib/crc32.o tools/default_image.o tools/lib/fdtdec_common.o tools/lib/fdtdec.o tools/common/image.o tools/imagetool.o tools/imximage.o tools/imx8image.o tools/imx8mimage.o tools/kwbimage.o tools/lib/md5.o tools/lpc32xximage.o tools/mxsimage.o tools/omapimage.o tools/os_support.o tools/pblimage.o tools/pbl_crc32.o tools/vybridimage.o tools/stm32image.o tools/lib/rc4.o tools/rkcommon.o tools/rkimage.o tools/rksd.o tools/rkspi.o tools/socfpgaimage.o tools/sunxi_egon.o tools/lib/crc16.o tools/lib/sha1.o tools/lib/sha256.o tools/lib/sha512.o tools/common/hash.o tools/ublimage.o tools/zynqimage.o tools/zynqmpimage.o tools/zynqmpbif.o tools/libfdt/fdt.o tools/libfdt/fdt_ro.o tools/libfdt/fdt_wip.o tools/libfdt/fdt_sw.o tools/libfdt/fdt_rw.o tools/libfdt/fdt_strerror.o tools/libfdt/fdt_empty_tree.o tools/libfdt/fdt_addresses.o tools/libfdt/fdt_overlay.o tools/gpimage.o tools/gpimage-common.o tools/mtk_image.o tools/mkimage.o
make -f ./scripts/Makefile.build obj=arch/arm/cpu
make -f ./scripts/Makefile.build obj=arch/arm/cpu/armv8
make -f ./scripts/Makefile.build obj=arch/arm/lib
arm-linux-gnueabihf-gcc -Wp,-MD,arch/arm/cpu/armv8/.cpu.o.d -nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/9/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -D__KERNEL__ -D__UBOOT__ -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -Os -fno-stack-protector -fno-delete-null-pointer-checks -Wno-stringop-truncation -Wno-maybe-uninitialized -fmacro-prefix-map=./= -g -fstack-usage -Wno-format-nonliteral -Wno-address-of-packed-member -Wno-unused-but-set-variable -Werror=date-time -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -mword-relocations -fno-pic -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -fno-common -ffixed-x18 -pipe -march=armv8-a -D__LINUX_ARM_ARCH__=8 -DKBUILD_BASENAME='"cpu"' -DKBUILD_MODNAME='"cpu"' -c -o arch/arm/cpu/armv8/cpu.o arch/arm/cpu/armv8/cpu.c
arm-linux-gnueabihf-gcc -Wp,-MD,arch/arm/lib/.crt0_64.o.d -nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/9/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -D__KERNEL__ -D__UBOOT__ -D__ASSEMBLY__ -fno-PIE -g -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -mword-relocations -fno-pic -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -fno-common -ffixed-x18 -pipe -march=armv8-a -D__LINUX_ARM_ARCH__=8 -c -o arch/arm/lib/crt0_64.o arch/arm/lib/crt0_64.S
cc1: warning: unknown register name: x18
cc1: warning: unknown register name: x18
./arch/arm/include/asm/macro.h: Assembler messages:
./arch/arm/include/asm/macro.h:65: Warning: unknown register 'x30' -- .req ignored
arch/arm/lib/crt0_64.S:84: Error: ARM register expected -- `ldr x0,=((0x40000000+(0x80000-256)))'
arch/arm/lib/crt0_64.S:86: Error: immediate expression requires a # prefix -- `bic sp,x0,#0xf'
arch/arm/lib/crt0_64.S:87: Error: ARM register expected -- `mov x0,sp'
arch/arm/lib/crt0_64.S:89: Error: immediate expression requires a # prefix -- `mov sp,x0'
arch/arm/lib/crt0_64.S:91: Error: ARM register expected -- `mov x18,x0'
arch/arm/lib/crt0_64.S:94: Error: ARM register expected -- `mov x0,#0'
arch/arm/lib/crt0_64.S:103: Error: ARM register expected -- `ldr x0,[x18,#88]'
arch/arm/lib/crt0_64.S:104: Error: immediate expression requires a # prefix -- `bic sp,x0,#0xf'
arch/arm/lib/crt0_64.S:105: Error: ARM register expected -- `ldr x18,[x18,#96]'
arch/arm/lib/crt0_64.S:117: Error: ARM register expected -- `ldr x9,[x18,#92]'
arch/arm/lib/crt0_64.S:118: Error: shift expression expected -- `add lr,lr,x9'
arch/arm/lib/crt0_64.S:119: Error: ARM register expected -- `ldr x0,[x18,#64]'
arch/arm/lib/crt0_64.S:149: Error: ARM register expected -- `ldr x0,=__bss_start'
arch/arm/lib/crt0_64.S:150: Error: ARM register expected -- `ldr x1,=__bss_end'
arch/arm/lib/crt0_64.S:152: Error: ARM register expected -- `str xzr,[x0],#8'
arch/arm/lib/crt0_64.S:153: Error: ARM register expected -- `cmp x0,x1'
arch/arm/lib/crt0_64.S:154: Error: unexpected character `l' in type specifier
arch/arm/lib/crt0_64.S:154: Error: bad instruction `b.lo clear_loop'
arch/arm/lib/crt0_64.S:157: Error: ARM register expected -- `mov x0,x18'
arch/arm/lib/crt0_64.S:158: Error: ARM register expected -- `ldr x1,[x18,#64]'
make[1]: *** [scripts/Makefile.build:301: arch/arm/lib/crt0_64.o] Error 1
make: *** [Makefile:1730: arch/arm/lib] Error 2
make: *** Waiting for unfinished jobs....
arm-linux-gnueabihf-gcc -Wp,-MD,arch/arm/cpu/armv8/.generic_timer.o.d -nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/9/include -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -D__KERNEL__ -D__UBOOT__ -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -Os -fno-stack-protector -fno-delete-null-pointer-checks -Wno-stringop-truncation -Wno-maybe-uninitialized -fmacro-prefix-map=./= -g -fstack-usage -Wno-format-nonliteral -Wno-address-of-packed-member -Wno-unused-but-set-variable -Werror=date-time -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -mword-relocations -fno-pic -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -fno-common -ffixed-x18 -pipe -march=armv8-a -D__LINUX_ARM_ARCH__=8 -DKBUILD_BASENAME='"generic_timer"' -DKBUILD_MODNAME='"generic_timer"' -c -o arch/arm/cpu/armv8/generic_timer.o arch/arm/cpu/armv8/generic_timer.c
In file included from ./arch/arm/include/asm/bitops.h:18,
from include/linux/bitops.h:152,
from ./arch/arm/include/asm/arch/imx-regs.h:80,
from include/configs/imx8mp_evk.h:11,
from include/config.h:5,
from include/common.h:16,
from arch/arm/cpu/armv8/cpu.c:13:
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;
| ^~~
In file included from ./arch/arm/include/asm/bitops.h:19,
from include/linux/bitops.h:152,
from ./arch/arm/include/asm/arch/imx-regs.h:80,
from include/configs/imx8mp_evk.h:11,
from include/config.h:5,
from include/common.h:16,
from arch/arm/cpu/armv8/cpu.c:13:
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))))
| ^~
cc1: warning: unknown register name: x18
In file included from ./arch/arm/include/asm/bitops.h:18,
from include/linux/bitops.h:152,
from ./arch/arm/include/asm/arch/imx-regs.h:80,
from include/configs/imx8mp_evk.h:11,
from include/config.h:5,
from include/common.h:16,
from arch/arm/cpu/armv8/generic_timer.c:7:
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;
| ^~~
In file included from ./arch/arm/include/asm/bitops.h:19,
from include/linux/bitops.h:152,
from ./arch/arm/include/asm/arch/imx-regs.h:80,
from include/configs/imx8mp_evk.h:11,
from include/config.h:5,
from include/common.h:16,
from arch/arm/cpu/armv8/generic_timer.c:7:
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))))
| ^~
{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:265: arch/arm/cpu/armv8/cpu.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from arch/arm/cpu/armv8/generic_timer.c:11:
arch/arm/cpu/armv8/generic_timer.c: At top level:
./arch/arm/include/asm/global_data.h:115:58: error: invalid register name for ‘gd’
115 | #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("x18")
| ^~
arch/arm/cpu/armv8/generic_timer.c:15:1: note: in expansion of macro ‘DECLARE_GLOBAL_DATA_PTR’
15 | DECLARE_GLOBAL_DATA_PTR;
| ^~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:265: arch/arm/cpu/armv8/generic_timer.o] Error 1
make: *** [Makefile:1730: arch/arm/cpu/armv8] Error 2

 

 

0 Kudos
1 Solution
2 Replies
2,006 Views
Harris
Contributor III

Dear,

Yes, I have not setup the BSP for my compiling action.

Thanks for your time.

0 Kudos