Page 1 of 1

Compiling PS2MENU

Posted: Sat Jan 08, 2005 4:28 am
by fulasypescados
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

Posted: Sat Jan 08, 2005 5:53 am
by BraveDog
Try adding '-G0' to the EE_CFLAGS.
You might have to recompile libito with that as well.

Posted: Sat Jan 08, 2005 6:20 am
by fulasypescados
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.

Posted: Sat Jan 08, 2005 7:55 am
by BraveDog
Sorry, don't know the full details.
Google is a great search tool. Try:
"relocation truncated to fit" MIPS

and do some reading. :)
Like here:
http://www.linux-mips.org/archives/linu ... 00133.html
-BD

Posted: Sat Jan 08, 2005 5:05 pm
by pixel
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...

PS2MENU w/ problems to copy .gz file

Posted: Sun Jan 14, 2007 6:52 am
by rafael2k
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?