[Cbe-oss-dev] ps3-kexec-tools (latest git update) compiling problems (on PS3)

Geert Uytterhoeven Geert.Uytterhoeven at sonycom.com
Sun Dec 23 00:58:20 EST 2007


On Sat, 22 Dec 2007, Goffredo Marocchi wrote:
> gcc -melf64ppc --no-undefined -nostartfiles -nostdlib -nodefaultlibs -e 
> purgatory_start -r -o purgatory/purgatory.ro purgatory/purgatory.o 
> purgatory/printf.o purgatory/string.o purgatory/arch/ppc64/v2wrap.o 
> purgatory/arch/ppc64/purgatory-ppc64.o 
> purgatory/arch/ppc64/console-ppc64.o 
> purgatory/arch/ppc64/crashdump_backup.o purgatory/sha256.o
> /usr/bin/ld: Relocatable linking with relocations from format 
> elf64-powerpc (purgatory/purgatory.o) to format elf32-powerpc 
> (purgatory/purgatory.ro) is not supported

and

> Interesting...
> 
> if I compile with this configure line:
> 
> ./configure CFLAGS='-g -O0 -DDEBUG' CC=ppu-gcc TARGET_CC=ppu-gcc AR=ppu-ar --without-zlib --host=powerpc64 --target=powerpc64
> 
> it does not give me compile errors. Is it so dependent on ppu-* tools  
> instead of the native ppc port of gcc? I'll try different variations of 
> that line (I am compiling on PS3 and those were instructions for cross 
> complation on x86 Linux using SDK 3.0)...

I think ppu-gcc generates 64-bit binaries by default, unlike normal gcc.

With kind regards,
 
Geert Uytterhoeven
Software Architect

Sony Network and Software Technology Center Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
 
Phone:    +32 (0)2 700 8453	
Fax:      +32 (0)2 700 8622	
E-mail:   Geert.Uytterhoeven at sonycom.com	
Internet: http://www.sony-europe.com/
 	
Sony Network and Software Technology Center Europe	
A division of Sony Service Centre (Europe) N.V.	
Registered office: Technologielaan 7 · B-1840 Londerzeel · Belgium	
VAT BE 0413.825.160 · RPR Brussels	
Fortis Bank Zaventem · Swift GEBABEBB08A · IBAN BE39001382358619


More information about the cbe-oss-dev mailing list