[U-Boot] mx53loco_defconfig failure with Buildroot toolchain

Stefano Babic sbabic at denx.de
Tue May 24 15:52:20 CEST 2016


Hi Fabio,

On 24/05/2016 15:46, Fabio Estevam wrote:
> Hi,
> 
> When I try to build mx53loco_defconfig in U-boot 2016.05 I get the
> following errors with the toolchain provided by Buildroot:
> 
>   LD      u-boot
> /home/fabio/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-ld.bfd:
> error: /home/fabio/buildroot/output/host/usr/lib/gcc/arm-buildroot-linux-uclibcgnueabihf/4.9.3/libgcc.a(bpabi.o)
> uses VFP register arguments, u-boot does not
> /home/fabio/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-ld.bfd:
> failed to merge target specific data of file
> /home/fabio/buildroot/output/host/usr/lib/gcc/arm-buildroot-linux-uclibcgnueabihf/4.9.3/libgcc.a(bpabi.o)
> /home/fabio/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-ld.bfd:
> error: /home/fabio/buildroot/output/host/usr/lib/gcc/arm-buildroot-linux-uclibcgnueabihf/4.9.3/libgcc.a(_divdi3.o)
> uses VFP register arguments, u-boot does not
> /home/fabio/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-ld.bfd:
> failed to merge target specific data of file
> /home/fabio/buildroot/output/host/usr/lib/gcc/arm-buildroot-linux-uclibcgnueabihf/4.9.3/libgcc.a(_divdi3.o)
> /home/fabio/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-ld.bfd:
> error: /home/fabio/buildroot/output/host/usr/lib/gcc/arm-buildroot-linux-uclibcgnueabihf/4.9.3/libgcc.a(_udivdi3.o)
> uses VFP register arguments, u-boot does not
> /home/fabio/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-ld.bfd:
> failed to merge target specific data of file
> /home/fabio/buildroot/output/host/usr/lib/gcc/arm-buildroot-linux-uclibcgnueabihf/4.9.3/libgcc.a(_udivdi3.o)
> make[2]: *** [u-boot] Error 1
> 
> 
> Does anyone have any suggestion on how to fix this error?

Yes, this is the IPU - rather a patch to fix this was not included for
the release, I applied it later:


commit c510f2e436008e55a50b063f2180cb1e63984224
Author: Peng Fan <van.freenix at gmail.com>
Date:   Thu Apr 28 10:07:53 2016 +0800

    video: ipu_common: fix build error

    Some toolchains fail to build
    "clk->rate = (u64)(clk->parent->rate * 16) / div;"
    And the cast usage is wrong.

    Use the following code to fix the issue,
    "
      do_div(parent_rate, div);
      clk->rate = parent_rate;
    "

    Reported-by: Peter Robinson <pbrobinson at gmail.com>
    Signed-off-by: Peng Fan <van.freenix at gmail.com>
    Cc: Stefano Babic <sbabic at denx.de>
    Cc: Fabio Estevam <fabio.estevam at nxp.com>
    Cc: Tom Rini <trini at konsulko.com>
    Cc: Anatolij Gustschin <agust at denx.de>
    Cc: Peter Robinson <pbrobinson at gmail.com>
    Reviewed-by: Tom Rini <trini at konsulko.com>
    Tested-by: Peter Robinson <pbrobinson at gmail.com>


Best regards,
Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list