[U-Boot] Unable to compile

Tom Rini trini at konsulko.com
Fri Apr 22 16:36:28 CEST 2016


On Fri, Apr 22, 2016 at 02:24:16PM +0000, Kevin Welsh wrote:
> > -----Original Message-----
> > From: Tom Rini [mailto:trini at konsulko.com]
> > Sent: Friday, April 22, 2016 9:50 AM
> > To: Kevin Welsh <kwelsh at welshtechnologies.com>
> > Cc: u-boot at lists.denx.de
> > Subject: Re: [U-Boot] Unable to compile
> > 
> > On Fri, Apr 22, 2016 at 03:33:13AM +0000, Kevin Welsh wrote:
> > > After moving to v2006.03, I can no longer compile with my existing
> > defconfig:
> > >
> > >
> > > cmd/built-in.o: In function `do_fastboot':
> > > /home/kdubious/u-boot/cmd/fastboot.c:34: undefined reference to
> > `g_dnl_clear_detach'
> > > /home/kdubious/u-boot/cmd/fastboot.c:35: undefined reference to
> > `g_dnl_register'
> > > /home/kdubious/u-boot/cmd/fastboot.c:39: undefined reference to
> > `g_dnl_board_usb_cable_connected'
> > > /home/kdubious/u-boot/cmd/fastboot.c:47: undefined reference to
> > `g_dnl_detach'
> > > /home/kdubious/u-boot/cmd/fastboot.c:57: undefined reference to
> > `g_dnl_unregister'
> > > /home/kdubious/u-boot/cmd/fastboot.c:58: undefined reference to
> > `g_dnl_clear_detach'
> > > cmd/built-in.o: In function `do_usb_mass_storage':
> > > /home/kdubious/u-boot/cmd/usb_mass_storage.c:159: undefined
> > reference to `fsg_init'
> > > /home/kdubious/u-boot/cmd/usb_mass_storage.c:166: undefined
> > reference to `g_dnl_register'
> > > /home/kdubious/u-boot/cmd/usb_mass_storage.c:176: undefined
> > reference to `g_dnl_board_usb_cable_connected'
> > > /home/kdubious/u-boot/cmd/usb_mass_storage.c:183: undefined
> > reference to `g_dnl_board_usb_cable_connected'
> > > /home/kdubious/u-boot/cmd/usb_mass_storage.c:206: undefined
> > reference to `fsg_main_thread'
> > > /home/kdubious/u-boot/cmd/usb_mass_storage.c:222: undefined
> > reference to `g_dnl_unregister'
> > > cmd/built-in.o: In function `do_dfu':
> > > /home/kdubious/u-boot/cmd/dfu.c:56: undefined reference to
> > `g_dnl_clear_detach'
> > > /home/kdubious/u-boot/cmd/dfu.c:57: undefined reference to
> > `g_dnl_register'
> > > /home/kdubious/u-boot/cmd/dfu.c:59: undefined reference to
> > `g_dnl_detach'
> > > /home/kdubious/u-boot/cmd/dfu.c:106: undefined reference to
> > `g_dnl_unregister'
> > > /home/kdubious/u-boot/cmd/dfu.c:114: undefined reference to
> > `g_dnl_clear_detach'
> > > /home/kdubious/u-boot/cmd/dfu.c:27: undefined reference to
> > `dfu_defer_flush'
> > > arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24
> > > assertion fail ../../bfd/elf32-arm.c:7696
> > > arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24
> > > assertion fail ../../bfd/elf32-arm.c:7696
> > > arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24
> > > assertion fail ../../bfd/elf32-arm.c:7696
> > > arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24
> > > assertion fail ../../bfd/elf32-arm.c:7696
> > > arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24
> > > assertion fail ../../bfd/elf32-arm.c:7696
> > > arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24
> > > assertion fail ../../bfd/elf32-arm.c:7696
> > > arm-linux-gnueabihf-ld.bfd: BFD (GNU Binutils for Ubuntu) 2.24
> > > assertion fail ../../bfd/elf32-arm.c:7696
> > > arm-linux-gnueabihf-ld.bfd: error: required section '.rel.plt' not
> > > found in the linker script
> > > arm-linux-gnueabihf-ld.bfd: final link failed: Invalid operation
> > >
> > >
> > > Am doing something wrong?
> > 
> > It's likely some option to enable the gadget controller you use has moved to
> > Kconfig, re-run menuconfig/config/etc and enable it.
> > 
> > --
> > Tom
> 
> Hi Tom,
> 
> That seems to have fixed it where I can build, but now u-boot fails:
> 
> Net:   eth0: ethernet at 01c50000
> starting USB...
> USB0:   undefined instruction
> pc : [<00006008>]          lr : [<7ef843b8>]
> reloc pc : [<cb0b8008>]    lr : [<4a0363b8>]
> sp : 7af25918  ip : 00000000     fp : c1c20bf2
> r10: 7af2fa70  r9 : 7af2dee0     r8 : 01c14000
> r7 : 00000000  r6 : 00000000     r5 : 00000000  r4 : 7af2fa80
> r3 : 00006000  r2 : 015a70dc     r1 : 01c20c00  r0 : 7af2fa80
> Flags: Nzcv  IRQs off  FIQs off  Mode SVC_32
> Resetting CPU ...
> 
> resetting ...

I would do a 'git log' on the relevant reference platforms to see what
else you might be missing.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160422/9196e0b0/attachment.sig>


More information about the U-Boot mailing list