public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Newbie problems building U-Boot
@ 2003-03-19  5:23 Jeremy Bowen
  2003-03-19 13:27 ` Detlev Zundel
  0 siblings, 1 reply; 3+ messages in thread
From: Jeremy Bowen @ 2003-03-19  5:23 UTC (permalink / raw)
  To: u-boot

Hi there

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.

Thanks again

Jeremy

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [U-Boot-Users] Newbie problems building U-Boot
@ 2003-03-18  3:40 Jeremy Bowen
  0 siblings, 0 replies; 3+ messages in thread
From: Jeremy Bowen @ 2003-03-18  3:40 UTC (permalink / raw)
  To: u-boot

I'm trying to build (cross-compile) the latest version of U-Boot using a
clean install of the ELDK 2.0 package from DENX. (CROSS_COMPILE=ppc_8xx-)

I'm running a Slackware linux i586 system as host.

It is failing on libbfd.so when compiling astest in the gdb subdirectory.

I have installed the eldk into /usr/local/eldk

My config.mk contains a line of the form "BFD_ROOT_DIR = /usr/local/eldk"
which I have added to point to the root of my cross-environment as suggested
by the comments in the file.

The error message produced is
=================================================================
make[1]: Entering directory `/usr/home/jeremyb/u-boot-0.2.0/tools'
make[2]: Entering directory `/usr/home/jeremyb/u-boot-0.2.0/tools/gdb'
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
=================================================================

If I modify config.mk to change "BFD_ROOT_DIR = /usr/local/eldk/ppc_8xx/usr"
where a libbfd.so exists, the error message is slightly different.

==================================================================
make[1]: Entering directory `/usr/home/jeremyb/u-boot-0.2.0/tools'
make[2]: Entering directory `/usr/home/jeremyb/u-boot-0.2.0/tools/gdb'
gcc -Wall -pedantic -O -I/usr/local/eldk/ppc_8xx/usr/include  -o astest
astest.o error.o -L/usr/local/eldk/ppc_8xx/usr/lib -lbfd -liberty
/usr/local/eldk/ppc_8xx/usr/lib/libbfd.so: could not read symbols: Invalid
operation
collect2: ld returned 1 exit status
make[2]: *** [astest] Error 1
==================================================================

If anyone knows what is going on I would appreciate a pointer to the
problem.
Thanks in advance.

Jeremy Bowen
Senior Software Engineer
OPEN Networks
Phone: +64 4 384 8045
Fax: +64 4 384 8025
Web: www.opennw.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-19 13:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-19  5:23 [U-Boot-Users] Newbie problems building U-Boot Jeremy Bowen
2003-03-19 13:27 ` Detlev Zundel
  -- strict thread matches above, loose matches on Subject: below --
2003-03-18  3:40 Jeremy Bowen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox