Skip to contentSkip to conversation

Compile Error

U-Boot-Users Jim Xu 2 participants 2 messages Feb 24, 2004

lore
Share & tools
lore

Jim Xu

author
#0 lore raw

Howdy,

I downloaded and installed the ELDK. My board is Motorola FADS860T. I did:

install ppc_8xx in ELDK,
make FADS860T_config in U-Boot,
make all.

Here is what I got:

ppc_8xx-gcc -g -Os -mrelocatable -ffixed-r14 -meabi -D__KERNEL__
-DTEXT_BASE=0x02800000 -I/opt/daljxu/u-boot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/daljxu/ELDK/usr/bin/../lib/gcc-lib/ppc-linux/3.2.2/include -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msoft-float -Wall -Wstrict-prototypes -c -o timer.o timer.c {standard input}: Assembler messages:
{standard input}:19: Error: Relocation cannot be done when using -mrelocatable
make[1]: *** [timer.o] Error 1
rm sched.o hello_world.o
make[1]: Leaving directory `/mnt/sda/daljxu/u-boot/u-boot-1.0.0/examples'
make: *** [subdirs] Error 1

Do I miss something in the build process?

Thanks,

Jim

_________________________
Jim Xu, SMTS-SW
Flextronics International
Phone: (469) 229-2154
Email: jim.xu at flextronics.com <mailto:[email protected]>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20040224/54dd6bad/attachment.htm

#1 lore raw

Dear Jim,

Quoted 2 lines · in message <75490FAA49820647AB2BAFEFE08BFABC0CD98D@dalnt225.dal.flextronics.com…

I downloaded and installed the ELDK. My board is Motorola FADS860T. I did:

...

Quoted 2 lines

{standard input}:19: Error: Relocation cannot be done when using -mrelocatable

Seems you are using the new (3.0) ELDK which is based on GCC-3.x with an old version of U-boot.

Quoted 1 line

Do I miss something in the build process?

Your U-Boot sources are too old for this compiler. GCC-3.x requires a few adaptions which were added in later versions of U-Boot. See for example the source tree (1.0.2) which is included with the ELDK.

Quoted 6 lines

------_=_NextPart_001_01C3FAEC.4DA52400

Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD>

And PLEASE do NOT post HTML!!

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" (I found it!) but "That's funny ..."
                                                      -- Isaac Asimov