[U-Boot] Link error for arm targets

Scott Wood scottwood at freescale.com
Mon Dec 8 20:31:08 CET 2014


On Mon, 2014-12-08 at 10:13 -0800, York Sun wrote:
> Guys,
> 
> I need some help to understand the link error introduced by commit
> d455d8789d5b35a39a0a179b3af4b423db13bfdd
> fs: API changes enabling extra parameter to return size of type loff_t
> 
> I don't see anything wrong with this commit, but some of my targets don't link
> after this commit. The error I got for compiling ls1021aqds_nor is:
> 
> 
> /opt/linaro/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf-ld.bfd:
> error:
> /opt/linaro/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.2/libgcc.a(bpabi.o)
> uses VFP register arguments, u-boot does not
> /opt/linaro/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf-ld.bfd:
> failed to merge target specific data of file
> /opt/linaro/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.2/libgcc.a(bpabi.o)
> /opt/linaro/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf-ld.bfd:
> error:
> /opt/linaro/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.2/libgcc.a(_divdi3.o)
> uses VFP register arguments, u-boot does not
> /opt/linaro/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf-ld.bfd:
> failed to merge target specific data of file
> /opt/linaro/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.2/libgcc.a(_divdi3.o)
> /opt/linaro/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf-ld.bfd:
> error:
> /opt/linaro/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.2/libgcc.a(_udivdi3.o)
> uses VFP register arguments, u-boot does not
> /opt/linaro/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/arm-linux-gnueabihf-ld.bfd:
> failed to merge target specific data of file
> /opt/linaro/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.2/libgcc.a(_udivdi3.o)
> make[2]: *** [u-boot] Error 1
> make[1]: *** [__build_one_by_one] Error 2
> make: *** [sub-make] Error 2
> 
> I don't know much about this error. Can someone help?
> 
> I should have caught this error earlier but a bad escape flaw in my Jenkins
> script skipped all the ARM targets I normally test. I hope I didn't let in any
> patch with compiling errors (finger crossed).

USE_PRIVATE_LIBGCC=yes

-Scott




More information about the U-Boot mailing list