[U-Boot] [u-boot-denx-usb] Build break on current u-boot-usb master

Marek Vasut marex at denx.de
Sat Jul 22 18:36:41 UTC 2017


On 07/22/2017 08:18 PM, Łukasz Majewski wrote:
> Hi Marek,
> 
> When I was "cleaning up" my patchwork todo list I've found following
> problem (s):
> 
> A lot of boards are broken with message:
> 
>   LD      u-boot
> drivers/usb/host/built-in.o: In function `xhci_dwc3_remove':
> /home/lukma/work/embedded/u-boot-denx/drivers/usb/host/xhci-dwc3.c:161:
> undefined reference to `generic_phy_exit'
> drivers/usb/host/built-in.o: In function `xhci_dwc3_probe':
> /home/lukma/work/embedded/u-boot-denx/drivers/usb/host/xhci-dwc3.c:127:
> undefined reference to `generic_phy_get_by_index'
> /home/lukma/work/embedded/u-boot-denx/drivers/usb/host/xhci-dwc3.c:134:
> undefined reference to `generic_phy_init'
> /opt/tfk-sc58x/2.3/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld.bfd:
> BFD (GNU Binutils) 2.28.0.20170307 assertion fail
> ../../bfd/elf32-arm.c:9512
> /opt/tfk-sc58x/2.3/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld.bfd:
> BFD (GNU Binutils) 2.28.0.20170307 assertion fail
> ../../bfd/elf32-arm.c:9512
> /opt/tfk-sc58x/2.3/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld.bfd:
> BFD (GNU Binutils) 2.28.0.20170307 assertion fail
> ../../bfd/elf32-arm.c:9512
> Makefile:1248: recipe for target 'u-boot' failed
> 
> The branch is:
> 
> u-boot-usb/master
> 
> 
> I've tried to do "bisect" but another error showed up:
> 
> drivers/usb/host/xhci-dwc3.c: In function ‘xhci_dwc3_probe’:
> drivers/usb/host/xhci-dwc3.c:109:29: warning: unused variable ‘plat’
> [-Wunused-variable]
>   struct xhci_dwc3_platdata *plat = dev_get_platdata(dev);
>                              ^~~~
> drivers/usb/host/xhci-dwc3.c: At top level:
> drivers/usb/host/xhci-dwc3.c:143:37: error: invalid application of
> ‘sizeof’ to incomplete type ‘struct xhci_dwc3_platdata’
>   .platdata_auto_alloc_size = sizeof(struct xhci_dwc3_platdata),
>                                      ^~~~~~
> scripts/Makefile.build:280: recipe for target
> 'drivers/usb/host/xhci-dwc3.o' failed
> make[1]: *** [drivers/usb/host/xhci-dwc3.o] Error 1
> 
> 
> Patrice and Bin - please fix those errors and make the u-boot-usb tree
> bisectable again.
I believe this is already underway since 2 days ago:
https://www.mail-archive.com/u-boot@lists.denx.de/msg256611.html

-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list