public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Newbie problems building U-Boot
Date: 19 Mar 2003 14:27:19 +0100	[thread overview]
Message-ID: <874r5zqyfc.fsf@deepthought.outer.space.org> (raw)
In-Reply-To: <DEA23DB61B62D4118B5900508B323B84010554C5@OPENMAIL>

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

  reply	other threads:[~2003-03-19 13:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-19  5:23 [U-Boot-Users] Newbie problems building U-Boot Jeremy Bowen
2003-03-19 13:27 ` Detlev Zundel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-03-18  3:40 Jeremy Bowen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874r5zqyfc.fsf@deepthought.outer.space.org \
    --to=dzu@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox