* [U-Boot-Users] Compiling U-boot using ELDK on Mandrake9.1
@ 2003-07-30 12:04 C Doyle
2003-07-31 18:17 ` Detlev Zundel
0 siblings, 1 reply; 2+ messages in thread
From: C Doyle @ 2003-07-30 12:04 UTC (permalink / raw)
To: u-boot
Hello,
I am a student trying to get u-boot0.4.0 up and running on an
MPC8266ADS board using ELDK as a cross compiler. I managed to get the ELDK
installed what seems to be problem free. I am trying to cross compile
u-boot0.4.0 for the MPC8266ADS development board. I have a Host PC running
Mandrake 9.1 which I notice is about the only distribution that eldk has not
been tested with. Has anyone managed to get u-boot0.4.0 compiled on Mandrake
or can anyone tell me what the problem is in the astest.o symbol at the end
of the Makefile output below? There seems to be some problem with the
/opt/eldk/ppc_82xx/usr/lib/libbfd.so. Previously I have used a hardhat
cross-compiler and noticed that it was using /libbfd.a as opposed to
/libbfd.so. Do I need to export the symbols from libbfd.so? Any help would
be greatly appreciated...
Thanks,
Ciaran Doyle
I have made the following changes to the root dir Makefile:
HOSTARCH := ppc
ifndef CROSS_COMPILE
ifeq ($(HOSTARCH),ppc)
CROSS_COMPILE = /opt/eldk/usr/bin/ppc_82xx-
else
ifeq ($(ARCH),ppc)
CROSS_COMPILE = ppc_8xx-
endif
And in the ./tools/gdb/Makefile I have updated the path as follows:
astest: astest.o error.o
$(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^
-L$(BFD_ROOT_DIR)/lib -L /opt/eldk/ppc_82xx/usr/lib -lbfd -liberty
I run the configuration script for u-boot0.4.0
[root at MPC8266 u-boot-0.4.0]# make MPC8266ADS_config
rm -f include/config.h include/config.mk
Configuring for MPC8266ADS board...
-Followed by a make all (sorry for including all of the make output - just
in case theres any clues in it):
[root at MPC8266 u-boot-0.4.0]# make all
make[1]: Entering directory `/u-boot-0.4.0/tools'
ln -s ../common/environment.c environment.c
ln -s ../lib_generic/crc32.c crc32.c
gcc -M -Wall -pedantic -I../include -I.. -DTEXT_BASE=0xfe000000 -DUSE_HOSTCC
environment.c img2srec.c mkimage.c crc32.c envcrc.c gen_eth_addr.c
bmp_logo.c > .depend
make[1]: Leaving directory `/u-boot-0.4.0/tools'
make[1]: Entering directory `/u-boot-0.4.0/tools'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/u-boot-0.4.0/tools'
make[1]: Entering directory `/u-boot-0.4.0/lib_generic'
/opt/eldk/usr/bin/ppc_82xx-gcc -M -g -Os -mrelocatable -ffixed-r14 -meabi
-D__KERNEL__ -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/include -fno-builtin
-nostdinc -isystem /opt/eldk/usr/lib/gcc-lib/ppc-linux/2.95.4/include -pipe
-DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -ffixed-r2 -ffixed-r29 -mstring
-mcpu=603e -mmultiple -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/board -Wall
-Wstrict-prototypes crc32.c ctype.c display_options.c ldiv.c string.c
vsprintf.c zlib.c > .depend
make[1]: Leaving directory `/u-boot-0.4.0/lib_generic'
make[1]: Entering directory `/u-boot-0.4.0/lib_generic'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/u-boot-0.4.0/lib_generic'
make[1]: Entering directory `/u-boot-0.4.0/lib_ppc'
/opt/eldk/usr/bin/ppc_82xx-gcc -M -g -Os -mrelocatable -ffixed-r14 -meabi
-D__KERNEL__ -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/include -fno-builtin
-nostdinc -isystem /opt/eldk/usr/lib/gcc-lib/ppc-linux/2.95.4/include -pipe
-DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -ffixed-r2 -ffixed-r29 -mstring
-mcpu=603e -mmultiple -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/board -Wall
-Wstrict-prototypes ppcstring.S ticks.S board.c bat_rw.c cache.c extable.c
kgdb.c time.c > .depend
make[1]: Leaving directory `/u-boot-0.4.0/lib_ppc'
make[1]: Entering directory `/u-boot-0.4.0/lib_ppc'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/u-boot-0.4.0/lib_ppc'
make[1]: Entering directory `/u-boot-0.4.0/cpu/mpc8260'
/opt/eldk/usr/bin/ppc_82xx-gcc -M -g -Os -mrelocatable -ffixed-r14 -meabi
-D__KERNEL__ -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/include -fno-builtin
-nostdinc -isystem /opt/eldk/usr/lib/gcc-lib/ppc-linux/2.95.4/include -pipe
-DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -ffixed-r2 -ffixed-r29 -mstring
-mcpu=603e -mmultiple -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/board -Wall
-Wstrict-prototypes start.S kgdb.S traps.c serial_smc.c serial_scc.c cpu.c
cpu_init.c speed.c interrupts.c ether_scc.c ether_fcc.c i2c.c commproc.c
bedbug_603e.c pci.c spi.c > .depend
make[1]: Leaving directory `/u-boot-0.4.0/cpu/mpc8260'
make[1]: Entering directory `/u-boot-0.4.0/cpu/mpc8260'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/u-boot-0.4.0/cpu/mpc8260'
make[1]: Entering directory `/u-boot-0.4.0/board/mpc8266ads'
/opt/eldk/usr/bin/ppc_82xx-gcc -M -g -Os -mrelocatable -ffixed-r14 -meabi
-D__KERNEL__ -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/include -fno-builtin
-nostdinc -isystem /opt/eldk/usr/lib/gcc-lib/ppc-linux/2.95.4/include -pipe
-DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -ffixed-r2 -ffixed-r29 -mstring
-mcpu=603e -mmultiple -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/board
mpc8266ads.c flash.c > .depend
make[1]: Leaving directory `/u-boot-0.4.0/board/mpc8266ads'
make[1]: Entering directory `/u-boot-0.4.0/board/mpc8266ads'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/u-boot-0.4.0/board/mpc8266ads'
make[1]: Entering directory `/u-boot-0.4.0/common'
/opt/eldk/usr/bin/ppc_82xx-gcc -M -g -Os -mrelocatable -ffixed-r14 -meabi
-D__KERNEL__ -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/include -fno-builtin
-nostdinc -isystem /opt/eldk/usr/lib/gcc-lib/ppc-linux/2.95.4/include -pipe
-DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -ffixed-r2 -ffixed-r29 -mstring
-mcpu=603e -mmultiple -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/board -Wall
-Wstrict-prototypes main.c altera.c bedbug.c cmd_autoscript.c cmd_bedbug.c
cmd_bmp.c cmd_boot.c cmd_bootm.c cmd_cache.c cmd_console.c cmd_date.c
cmd_dcr.c cmd_diag.c cmd_doc.c cmd_nand.c cmd_dtt.c cmd_eeprom.c cmd_elf.c
cmd_fat.c cmd_fdc.c cmd_fdos.c cmd_flash.c cmd_fpga.c cmd_i2c.c cmd_ide.c
cmd_immap.c cmd_jffs2.c cmd_log.c cmd_mem.c cmd_mii.c cmd_misc.c cmd_mmc.c
cmd_net.c cmd_nvedit.c env_common.c env_flash.c env_eeprom.c env_nvram.c
env_nowhere.c cmd_pci.c cmd_pcmcia.c cmd_portio.c cmd_reginfo.c cmd_scsi.c
cmd_vfd.c cmd_usb.c command.c console.c devices.c dlmalloc.c docecc.c
environment.c flash.c fpga.c hush.c kgdb.c lists.c miiphybb.c miiphyutil.c
s_record.c soft_i2c.c soft_spi.c cmd_spi.c spartan2.c usb.c usb_kbd.c
usb_storage.c virtex2.c xilinx.c > .depend
make[1]: Leaving directory `/u-boot-0.4.0/common'
make[1]: Entering directory `/u-boot-0.4.0/common'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/u-boot-0.4.0/common'
make[1]: Entering directory `/u-boot-0.4.0/disk'
/opt/eldk/usr/bin/ppc_82xx-gcc -M -g -Os -mrelocatable -ffixed-r14 -meabi
-D__KERNEL__ -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/include -fno-builtin
-nostdinc -isystem /opt/eldk/usr/lib/gcc-lib/ppc-linux/2.95.4/include -pipe
-DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -ffixed-r2 -ffixed-r29 -mstring
-mcpu=603e -mmultiple -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/board -Wall
-Wstrict-prototypes part.c part_mac.c part_dos.c part_iso.c part_amiga.c >
.depend
make[1]: Leaving directory `/u-boot-0.4.0/disk'
make[1]: Entering directory `/u-boot-0.4.0/disk'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/u-boot-0.4.0/disk'
make[1]: Entering directory `/u-boot-0.4.0/fs'
make[2]: Entering directory `/u-boot-0.4.0/fs/jffs2'
/opt/eldk/usr/bin/ppc_82xx-gcc -M -g -Os -mrelocatable -ffixed-r14 -meabi
-D__KERNEL__ -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/include -fno-builtin
-nostdinc -isystem /opt/eldk/usr/lib/gcc-lib/ppc-linux/2.95.4/include -pipe
-DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -ffixed-r2 -ffixed-r29 -mstring
-mcpu=603e -mmultiple -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/board -Wall
-Wstrict-prototypes jffs2_1pass.c compr_rtime.c compr_rubin.c compr_zlib.c
mini_inflate.c > .depend
make[2]: Leaving directory `/u-boot-0.4.0/fs/jffs2'
make[2]: Entering directory `/u-boot-0.4.0/fs/jffs2'
make[2]: `.depend' is up to date.
make[2]: Leaving directory `/u-boot-0.4.0/fs/jffs2'
make[2]: Entering directory `/u-boot-0.4.0/fs/fdos'
/opt/eldk/usr/bin/ppc_82xx-gcc -M -g -Os -mrelocatable -ffixed-r14 -meabi
-D__KERNEL__ -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/include -fno-builtin
-nostdinc -isystem /opt/eldk/usr/lib/gcc-lib/ppc-linux/2.95.4/include -pipe
-DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -ffixed-r2 -ffixed-r29 -mstring
-mcpu=603e -mmultiple -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/board -Wall
-Wstrict-prototypes fat.c vfat.c dev.c fdos.c fs.c subdir.c > .depend
make[2]: Leaving directory `/u-boot-0.4.0/fs/fdos'
make[2]: Entering directory `/u-boot-0.4.0/fs/fdos'
make[2]: `.depend' is up to date.
make[2]: Leaving directory `/u-boot-0.4.0/fs/fdos'
make[2]: Entering directory `/u-boot-0.4.0/fs/fat'
/opt/eldk/usr/bin/ppc_82xx-gcc -M -g -Os -mrelocatable -ffixed-r14 -meabi
-D__KERNEL__ -DTEXT_BASE=0xfe000000 -I../..//include -fno-builtin -nostdinc
-isystem /opt/eldk/usr/lib/gcc-lib/ppc-linux/2.95.4/include -pipe
-DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -ffixed-r2 -ffixed-r29 -mstring
-mcpu=603e -mmultiple -DTEXT_BASE=0xfe000000 -I../..//board -Wall
-Wstrict-prototypes fat.c file.c > .depend
make[2]: Leaving directory `/u-boot-0.4.0/fs/fat'
make[2]: Entering directory `/u-boot-0.4.0/fs/fat'
make[2]: `.depend' is up to date.
make[2]: Leaving directory `/u-boot-0.4.0/fs/fat'
make[1]: Leaving directory `/u-boot-0.4.0/fs'
make[1]: Entering directory `/u-boot-0.4.0/net'
/opt/eldk/usr/bin/ppc_82xx-gcc -M -g -Os -mrelocatable -ffixed-r14 -meabi
-D__KERNEL__ -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/include -fno-builtin
-nostdinc -isystem /opt/eldk/usr/lib/gcc-lib/ppc-linux/2.95.4/include -pipe
-DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -ffixed-r2 -ffixed-r29 -mstring
-mcpu=603e -mmultiple -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/board -Wall
-Wstrict-prototypes net.c tftp.c bootp.c rarp.c eth.c > .depend
make[1]: Leaving directory `/u-boot-0.4.0/net'
make[1]: Entering directory `/u-boot-0.4.0/net'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/u-boot-0.4.0/net'
make[1]: Entering directory `/u-boot-0.4.0/rtc'
/opt/eldk/usr/bin/ppc_82xx-gcc -M -g -Os -mrelocatable -ffixed-r14 -meabi
-D__KERNEL__ -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/include -fno-builtin
-nostdinc -isystem /opt/eldk/usr/lib/gcc-lib/ppc-linux/2.95.4/include -pipe
-DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -ffixed-r2 -ffixed-r29 -mstring
-mcpu=603e -mmultiple -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/board -Wall
-Wstrict-prototypes date.c ds12887.c ds1302.c ds1306.c ds1307.c ds1337.c
ds1556.c ds164x.c ds174x.c m41t11.c m48t35ax.c mc146818.c mk48t59.c mpc8xx.c
pcf8563.c s3c24x0_rtc.c > .depend
make[1]: Leaving directory `/u-boot-0.4.0/rtc'
make[1]: Entering directory `/u-boot-0.4.0/rtc'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/u-boot-0.4.0/rtc'
make[1]: Entering directory `/u-boot-0.4.0/dtt'
/opt/eldk/usr/bin/ppc_82xx-gcc -M -g -Os -mrelocatable -ffixed-r14 -meabi
-D__KERNEL__ -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/include -fno-builtin
-nostdinc -isystem /opt/eldk/usr/lib/gcc-lib/ppc-linux/2.95.4/include -pipe
-DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -ffixed-r2 -ffixed-r29 -mstring
-mcpu=603e -mmultiple -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/board -Wall
-Wstrict-prototypes lm75.c ds1621.c adm1021.c > .depend
make[1]: Leaving directory `/u-boot-0.4.0/dtt'
make[1]: Entering directory `/u-boot-0.4.0/dtt'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/u-boot-0.4.0/dtt'
make[1]: Entering directory `/u-boot-0.4.0/drivers'
/opt/eldk/usr/bin/ppc_82xx-gcc -M -g -Os -mrelocatable -ffixed-r14 -meabi
-D__KERNEL__ -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/include -fno-builtin
-nostdinc -isystem /opt/eldk/usr/lib/gcc-lib/ppc-linux/2.95.4/include -pipe
-DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -ffixed-r2 -ffixed-r29 -mstring
-mcpu=603e -mmultiple -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/board -Wall
-Wstrict-prototypes 3c589.c 5701rls.c ali512x.c bcm570x.c bcm570x_autoneg.c
cfb_console.c cs8900.c ct69000.c dataflash.c dc2114x.c e1000.c eepro100.c
i8042.c i82365.c inca-ip_sw.c lan91c96.c natsemi.c ns16550.c
ns8382x.c ns87308.c pci.c pci_auto.c pci_indirect.c pcnet.c plb2800_eth.c
s3c24x0_i2c.c sed13806.c serial.c serial_max3100.c smc91111.c smiLynxEM.c
sym53c8xx.c ti_pci1410a.c tigon3.c w83c553f.c status_led.c >
.depend
make[1]: Leaving directory `/u-boot-0.4.0/drivers'
make[1]: Entering directory `/u-boot-0.4.0/drivers'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/u-boot-0.4.0/drivers'
make[1]: Entering directory `/u-boot-0.4.0/post'
/opt/eldk/usr/bin/ppc_82xx-gcc -M -g -Os -mrelocatable -ffixed-r14 -meabi
-D__KERNEL__ -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/include -fno-builtin
-nostdinc -isystem /opt/eldk/usr/lib/gcc-lib/ppc-linux/2.95.4/include -pipe
-DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -ffixed-r2 -ffixed-r29 -mstring
-mcpu=603e -mmultiple -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/board -Wall
-Wstrict-prototypes cache_8xx.S post.c tests.c cpu.c rtc.c watchdog.c
memory.c i2c.c cache.c sysmon.c uart.c ether.c usb.c spr.c > .depend
make[1]: Leaving directory `/u-boot-0.4.0/post'
make[1]: Entering directory `/u-boot-0.4.0/post'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/u-boot-0.4.0/post'
make[1]: Entering directory `/u-boot-0.4.0/post/cpu'
/opt/eldk/usr/bin/ppc_82xx-gcc -M -g -Os -mrelocatable -ffixed-r14 -meabi
-D__KERNEL__ -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/include -fno-builtin
-nostdinc -isystem /opt/eldk/usr/lib/gcc-lib/ppc-linux/2.95.4/include -pipe
-DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -ffixed-r2 -ffixed-r29 -mstring
-mcpu=603e -mmultiple -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/board -Wall
-Wstrict-prototypes asm.S cmp.c cmpi.c two.c twox.c three.c threex.c
threei.c andi.c srawi.c rlwnm.c rlwinm.c rlwimi.c store.c load.c cr.c b.c
multi.c string.c complex.c > .depend
make[1]: Leaving directory `/u-boot-0.4.0/post/cpu'
make[1]: Entering directory `/u-boot-0.4.0/post/cpu'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/u-boot-0.4.0/post/cpu'
make[1]: Entering directory `/u-boot-0.4.0/examples'
/opt/eldk/usr/bin/ppc_82xx-gcc -M -g -Os -mrelocatable -ffixed-r14 -meabi
-D__KERNEL__ -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/include -fno-builtin
-nostdinc -isystem /opt/eldk/usr/lib/gcc-lib/ppc-linux/2.95.4/include -pipe
-DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -ffixed-r2 -ffixed-r29 -mstring
-mcpu=603e -mmultiple -DTEXT_BASE=0xfe000000 -I/u-boot-0.4.0/board -Wall
-Wstrict-prototypes hello_world.c sched.c mem_to_mem_idma2intr.c syscall.S
ppc_longjmp.S ppc_setjmp.S > .depend
make[1]: Leaving directory `/u-boot-0.4.0/examples'
make[1]: Entering directory `/u-boot-0.4.0/examples'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/u-boot-0.4.0/examples'
make[1]: Entering directory `/u-boot-0.4.0/tools'
gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0xfe000000 -DUSE_HOSTCC -O
-c -o img2srec.o img2srec.c
gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0xfe000000 -DUSE_HOSTCC -O
-o img2srec img2srec.o
strip img2srec
gcc -g -Wall -pedantic -I../include -I.. -DTEXT_BASE=0xfe000000 -DUSE_HOSTCC
-O -c mkimage.c
gcc -g -Wall -pedantic -I../include -I.. -DTEXT_BASE=0xfe000000 -DUSE_HOSTCC
-O -c crc32.c
gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0xfe000000 -DUSE_HOSTCC -O
-o mkimage mkimage.o crc32.o
strip mkimage
gcc -g -Wall -pedantic -I../include -I.. -DTEXT_BASE=0xfe000000 -DUSE_HOSTCC
-O -c envcrc.c
gcc -g -I../include -I.. -DTEXT_BASE=0xfe000000 -DUSE_HOSTCC -c
environment.c
gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0xfe000000 -DUSE_HOSTCC -O
-o envcrc envcrc.o crc32.o environment.o
gcc -g -Wall -pedantic -I../include -I.. -DTEXT_BASE=0xfe000000 -DUSE_HOSTCC
-O -c gen_eth_addr.c
gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0xfe000000 -DUSE_HOSTCC -O
-o gen_eth_addr gen_eth_addr.o
strip gen_eth_addr
gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0xfe000000 -DUSE_HOSTCC -O
-c -o bmp_logo.o bmp_logo.c
gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0xfe000000 -DUSE_HOSTCC -O
-o bmp_logo bmp_logo.o
strip bmp_logo
./bmp_logo logos/denx.bmp >/u-boot-0.4.0/include/bmp_logo.h
make[2]: Entering directory `/u-boot-0.4.0/tools/gdb'
gcc -M -I/opt/eldk/ppc_82xx/include -I../include gdbsend.c gdbcont.c
astest.c error.c remote.c serial.c > .depend
make[2]: Leaving directory `/u-boot-0.4.0/tools/gdb'
make[2]: Entering directory `/u-boot-0.4.0/tools/gdb'
gcc -Wall -pedantic -O -I/opt/eldk/ppc_82xx/include -I
/opt/eldk/ppc_82xx/lib -c -o gdbsend.o gdbsend.c
gcc -Wall -pedantic -O -I/opt/eldk/ppc_82xx/include -I
/opt/eldk/ppc_82xx/lib -c -o error.o error.c
gcc -Wall -pedantic -O -I/opt/eldk/ppc_82xx/include -I
/opt/eldk/ppc_82xx/lib -c -o remote.o remote.c
gcc -Wall -pedantic -O -I/opt/eldk/ppc_82xx/include -I
/opt/eldk/ppc_82xx/lib -c -o serial.o serial.c
gcc -Wall -pedantic -O -I/opt/eldk/ppc_82xx/include -I
/opt/eldk/ppc_82xx/lib -o gdbsend gdbsend.o error.o remote.o serial.o
gcc -Wall -pedantic -O -I/opt/eldk/ppc_82xx/include -I
/opt/eldk/ppc_82xx/lib -c -o gdbcont.o gdbcont.c
gcc -Wall -pedantic -O -I/opt/eldk/ppc_82xx/include -I
/opt/eldk/ppc_82xx/lib -o gdbcont gdbcont.o error.o remote.o serial.o
gcc -Wall -pedantic -O -I/opt/eldk/ppc_82xx/include -I
/opt/eldk/ppc_82xx/lib -c -o astest.o astest.c
gcc -Wall -pedantic -O -I/opt/eldk/ppc_82xx/include -I
/opt/eldk/ppc_82xx/lib -o astest astest.o error.o -L/opt/eldk/ppc_82xx/lib
-L /opt/eldk/ppc_82xx/usr/lib -lbfd -liberty
/opt/eldk/ppc_82xx/usr/lib/libbfd.so: could not read symbols: Invalid
operation
collect2: ld returned 1 exit status
make[2]: *** [astest] Error 1
make[2]: Leaving directory `/u-boot-0.4.0/tools/gdb'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/u-boot-0.4.0/tools'
make: *** [subdirs] Error 1
[root at MPC8266 u-boot-0.4.0]#
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] Compiling U-boot using ELDK on Mandrake9.1
2003-07-30 12:04 [U-Boot-Users] Compiling U-boot using ELDK on Mandrake9.1 C Doyle
@ 2003-07-31 18:17 ` Detlev Zundel
0 siblings, 0 replies; 2+ messages in thread
From: Detlev Zundel @ 2003-07-31 18:17 UTC (permalink / raw)
To: u-boot
Hello Ciaran,
You can search the mailing list archve for "libbfd" problems. The
problem was seen on Debian systems too some time ago....
> I am a student trying to get u-boot0.4.0 up and running on an
> MPC8266ADS board using ELDK as a cross compiler. I managed to get the ELDK
> installed what seems to be problem free. I am trying to cross compile
> u-boot0.4.0 for the MPC8266ADS development board. I have a Host PC running
> Mandrake 9.1 which I notice is about the only distribution that eldk has not
> been tested with. Has anyone managed to get u-boot0.4.0 compiled on Mandrake
> or can anyone tell me what the problem is in the astest.o symbol at the end
> of the Makefile output below? There seems to be some problem with the
> /opt/eldk/ppc_82xx/usr/lib/libbfd.so. Previously I have used a hardhat
> cross-compiler and noticed that it was using /libbfd.a as opposed to
> /libbfd.so. Do I need to export the symbols from libbfd.so? Any help would
> be greatly appreciated...
> HOSTARCH := ppc
>
> ifndef CROSS_COMPILE
> ifeq ($(HOSTARCH),ppc)
> CROSS_COMPILE = /opt/eldk/usr/bin/ppc_82xx-
> else
> ifeq ($(ARCH),ppc)
> CROSS_COMPILE = ppc_8xx-
> endif
Huh, this means that if your _host_ is a PowerPC system and your want
to compile code for PowerPC _target_ systems you use a cross-compiler?
I don't think that's what you wanted to do.....
> And in the ./tools/gdb/Makefile I have updated the path as follows:
>
> astest: astest.o error.o
> $(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^
> -L$(BFD_ROOT_DIR)/lib -L /opt/eldk/ppc_82xx/usr/lib -lbfd -liberty
[...]
> gcc -Wall -pedantic -O -I/opt/eldk/ppc_82xx/include -I
> /opt/eldk/ppc_82xx/lib -o astest astest.o error.o -L/opt/eldk/ppc_82xx/lib
> -L /opt/eldk/ppc_82xx/usr/lib -lbfd -liberty
> /opt/eldk/ppc_82xx/usr/lib/libbfd.so: could not read symbols: Invalid
> operation
> collect2: ld returned 1 exit status
AS you see, you are using the native compiler to compile astest.c
while you want to use the library from the ELDK cross-compiler. Use
the correct library or simply "touch tools/gdb/astest" as you're not
likely to use this tool anyway.
Cheers
Detlev
--
LISP is the most powerful programming language, and if you want an inter-
preter, LISP is the best. None of the other languages come anywhere near
LISP in their power. The most exciting things about LISP are read, eval,
and print. If you look at other languages, they have no equivalent for
any of those. -- Richard Stallman
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-31 18:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-30 12:04 [U-Boot-Users] Compiling U-boot using ELDK on Mandrake9.1 C Doyle
2003-07-31 18:17 ` Detlev Zundel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox