[U-Boot] toolchain problems when building iMX6 mx6qsabreauto (and another bootloader tool)
Abraham V.
abraham.varricatt at vvdntech.com
Thu Nov 28 05:22:02 CET 2013
Hello everyone,
I've got a copy of mainline uboot. Here's the last log message in it;
> git log --name-status HEAD^..HEAD
commit d19ad726bcd5d9106f7ba9c750462fcc369f1020
Author: Tom Rini <trini at ti.com>
Date: Mon Nov 25 16:49:32 2013 -0500
Prepare v2014.01-rc1
Signed-off-by: Tom Rini <trini at ti.com>
M Makefile
>
And well, I'm having trouble building images for the sabreauto board. Here
are the steps I follow,
> make distclean
> make mx6qsabreauto_config
> make
And this is the error I get;
make[1]: Leaving directory `/home/abraham/SPACE/temp_uboot/arch/arm/cpu'
/home/abraham/SPACE/BISQUARE/source/uboot_update/gcc-linaro-arm/bin/arm-linux-gnueabihf-gcc
-E -g -Os -ffunction-sections -fdata-sections -fno-common -ffixed-r9
-msoft-float -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x17800000
-I/home/abraham/SPACE/temp_uboot/include
-I/home/abraham/SPACE/temp_uboot/arch/arm/include -fno-builtin
-ffreestanding -nostdinc -isystem
/home/abraham/SPACE/BISQUARE/source/uboot_update/gcc-linaro-arm/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/include
-pipe -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux
-mword-relocations -march=armv7-a -include
/home/abraham/SPACE/temp_uboot/include/u-boot/u-boot.lds.h
-DCPUDIR=arch/arm/cpu/armv7 -ansi -D__ASSEMBLY__ -P -
</home/abraham/SPACE/temp_uboot/arch/arm/cpu/u-boot.lds >u-boot.lds
cd /home/abraham/SPACE/temp_uboot &&
/home/abraham/SPACE/BISQUARE/source/uboot_update/gcc-linaro-arm/bin/arm-linux-gnueabihf-ld.bfd
-pie -T u-boot.lds --gc-sections -Bstatic -Ttext 0x17800000
arch/arm/cpu/armv7/start.o --start-group arch/arm/cpu/armv7/built-in.o
arch/arm/cpu/armv7/mx6/built-in.o arch/arm/cpu/built-in.o
arch/arm/imx-common/built-in.o arch/arm/lib/built-in.o
board/freescale/common/built-in.o board/freescale/mx6qsabreauto/built-in.o
common/built-in.o disk/built-in.o drivers/built-in.o drivers/dma/built-in.o
drivers/gpio/built-in.o drivers/i2c/built-in.o drivers/input/built-in.o
drivers/mmc/built-in.o drivers/mtd/built-in.o drivers/mtd/nand/built-in.o
drivers/mtd/onenand/built-in.o drivers/mtd/spi/built-in.o
drivers/mtd/ubi/built-in.o drivers/net/built-in.o
drivers/net/phy/built-in.o drivers/pci/built-in.o
drivers/power/battery/built-in.o drivers/power/built-in.o
drivers/power/fuel_gauge/built-in.o drivers/power/mfd/built-in.o
drivers/power/pmic/built-in.o drivers/serial/built-in.o
drivers/spi/built-in.o drivers/usb/eth/built-in.o
drivers/usb/gadget/built-in.o drivers/usb/host/built-in.o
drivers/usb/musb-new/built-in.o drivers/usb/musb/built-in.o
drivers/usb/phy/built-in.o drivers/usb/ulpi/built-in.o fs/built-in.o
lib/built-in.o lib/libfdt/built-in.o net/built-in.o post/built-in.o
test/built-in.o --end-group
/home/abraham/SPACE/temp_uboot/arch/arm/lib/eabi_compat.o -L
/home/abraham/SPACE/BISQUARE/source/uboot_update/gcc-linaro-arm/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2
-lgcc -Map u-boot.map -o u-boot
/home/abraham/SPACE/BISQUARE/source/uboot_update/gcc-linaro-arm/bin/arm-linux-gnueabihf-ld.bfd:
error:
/home/abraham/SPACE/BISQUARE/source/uboot_update/gcc-linaro-arm/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(bpabi.o)
uses VFP register arguments, u-boot does not
/home/abraham/SPACE/BISQUARE/source/uboot_update/gcc-linaro-arm/bin/arm-linux-gnueabihf-ld.bfd:
failed to merge target specific data of file
/home/abraham/SPACE/BISQUARE/source/uboot_update/gcc-linaro-arm/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(bpabi.o)
/home/abraham/SPACE/BISQUARE/source/uboot_update/gcc-linaro-arm/bin/arm-linux-gnueabihf-ld.bfd:
error:
/home/abraham/SPACE/BISQUARE/source/uboot_update/gcc-linaro-arm/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(_divdi3.o)
uses VFP register arguments, u-boot does not
/home/abraham/SPACE/BISQUARE/source/uboot_update/gcc-linaro-arm/bin/arm-linux-gnueabihf-ld.bfd:
failed to merge target specific data of file
/home/abraham/SPACE/BISQUARE/source/uboot_update/gcc-linaro-arm/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(_divdi3.o)
/home/abraham/SPACE/BISQUARE/source/uboot_update/gcc-linaro-arm/bin/arm-linux-gnueabihf-ld.bfd:
error:
/home/abraham/SPACE/BISQUARE/source/uboot_update/gcc-linaro-arm/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(_udivdi3.o)
uses VFP register arguments, u-boot does not
/home/abraham/SPACE/BISQUARE/source/uboot_update/gcc-linaro-arm/bin/arm-linux-gnueabihf-ld.bfd:
failed to merge target specific data of file
/home/abraham/SPACE/BISQUARE/source/uboot_update/gcc-linaro-arm/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(_udivdi3.o)
make: *** [u-boot] Error 1
>
Now, what bothers me is NOT the error, but how I resolved it. In the above
run, I've been using linaro's cross-compiler. If I switch over to using the
toolchain from Mentor Graphics (code-sorcery free version), the build
compiles without issues (I can even boot the resulting image on a board!).
Here are details of the cross-compilers I've been using,
More information about the U-Boot
mailing list