[U-Boot-Users] Newbie problems building U-Boot

Detlev Zundel dzu at denx.de
Wed Mar 19 14:27:19 CET 2003


Hello Jeremy,

> I don't seem to be able to build either ppcboot or u-boot using version
> 2.0.2 of the ELDK from the denx.de site.
> 
> I have CROSS_COMPILE=ppc_8xx- and
> PATH=$PATH:/usr/local/eldk/usr/bin:/usr/local/eldk/bin
> 
> Please point me to a FAQ if there is one as the documentation doesn't seem
> to mention this problem specifically.
> 
> The error message produced is
> =================================================================
> gcc -Wall -pedantic -O -I/usr/local/eldk/include  -o astest
> astest.o error.o
> -L/usr/local/eldk/lib -lbfd -liberty
> /usr/lib/libbfd.so: undefined reference to `htab_find_slot_with_hash'
> /usr/lib/libbfd.so: undefined reference to `htab_create'
> /usr/lib/libbfd.so: undefined reference to `htab_delete'
> collect2: ld returned 1 exit status
> make[2]: *** [astest] Error 1
> =================================================================
> 
> Which libbfd.so should this build process be picking up ?
> 
> I assumed I should be able to build the ppcboot-1.2.1 contained in the ELDK.
> Any help would be appreciated.

You can search the archives for problems relating to building astest.
I tried once before to explain the problem.  Before I'll do that
again, here's a quick workaround - simply touch the files
tools/gdb/astest.o and tools/gdb/astest to fool make.  You will
not need astest to install or run ppc/u-boot.

Ok, now for the longer story as I understand it, the libbfd that
should be picked up is a library compiled for your host architecture
having support for the "elf32-powerpc" bfd-target (this is hardcoded
in astest.c) - but such a library is missing in the eldk.

To close the story, I can only reiterate my view that the astest
program is of no great value to the project anyway, because I don't
think it can handle things that the "{CROSS_COMPILE}objdump" cannot,
this is why the quick workaround above should help.  Apart from that
u-boot is now running under more architectures htan "elf32-powerpc"
anyway... 

Cheers
  Detlev

-- 
It's very important  that you sleep because that's  when your brain is
garbage  collecting.  And a  dream is  if you  are interrupted  in the
middle and have junk left in the registers.
                                          -- Gerald Sussman




More information about the U-Boot mailing list