kotaeji | 16 Sep 2003 06:40

[PPCBoot-users] [Q] compiling ppcboot with gcc 3.2.2 in yellowdog 3.0 (-mrelocatable option)

Hi, I have a question about compiling the ppcboot under yellowdog.
 
yellowdog is installed at Mac G4
 
cpu             : 7455, altivec supported
clock           : 1416MHz
revision        : 3.3 (pvr 8001 0303)
bogomips        : 1415.57
machine         : PowerMac3,6
motherboard     : PowerMac3,6 MacRISC3 Power Macintosh
detected as     : 129 (PowerMac G4 Windtunnel)
pmac flags      : 00000000
L2 cache        : 256K unified
memory          : 512MB
pmac-generation : NewWorld
I have the following error messages.
 
 
gcc  -O2  -mrelocatable -ffixed-r14 -meabi -mrelocatable -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0xfff00000 -I../include -fno-builtin -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_74xx_7xx -ffixed-r2 -ffixed-r29 -mstring -DCONFIG_PPC -D__powerpc__ -DCONFIG_74xx_7xx -ffixed-r2 -ffixed-r29 -mstring -Wall -Wstrict-prototypes -c -o zlib.o zlib.c
{standard input}: Assembler messages:
{standard input}:3953: Error: Relocation cannot be done when using -mrelocatable
{standard input}:3954: Error: Relocation cannot be done when using -mrelocatable
{standard input}:3955: Error: Relocation cannot be done when using -mrelocatable
{standard input}:3956: Error: Relocation cannot be done when using -mrelocatable
{standard input}:3957: Error: Relocation cannot be done when using -mrelocatable
{standard input}:3958: Error: Relocation cannot be done when using -mrelocatable
{standard input}:3959: Error: Relocation cannot be done when using -mrelocatable
{standard input}:3960: Error: Relocation cannot be done when using -mrelocatable
{standard input}:3924: Error: Relocation cannot be done when using -mrelocatable
make[1]: *** [zlib.o] Error 1
[kotaeji <at> ppc-compile kotaeji]$ gcc --version
gcc (GCC) 3.2.2 20030217 (Yellow Dog Linux 3.0 3.2.2-2a)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Is this the problem related to gcc in yellowdog? Should I rebuild gcc in yellowdog?
When I cross-compile this ppcboot under ELDK, there is no problem.
 
Any comments appreciated.
Thanks
 
 
Wolfgang Denk | 16 Sep 2003 09:08
Picon
Picon
Favicon

Re: [PPCBoot-users] [Q] compiling ppcboot with gcc 3.2.2 in yellowdog 3.0 (-mrelocatable option)

Hello,

in message <006a01c37c0c$985e1420$b209040b <at> hwteam6549> you wrote:
> 
> Hi, I have a question about compiling the ppcboot under yellowdog.
...
> Is this the problem related to gcc in yellowdog? Should I rebuild gcc in
> yellowdog?
> When I cross-compile this ppcboot under ELDK, there is no problem.

PPCboot was never adapted for  GCC  3.x  compilers  and  never  will.
Development  has been stopped nearly a year ago. Please switch to the
successor project U-Boot instead. There have been a some  of  changes
to U-Boot to make it build under GCC 3.x .

Best regards,

Wolfgang Denk

--

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd <at> denx.de
It's hard to make a program foolproof because fools are so ingenious.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Wolfgang Denk | 16 Sep 2003 09:08
Picon
Picon
Favicon

Re: [PPCBoot-users] [Q] compiling ppcboot with gcc 3.2.2 in yellowdog 3.0 (-mrelocatable option)

Hello,

in message <006a01c37c0c$985e1420$b209040b <at> hwteam6549> you wrote:
> 
> Hi, I have a question about compiling the ppcboot under yellowdog.
...
> Is this the problem related to gcc in yellowdog? Should I rebuild gcc in
> yellowdog?
> When I cross-compile this ppcboot under ELDK, there is no problem.

PPCboot was never adapted for  GCC  3.x  compilers  and  never  will.
Development  has been stopped nearly a year ago. Please switch to the
successor project U-Boot instead. There have been a some  of  changes
to U-Boot to make it build under GCC 3.x .

Best regards,

Wolfgang Denk

--

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd <at> denx.de
It's hard to make a program foolproof because fools are so ingenious.

Gmane