[U-Boot] tpl build error "width suffixes are invalid in ARM mode"
Kever Yang
kever.yang at rock-chips.com
Wed Aug 30 08:33:32 UTC 2017
Hi
I get build error when I try to enable TPL for a new armv7 chip, the
error happen when I build arch/arm/lib/memcpy.S,
the file can pass the build for SPL but failed in TPL build, the log is
here:
The build can success if I remove the '-DCONFIT_TPL_BUILD' in red, any
people can help on this?
arm-linux-gnueabihf-gcc -Wp,-MD,tpl/arch/arm/lib/.memcpy.o.d -nostdinc
-isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/include -Iinclude
-I./arch/arm/include -include ./include/linux/kconfig.h -D__KERNEL__
-D__UBOOT__ -DCONFIG_SPL_BUILD -DCONFIG_TPL_BUILD -D__ASSEMBLY__ -g
-DCONFIG_THUMB2_KERNEL -D__ARM__ -Wa,-mimplicit-it=always -mthumb
-mthumb-interwork -mabi=aapcs-linux -mno-unaligned-access
-ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float
-pipe -march=armv7-a -D__LINUX_ARM_ARCH__=7
-I./arch/arm/mach-rockchip/include -c -o tpl/arch/arm/lib/memcpy.o
arch/arm/lib/memcpy.S
arch/arm/lib/memcpy.S: Assembler messages:
arch/arm/lib/memcpy.S:114: Error: width suffixes are invalid in ARM mode
-- `nop.w'
arch/arm/lib/memcpy.S:115: Error: width suffixes are invalid in ARM mode
-- `ldr.w r3,[r1],#4'
arch/arm/lib/memcpy.S:116: Error: width suffixes are invalid in ARM mode
-- `ldr.w r4,[r1],#4'
arch/arm/lib/memcpy.S:117: Error: width suffixes are invalid in ARM mode
-- `ldr.w r5,[r1],#4'
arch/arm/lib/memcpy.S:118: Error: width suffixes are invalid in ARM mode
-- `ldr.w r6,[r1],#4'
arch/arm/lib/memcpy.S:119: Error: width suffixes are invalid in ARM mode
-- `ldr.w r7,[r1],#4'
arch/arm/lib/memcpy.S:120: Error: width suffixes are invalid in ARM mode
-- `ldr.w r8,[r1],#4'
arch/arm/lib/memcpy.S:121: Error: width suffixes are invalid in ARM mode
-- `ldr.w lr,[r1],#4'
...
Thanks,
- Kever
More information about the U-Boot
mailing list