[U-Boot-Users] Newbie problems building U-Boot
Jeremy Bowen
Jeremy.Bowen at opennw.com
Tue Mar 18 04:40:18 CET 2003
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
More information about the U-Boot
mailing list