Compiling PS2MENU

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
fulasypescados
Posts: 6
Joined: Sat Dec 25, 2004 4:54 am

Compiling PS2MENU

Post 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
BraveDog
Posts: 29
Joined: Thu Dec 30, 2004 1:16 am
Location: Cleveland

Post by BraveDog »

Try adding '-G0' to the EE_CFLAGS.
You might have to recompile libito with that as well.
fulasypescados
Posts: 6
Joined: Sat Dec 25, 2004 4:54 am

Post 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.
BraveDog
Posts: 29
Joined: Thu Dec 30, 2004 1:16 am
Location: Cleveland

Post 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
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post 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...
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.
rafael2k
Posts: 18
Joined: Sun Jan 14, 2007 2:41 am

PS2MENU w/ problems to copy .gz file

Post 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?
Post Reply