| View previous topic :: View next topic |
| Author |
Message |
fulasypescados
Joined: 25 Dec 2004 Posts: 7
|
Posted: Sat Jan 08, 2005 4:28 am Post subject: Compiling PS2MENU |
|
|
Hello, sorry for my english i'm from spain and i dont speak english , but i'm learning it :), i need your help , when i try to compile the PS2MENU of cvs.ps2ded.org i get this error:
itopacket.c: relocation truncated to fit: R_MIPS_GPREL16 itoGsPacketNum
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x104):itopacket.c: rel
ocation truncated to fit: R_MIPS_GPREL16 itoGsPacketNum
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x10c):itopacket.c: rel
ocation truncated to fit: R_MIPS_GPREL16 itoActiveGsPacketStart
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x110):itopacket.c: rel
ocation truncated to fit: R_MIPS_GPREL16 itoActiveGsPacket
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x128): In function `it
oGetActiveGsPacketSizeQ':
itopacket.c: relocation truncated to fit: R_MIPS_GPREL16 itoActiveGsPacket
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x12c):itopacket.c: rel
ocation truncated to fit: R_MIPS_GPREL16 itoActiveGsPacketStart
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x140): In function `it
oSetActivePacket':
itopacket.c: relocation truncated to fit: R_MIPS_GPREL16 itoActivePacketStart
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x144):itopacket.c: rel
ocation truncated to fit: R_MIPS_GPREL16 itoActivePacket
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x190): In function `it
oSendActivePacket':
itopacket.c: relocation truncated to fit: R_MIPS_GPREL16 itoActivePacketStart
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x1a8): In function `it
oGetActivePacketSizeQ':
itopacket.c: relocation truncated to fit: R_MIPS_GPREL16 itoActivePacket
/usr/local/ps2dev/libito/lib/libito.a(itopacket.o)(.text+0x1ac):itopacket.c: rel
ocation truncated to fit: R_MIPS_GPREL16 itoActivePacketStart
collect2: ld returned 1 exit status
make[1]: *** [../bin/ps2menu.elf] Error 1
make[1]: Leaving directory `/usr/local/ps2dev/shares/ps2menu/ps2menu'
make: *** [all] Error 2
pancho@sargosbreados /usr/local/ps2dev/shares/ps2menu
$
What happend , i dont know what is the meaning of "relocation truncated to fit "
Thanks for your help |
|
| Back to top |
|
 |
BraveDog
Joined: 30 Dec 2004 Posts: 29 Location: Cleveland
|
Posted: Sat Jan 08, 2005 5:53 am Post subject: |
|
|
Try adding '-G0' to the EE_CFLAGS.
You might have to recompile libito with that as well. |
|
| Back to top |
|
 |
fulasypescados
Joined: 25 Dec 2004 Posts: 7
|
Posted: Sat Jan 08, 2005 6:20 am Post subject: |
|
|
Works perfectly Thank you BraveDog . I don't understand the message of the
gcc "relocation truncated to fit" could you explaim me what was the error and
why ,when I recompile the libbito whith EE_CFLAGS -G0, worked .
THANKS. |
|
| Back to top |
|
 |
BraveDog
Joined: 30 Dec 2004 Posts: 29 Location: Cleveland
|
|
| Back to top |
|
 |
pixel
Joined: 30 Jan 2004 Posts: 791
|
Posted: Sat Jan 08, 2005 5:05 pm Post subject: |
|
|
Ho well, that's a known issue... there's something in the mips called "$gp", a register, that is "global pointer". It can point to a 64kb of memory. Pointers to this locations will be saving 4 bytes to access them. Now there's only 64kb.... having -G0 says "don't put anything in that global section please", otherwise you might end up with that error... _________________ pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department. |
|
| Back to top |
|
 |
rafael2k
Joined: 14 Jan 2007 Posts: 18
|
Posted: Sun Jan 14, 2007 6:52 am Post subject: PS2MENU w/ problems to copy .gz file |
|
|
I'm trying to copy a initrd.gz to my memory card to be able to boot linux in my ps2 linux, but ps2menu says the it cannot copy compressed to the memory card...
how can i bypass this? |
|
| Back to top |
|
 |
|