16 Sep 2003 06:40
[PPCBoot-users] [Q] compiling ppcboot with gcc 3.2.2 in yellowdog 3.0 (-mrelocatable option)
kotaeji <kotaeji <at> secui.com>
2003-09-16 04:40:01 GMT
2003-09-16 04:40:01 GMT
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
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
{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.
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
RSS Feed